algorithms.heapsort

Source code: algorithms/heapsort.seq

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

Heap Sort Sorts the array inplace.

algorithms.heapsort.heap_sort_inplace[S, T](collection: List[T], keyf: Callable[T, S])

Heap Sort Sorts the list inplace.

algorithms.heapsort.heap_sort[S, T](collection: List[T], keyf: Callable[T, S])

Heap Sort Returns a sorted list.