Skip to main content

Quicksort Again Revisited

  • Conference paper
  • First Online:
Randomization and Approximation Techniques in Computer Science (RANDOM 1998)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 1518))

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Abramowitz, M. and Stegun, I., eds. Handbook of Mathematical Functions. Wiley, New York, 1962.

    Google Scholar 

  2. C. Bender and S. Orszag, Advanced Mathematical Methods for Scientists and Engineers, McGrew-Hill, New York 1978.

    MATH  Google Scholar 

  3. M. Cramer, A Note Concerning the Limit Distribution of the Quicksort Algorithm, Theoretical Informatics and Applications, 30, 195–207, 1996.

    MATH  MathSciNet  Google Scholar 

  4. L. Devroye, A Note on the Height of binary Search Trees, J. ACM, 33, 489–498, 1986.

    Article  MATH  MathSciNet  Google Scholar 

  5. W. Eddy and M. Schervish, How Many Comparisons Does Quicksort Use, J. Algorithms, 19, 402–431, 1995.

    Article  MATH  MathSciNet  Google Scholar 

  6. N. Froman and P. Froman, JWKB Approximation, North-Holland, Amsterdam 1965.

    Google Scholar 

  7. P. Hennequin, Combinatorial Analysis of Quicksort Algorithm, Theoretical Informatics and Applications, 23, 317–333, 1989.

    MathSciNet  MATH  Google Scholar 

  8. P. Henrici, Applied and Computational Complex Analysis, John Wiley&Sons, New York 1977.

    MATH  Google Scholar 

  9. C.A.R. Hoare, Quicksort, Comput. J., 5, 10–15, 1962.

    Article  MATH  MathSciNet  Google Scholar 

  10. P. Jacquet and W. Szpankowski, Asymptotic Behavior of the Lempel-Ziv Parsing Scheme and Digital Search Trees, Theoretical Computer Science, 144, 161–197, 1995.

    Article  MATH  MathSciNet  Google Scholar 

  11. C. Knessl and W. Szpankowski, Quicksort Algorithm Again Revisited, Purdue University CSD-TR-97-015, 1997.

    Google Scholar 

  12. D. Knuth, The Art of Computer Programming. Sorting and Searching, Addison-Wesley (1973).

    Google Scholar 

  13. C.J. McDiarmid and R. Hayward, Large Deviations for Quicksort, J. Algorithms, 21, 476–507, 1996.

    Article  MATH  MathSciNet  Google Scholar 

  14. H. Mahmoud, Evolution of Random Search Trees, John Wiley & Sons, New York (1992).

    MATH  Google Scholar 

  15. M. Régnier, A Limiting Distribution for Quicksort, Theoretical Informatics and Applications, 23, 335–343, 1989.

    MATH  Google Scholar 

  16. U. Rösler, A Limit Theorem for Quicksort, Theoretical Informatics and Applications, 25, 85–100, 1991.

    MATH  Google Scholar 

  17. U. Rösler, A Fixed Point Theorem for Distributions, Stochastic Processes and Their Applications, 42, 195–214, 1992.

    Article  MATH  MathSciNet  Google Scholar 

  18. K.H. Tan and P. Hadjicostas, Some Properties of a Limiting Distribution in Quicksort, Statistics & Probability Letters, 25, 87–94, 1995.

    Article  MATH  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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

Publish with us

Policies and ethics