We present a practically efficient algorithm for the internal sorting problem. Our algorithm works
in-place and, on the average, has a running-time of O(
n log
n) in the length
n of the input. More specifically, the algorithm performs
n log
n + 3
n comparisons and
n log
n + 2.65
n element moves on the average.
An experimental comparison of our proposed algorithm with the most efficient variants of Quicksort and Heapsort is carried
out and its results are discussed.
Keywords In-place sorting - heapsort - quicksort - analysis of algorithms