Bladeren bron

added parameters to quickSort call

Jasiel Rivera 2 jaren geleden
bovenliggende
commit
b984f3073f
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1
    1
      sorting.py

+ 1
- 1
sorting.py Bestand weergeven

164
 	acumulaHeap+=time.process_time()-t1 	#acumulamos el tiempo de ejecucion
164
 	acumulaHeap+=time.process_time()-t1 	#acumulamos el tiempo de ejecucion
165
 
165
 
166
 	t1 = time.process_time() 				#seteamos el tiempo al empezar
166
 	t1 = time.process_time() 				#seteamos el tiempo al empezar
167
-	quickSort(quicklista)				#ejecutamos el algoritmo quickSort
167
+	quickSort(quicklista,0 , len(quicklista)-1)				#ejecutamos el algoritmo quickSort
168
 	acumulaQuick+=time.process_time()-t1 	#acumulamos el tiempo de ejecucion
168
 	acumulaQuick+=time.process_time()-t1 	#acumulamos el tiempo de ejecucion
169
 
169
 
170
 	t1 = time.process_time()				#seteamos el tiempo al empezar
170
 	t1 = time.process_time()				#seteamos el tiempo al empezar