# A Detailed Analysis of Quicksort Running Time

@article{Ekhad2019ADA, title={A Detailed Analysis of Quicksort Running Time}, author={S. B. Ekhad and D. Zeilberger}, journal={arXiv: Probability}, year={2019} }

One of the greatest algorithms of all time is Quicksort. Its average running time is famously O(nlog(n)), and its variance, less famously, is O(n^2) (hence its standard deviation is O(n)). But what about higher moments? Here we find explicit expressions for the first eight moments, their scaled limits, and we describe how to compute, approximately (but very accurately), percentiles of running time for any list-length

#### 5 Citations

A Detailed Analysis of Quicksort Algorithms with Experimental Mathematics

- Mathematics, Computer Science
- ArXiv
- 2019

It is shown that with experimental mathematics, explicit expressions for expectations, variances and even higher moments of their numbers of comparisons and swaps can be obtained in single-pivot Quicksort algorithms. Expand

Using nonlinear difference equations to study Quicksort algorithms

- Computer Science, Mathematics
- 2020

Using nonlinear difference equations, combined with symbolic computations, we make a detailed study of the running times of numerous variants of the celebrated Quicksort algorithms, where we consider… Expand

Logarithmic integrals, zeta values, and tiered binomial coefficients

- Mathematics
- 2019

We study logarithmic integrals of the form $\int_0^1 x^i\ln^n(x)\ln^m(1-x)dx$. They are expressed as a rational linear combination of certain rational numbers $(n,m)_i$, which we call tiered binomial… Expand

An experimental mathematics approach to several combinatorial problems

- Mathematics
- 2020

Experimental mathematics is an experimental approach to mathematics in which programming and symbolic computation are used to investigate mathematical objects, identify properties and patterns,… Expand

Recursive PGFs for BSTs and DSTs

- Computer Science, Mathematics
- ArXiv
- 2020

We review fundamentals underlying binary search trees and digital search trees, with (atypical) emphasis on recursive formulas for associated probability generating functions. Other topics include… Expand

#### References

SHOWING 1-7 OF 7 REFERENCES

Quicksort Algorithm Again Revisited

- Mathematics, Computer Science
- Discret. Math. Theor. Comput. Sci.
- 1999

An integral equation for the probability density of the number of comparisons L(n) is established and it is shown that the left tail of the limiting distribution is much ''thinner'' than the right tail (which is only exponential). Expand

A Note Concerning the Limit Distribution of the Quicksort Algorithm

- Mathematics, Computer Science
- RAIRO Theor. Informatics Appl.
- 1996

It turns out that the lognormal distribution is a very good approximation for the limit distribution of Quicksort algorithm, but by exact and numerical calculation of some moments it is demonstrated that these distributions are not the same. Expand

Concrete mathematics - a foundation for computer science

- Computer Science, Mathematics
- 1989

From the Publisher:
This book introduces the mathematics that supports advanced computer programming and the analysis of algorithms. The primary aim of its well-known authors is to provide a solid… Expand

The Art in Computer Programming

- Computer Science
- 2001

Here the authors haven’t even started the project yet, and already they’re forced to answer many questions: what will this thing be named, what directory will it be in, what type of module is it, how should it be compiled, and so on. Expand

The concrete tetrahedron

- Mathematics, Computer Science
- ISSAC '11
- 2011

We give an overview over computer algebra algorithms for dealing with symbolic sums, recurrence equations, generating functions, and asymptotic estimates, and we will illustrate how to apply these… Expand

Symbolic summation assists combinatorics.

- Mathematics
- 2006

We present symbolic summation tools in the context of difference fields that help scientists in practical problem solving. Throughout this article we present multi-sum examples which are related to… Expand

The Art of Computer Programming, Volume III: Sorting and Searching

- Computer Science, Mathematics
- 1973