Algorithms, Concurrency and Knowledge

Volume 1023 of the series Lecture Notes in Computer Science pp 1-9


Leapfrogging samplesort

  • Eliezer A. AlbaceaAffiliated withInstitute of Computer Science, University of the Philippines Los Baños

* Final gross prices may vary according to local VAT.

Get Access


In this paper, we present a practical Quicksort-based sorting algorithm that exhibits the following properties: (1) O(n(log n) 2) worst case; (2) the expected number of comparisons is equal to the information-theoretic lower bound; and (3) the expected number of data interchanges is slightly higher than that of Quicksort. Considering the worst-case complexity, the average-case complexity and the simplicity of the algorithm, we claim that this algorithm is so far the most practical alternative to Quicksort. This is particularly true when one is not willing to take the risk of the worst case occuring when running Quicksort.


Samplesort Quicksort Leapfrogging Samplesort sorting analysis of algorithms