Skip to content
Snippets Groups Projects
Commit 1e602846 authored by paul.albuquer's avatar paul.albuquer
Browse files

Adapted parent pseudocode

parent 4db4c7d3
No related branches found
No related tags found
No related merge requests found
Pipeline #38374 passed
......@@ -265,21 +265,18 @@ booléen suppression(tree, clé)
```
arbre parent(tree, noeud)
si est_non_vide(tree)
actuel = tree
parent = actuel
parent = vide
si noeud != tree
actuel = tree
clé = clé(noeud)
faire
si (clé != clé(actuel))
parent = actuel
si clé < clé(actuel)
actuel = gauche(actuel)
sinon
actuel = droite(actuel)
sinon
retourne parent
parent = actuel
si clé < clé(actuel)
actuel = gauche(actuel)
sinon si clé > clé(actuel)
actuel = droite(actuel)
tant_que (actuel != noeud)
retourne vide
retourne parent
```
# Le pseudo-code de la suppression
......
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