Des tableaux plus cohérents !

This commit is contained in:
Geoffrey Frogeye 2015-03-11 22:24:39 +01:00
parent 187b191fdd
commit 720c8cffef

View file

@ -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]])