Skip to content
Snippets Groups Projects
Verified Commit a52d0b4c authored by orestis.malaspin's avatar orestis.malaspin
Browse files

updated course

parent 5dc72ce5
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,8 @@ date: "2023-03-31"
# AVL ou pas?
\footnotesize
```{.mermaid format=pdf width=400 loc=figs/}
graph TD;
id0((21))-->id1((9));
......
......@@ -321,7 +321,7 @@ int depth(node *qt) {
![Déterminer un algorithme.](figs/quad_img_simple.svg)
* Quelle feuille?
* Quelle feuille pour 31 (`li=2`, `co=3`)?
* Plus important: quel chemin?
. . .
......@@ -368,7 +368,7 @@ int depth(node *qt) {
```C
noeud position(li, co, arbre)
d = profondeur(arbre);
tant_que (d > 1)
tant_que (d >= 1)
index = 2 * ((li % 2^d) / 2^(d-1)) +
(col % 2^d) / 2^(d-1)
arbre = arbre.enfant[index]
......@@ -390,7 +390,7 @@ noeud position(li, co, arbre)
```C
noeud position(li, co, arbre)
d = profondeur(arbre);
tant_que (d > 1)
tant_que (d >= 1)
index = 2 * ((li % 2^d) / 2^(d-1)) +
(col % 2^d) / 2^(d-1)
arbre = arbre.enfant[index]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment