Rate of Growth and Approximations For Large N
As n grows, the factorial n! increases faster than all polynomials and exponential functions (but slower than double exponential functions) in n.
Most approximations for n! are based on approximating its natural logarithm
The graph of the function f(n) = log n! is shown in the figure on the right. It looks approximately linear for all reasonable values of n, but this intuition is false. We get one of the simplest approximations for log n! by bounding the sum with an integral from above and below as follows:
which gives us the estimate
Hence log n! is Θ(n log n) (see Big O notation). This result plays a key role in the analysis of the computational complexity of sorting algorithms (see comparison sort). From the bounds on log n! deduced above we get that
It is sometimes practical to use weaker but simpler estimates. Using the above formula it is easily shown that for all n we have, and for all n ≥ 6 we have .
For large n we get a better estimate for the number n! using Stirling's approximation:
In fact, it can be proved that for all n we have
A much better approximation for log n! was given by Srinivasa Ramanujan (Ramanujan 1988)
thus it is even better than the next correction term of Stirling's formula.
Read more about this topic: Factorial
Famous quotes containing the words large n, rate, growth and/or large:
“To be rich nowadays merely means to possess a large number of poor objects.”
—Raoul Vaneigem (b. 1934)
“Whoever thinks his friend more important than his country, I rate him nowhere.”
—Sophocles (497406/5 B.C.)
“The risk for a woman who considers her helpless children her job is that the childrens growth toward self-sufficiency may be experienced as a refutation of the mothers indispensability, and she may unconsciously sabotage their growth as a result.”
—Letty Cottin Pogrebin (20th century)
“There is nothing so difficult to marry as a large nose.”
—Oscar Wilde (18541900)
