diff --git a/S2/TP4/analyse_tris.py b/S2/TP4/analyse_tris.py index 7ebdc09..53a31a9 100644 --- a/S2/TP4/analyse_tris.py +++ b/S2/TP4/analyse_tris.py @@ -207,7 +207,7 @@ def afficher_tableau(donnees): question(1) -tableau = [['i', 'croissante ', 'decroissante', 'aléatoire ']] +tableau = [['i ', 'croissante ', 'decroissante', 'aléatoire ']] for i in range(2, 102): tableau.append([i - 1, tri_et_compte(tri_selection, liste_croissante(i))[1], tri_et_compte( tri_selection, liste_decroissante(i))[1], tri_et_compte(tri_selection, liste_alea(i, 0, 500))[1]]) @@ -219,7 +219,7 @@ partie("Analyse du tri par insertion") question(1) -tableau = [['i', 'croissante ', 'decroissante', 'aléatoire ']] +tableau = [tableau[0]] for i in range(2, 102): tableau.append([i - 1, tri_et_compte(tri_insertion, liste_croissante(i))[1], tri_et_compte( tri_insertion, liste_decroissante(i))[1], tri_et_compte(tri_insertion, liste_alea(i, 0, 500))[1]])