Jump to content

Sorting algorithms/Heapsort: Difference between revisions

m
added whitespace.
m (added Category:Sorting)
m (added whitespace.)
Line 12:
We repeatedly "remove" the maximal element from the heap, thus building the sorted list from back to front.
 
HeapsortA heap sort requires random access, so can only be used on an array-like data structure.
 
Pseudocode:
Cookies help us deliver our services. By using our services, you agree to our use of cookies.