heapsort
Speech parts
1. heapsort - Noun
2. heapsort - Verb
Meaning
heapsort (plural heapsorts)
(computing) A sorting algorithm based on the heap data structure.
heapsort (third-person singular simple present heapsorts, present participle heapsorting, simple past and past participle heapsorted)
(transitive, computing) To sort with such an algorithm.
Anagrams
Examples
As we can build a heap from an array without requiring extra memory (for the nodes, for example), heapsort can be used to sort an array in-place.
Introsort is an alternative to heapsort that combines quicksort and heapsort to retain advantages of both: worst case speed of heapsort and average speed of quicksort.
Comparison with other sort algorithms Although heapsort has the same time bounds as merge sort, it requires only Θ(1) auxiliary space instead of merge sort's Θ(n).
If using efficient sorting such as mergesort or heapsort this is an (n log n) average and worst-case algorithm.
LSD radix sorts have resurfaced as an alternative to high performance comparison-based sorting algorithms (like heapsort and mergesort ) that require O(n · log n) comparisons, where n is the number of items to be sorted.
Overview The heapsort algorithm can be divided into two parts.