algorithms.heapsort

Source code: algorithms/heapsort.seq

algorithms.heapsort.heap_sort_array[S, T](collection: array[T], size: int, keyf: function[S, T])

Heap Sort Sorts the array inplace.

algorithms.heapsort.heap_sort_inplace[S, T](collection: list[T], keyf: function[S, T])

Heap Sort Sorts the list inplace.

algorithms.heapsort.heap_sort[S, T](collection: list[T], keyf: function[S, T])

Heap Sort Returns a sorted list.