Skip to content
Snippets Groups Projects
Commit dd4600b7 authored by Romain Vuillemot's avatar Romain Vuillemot
Browse files

Suppresion variables inutiles

parent bf2bb3af
No related branches found
No related tags found
No related merge requests found
......@@ -7,16 +7,14 @@ nvalues = [100, 500, 1500, 2000, 2500, 3000]
timesSorted = []
timesSort = []
for i in nvalues:
random.seed()
p = 12**2 # Ordre de grandeur des valeurs
p = 12**2
liste = []
for x in range(i): liste.append(random.randint(0, p))
c = liste.copy()
a=time.perf_counter()
triSorted = sorted(c)
......@@ -30,10 +28,6 @@ for i in nvalues:
b=time.perf_counter()
timesSort.append(b-a)
#plt.plot(nvalues, timesTriSelection, "r-", label="Python heap")
plt.plot(nvalues, timesSorted, "g-", label="Tri 1")
plt.plot(nvalues, timesSort, "b-", label="Tri 2")
plt.xlabel("Taille du jeu de données")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment