The number of symbol comparisons in quicksort and quickselect

22Citations
Citations of this article
18Readers
Mendeley users who have this article in their library.
Get full text

Abstract

We revisit the classical QuickSort and QuickSelect algorithms, under a complexity model that fully takes into account the elementary comparisons between symbols composing the records to be processed. Our probabilistic models belong to a broad category of information sources that encompasses memoryless (i.e., independent-symbols) and Markov sources, as well as many unbounded-correlation sources. We establish that, under our conditions, the average-case complexity of QuickSort is O(nlog2 n) [rather than O(nlogn), classically], whereas that of QuickSelect remains O(n). Explicit expressions for the implied constants are provided by our combinatorial-analytic methods. © 2009 Springer Berlin Heidelberg.

Cite

CITATION STYLE

APA

Vallée, B., Clément, J., Fill, J. A., & Flajolet, P. (2009). The number of symbol comparisons in quicksort and quickselect. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 5555 LNCS, pp. 750–763). https://doi.org/10.1007/978-3-642-02927-1_62

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free