I. Wegener, BOTTOM-UP-HEAPSORT, A NEW VARIANT OF HEAPSORT BEATING, ON AN AVERAGE,QUICKSORT - (IF N IS NOT VERY SMALL), Theoretical computer science, 118(1), 1993, pp. 81-98
A variant of HEAPSORT, called BOTTOM-UP-HEAPSORT, is presented. It is
based on a new reheap procedure. This sequential sorting algorithm is
easy to implement and beats, on an average, QUICKSORT if n greater-tha
n-or-equal-to 400 and a clever version of QUICKSORT (where the split o
bject is the median of 3 randomly chosen objects) if n greater-than-or
-equal-to 16 000. The worst-case number of comparisons is bounded by 1
.5n log n + 0(n). Moreover, the new reheap procedure improves the dele
te procedure for the heap data structure for all n.