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
 from random import randint
9
 from random import randint
10
 import time
10
 import time
11
 from copy import deepcopy
11
 from copy import deepcopy
12
+from heapq import heapify, heappush
12
 
13
 
13
 def mergeSort(lista):
14
 def mergeSort(lista):
14
 	#definan el algoritmo de ordenamiento mergesort
15
 	#definan el algoritmo de ordenamiento mergesort