In: Computer Science
prove the running time of heap sort.
ABOUT : Heap sort is a comparison based sorting technique where we first find the maximum element and place the maximum element at the end. We repeat the same process for the remaining elements.
heapsort has a running time of O(nlogn).
There are two kinds of binary heaps: max-heap and min-heap.
ALGORITHM :
prove :
Conclusions: