Przeglądaj źródła

Adding heapsort implementation

dylan.cedres 1 rok temu
rodzic
commit
a5ad9b9a1d
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1
    0
      sorting.py

+ 1
- 0
sorting.py Wyświetl plik

@@ -9,6 +9,7 @@ Al final se imprimen los promedios de cada algortimo
9 9
 from random import randint
10 10
 import time
11 11
 from copy import deepcopy
12
+from heapq import heapify, heappush
12 13
 
13 14
 def mergeSort(lista):
14 15
 	#definan el algoritmo de ordenamiento mergesort