From 720c8cffef713cf6ef71b483c5859b9e1a5ba122 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Wed, 11 Mar 2015 22:24:39 +0100 Subject: [PATCH] =?UTF-8?q?Des=20tableaux=20plus=20coh=C3=A9rents=20!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- S2/TP4/analyse_tris.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]])