浏览代码

Adding heapsort implementation

dylan.cedres 1年前
父节点
当前提交
a5ad9b9a1d
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      sorting.py

+ 1
- 0
sorting.py 查看文件

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