diff --git a/S2/TP4/analyse_tris.py b/S2/TP4/analyse_tris.py index 3ed1f11..b9ecd8c 100644 --- a/S2/TP4/analyse_tris.py +++ b/S2/TP4/analyse_tris.py @@ -151,8 +151,8 @@ partie("Analyse du tri par sélection") question(1) for i in range(1, 101): - print(i, " ", 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]) + print(i, " ", tri_et_compte(tri_selection, liste_croissante(i+1))[1], " ", tri_et_compte( + tri_selection, liste_alea(i+1, 0, 500))[1], " ", tri_et_compte(tri_selection, liste_decroissante(i+1))[1]) question(2)