Skip to content

Commit 2ea664c

Browse files
committed
Update Algorithm-Iteratif.algo
1 parent c0e0cef commit 2ea664c

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
// Correspond à la fonction Trouve disponible
22
FONCTION Tri-insertion (Tableau T)
33

4-
DEBUT
4+
DEBUT
55
taille = taille tableau
6-
Pour i = 1, i < taille , i + 1
6+
POUR i = 1, i < taille , i + 1
77
j = i- 1
88
x = tableau[i]
9-
Pour i de 1 à taille(T) - 1
109
TANTQUE j => 0 et tableau[j-1] > x
1110
tableau[j] <- tableau[j-1]
1211
j <- j-1
13-
tableau[j] <- x
12+
FINTANQUE
13+
tableau[j] <- x
14+
FIN POUR
1415
Retourne le tableau
15-
FIN
16+
FIN
1617
FINFONCTION
1718

0 commit comments

Comments
 (0)