We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0e0cef commit 2ea664cCopy full SHA for 2ea664c
1 file changed
Tri-insertion/Algorithm-Iteratif.algo
@@ -1,17 +1,18 @@
1
// Correspond à la fonction Trouve disponible
2
FONCTION Tri-insertion (Tableau T)
3
4
- DEBUT
+DEBUT
5
taille = taille tableau
6
- Pour i = 1, i < taille , i + 1
+ POUR i = 1, i < taille , i + 1
7
j = i- 1
8
x = tableau[i]
9
- Pour i de 1 à taille(T) - 1
10
TANTQUE j => 0 et tableau[j-1] > x
11
tableau[j] <- tableau[j-1]
12
j <- j-1
13
- tableau[j] <- x
+ FINTANQUE
+ tableau[j] <- x
14
+ FIN POUR
15
Retourne le tableau
- FIN
16
+FIN
17
FINFONCTION
18
0 commit comments