Browse Source

Adding heapsort implementation

dylan.cedres 1 year ago
parent
commit
a5ad9b9a1d
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      sorting.py

+ 1
- 0
sorting.py View File

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