Skip to content

Commit 927d385

Browse files
committed
final Main Java TriaBulleNormal Stats
1 parent 5e9d458 commit 927d385

7 files changed

Lines changed: 31 additions & 7 deletions

File tree

Tri-a-bulle-normal/Algorithm-Iteratif.algo

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,20 @@
77

88
POUR i allant de la taille du tableau-1 à 1
99

10-
POUR j allant de 1 à taille du tableau -i
10+
POUR j allant de 1 à taille du tableau -i
1111

12-
COMPARER 2 valeurs qui se suivent
12+
COMPARER 2 valeurs qui se suivent
1313

14-
SI Tab[j-1] > Tab[j]
14+
SI Tab[j-1] > Tab[j]
1515

16-
ALORS temporaire = Tab[Tab-1]
17-
Tab[j-1] = Tab[j]
18-
Tab[j] = temporaire
16+
ALORS temporaire = Tab[Tab-1]
17+
Tab[j-1] = Tab[j]
18+
Tab[j] = temporaire
1919

20-
FIN SI
20+
FIN SI
2121

22+
FIN POUR
23+
2224
FIN POUR
2325

2426
AFFICHER tableau

Tri-a-bulle-normal/src/Main.class

1.73 KB
Binary file not shown.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// import java.util.Arrays;
2+
// import java.util.Random;
3+
4+
// public class Recursif {
5+
// public static float echanges = 0;
6+
// public static float comparaisons = 0;
7+
// public static float affectations = 0;
8+
9+
// public static void main(String[] args) {
10+
// // write your code here
11+
// // Clear console
12+
// System.out.print("\033[H\033[2J");
13+
14+
// // Tableau de test
15+
// // int[] tab = { 10, 9, 8, 7, 6, 5, 4, 3, 2, 1};
16+
17+
// // System.out.println("Tableau de test : " + Arrays.toString(tri_bulleN(tab)));
18+
19+
// stat(10,20,5,10);
20+
21+
22+
// }
2.01 KB
Binary file not shown.
1.08 KB
Binary file not shown.
1.22 KB
Binary file not shown.

Tri-de-selection/bin/Main.class

1.18 KB
Binary file not shown.

0 commit comments

Comments
 (0)