Abstract
We consider the standard Quicksort algorithm that sorts n distinct keys with all possible n! orderings of keys being equally likely. Equivalently, we analyze the total path length λn in a randomly built binary search tree. Obtaining the limiting distribution of λn is still an outstanding open problem. In this paper, we establish an integral equation for the probability density of the number of comparisons λn. Then, we investigate the large deviations of λn. We shall show that the left tail of the limiting distribution is much “thinner” (i.e., double exponential) than the right tail (which is only exponential). We use formal asymptotic methods of applied mathematics such as the WKB method and matched asymptotics.
The work was supported by NSF Grant DMS-93-00136 and DOE Grant DE-FG02-93ER25168, as well as by NSF Grants NCR-9415491, NCR-9804760.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Abramowitz, M. and Stegun, I., eds. Handbook of Mathematical Functions. Wiley, New York, 1962.
C. Bender and S. Orszag, Advanced Mathematical Methods for Scientists and Engineers, McGrew-Hill, New York 1978.
M. Cramer, A Note Concerning the Limit Distribution of the Quicksort Algorithm, Theoretical Informatics and Applications, 30, 195–207, 1996.
L. Devroye, A Note on the Height of binary Search Trees, J. ACM, 33, 489–498, 1986.
W. Eddy and M. Schervish, How Many Comparisons Does Quicksort Use, J. Algorithms, 19, 402–431, 1995.
N. Froman and P. Froman, JWKB Approximation, North-Holland, Amsterdam 1965.
P. Hennequin, Combinatorial Analysis of Quicksort Algorithm, Theoretical Informatics and Applications, 23, 317–333, 1989.
P. Henrici, Applied and Computational Complex Analysis, John Wiley&Sons, New York 1977.
C.A.R. Hoare, Quicksort, Comput. J., 5, 10–15, 1962.
P. Jacquet and W. Szpankowski, Asymptotic Behavior of the Lempel-Ziv Parsing Scheme and Digital Search Trees, Theoretical Computer Science, 144, 161–197, 1995.
C. Knessl and W. Szpankowski, Quicksort Algorithm Again Revisited, Purdue University CSD-TR-97-015, 1997.
D. Knuth, The Art of Computer Programming. Sorting and Searching, Addison-Wesley (1973).
C.J. McDiarmid and R. Hayward, Large Deviations for Quicksort, J. Algorithms, 21, 476–507, 1996.
H. Mahmoud, Evolution of Random Search Trees, John Wiley & Sons, New York (1992).
M. Régnier, A Limiting Distribution for Quicksort, Theoretical Informatics and Applications, 23, 335–343, 1989.
U. Rösler, A Limit Theorem for Quicksort, Theoretical Informatics and Applications, 25, 85–100, 1991.
U. Rösler, A Fixed Point Theorem for Distributions, Stochastic Processes and Their Applications, 42, 195–214, 1992.
K.H. Tan and P. Hadjicostas, Some Properties of a Limiting Distribution in Quicksort, Statistics & Probability Letters, 25, 87–94, 1995.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 1998 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Knessl, C., Szpankowski, W. (1998). Quicksort Again Revisited. In: Luby, M., Rolim, J.D.P., Serna, M. (eds) Randomization and Approximation Techniques in Computer Science. RANDOM 1998. Lecture Notes in Computer Science, vol 1518. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-49543-6_27
Download citation
DOI: https://doi.org/10.1007/3-540-49543-6_27
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-65142-0
Online ISBN: 978-3-540-49543-7
eBook Packages: Springer Book Archive