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

promotion -> tamisage

parent c7b31970
No related branches found
No related tags found
No related merge requests found
......@@ -68,18 +68,18 @@ rien tri_par_tas(tab)
entassement(tab)
échanger(tab[0], tab[size(tab)-1])
pour i de size(tab)-1 à 2
promotion(tab, 0)
tamisage(tab, 0)
échanger(tab[0], tab[i-1])
rien entassement(tab)
pour i de size(tab)/2-1 à 0
promotion(tab, i)
tamisage(tab, i)
rien promotion(tab, i)
rien tamisage(tab, i)
ind_max = ind_max(tab, i, gauche(i), droite(i))
si i != ind_max
échanger(tab[i], tab[ind_max])
promotion(tab, ind_max)
tamisage(tab, ind_max)
```
# L'algorithme du tri par tas (2/2)
......
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