Proof: log (N !) Is equivalent to nlogn.

Source: Internet
Author: User

(The log base must be greater than 1)

1. First Stirling's formula:


That is, the numerator and denominator are equivalent to infinity (n-> OO ).

2. Verify log (N!) again !) Is equivalent to nlogn (n-> OO ):



Incredible, n! It is very different from N ^ N, but it cannot be much different after obtaining the logarithm. Next, go to the image:


The figure shows that the two are not very close. I thought about the reason, because the last limit type 1/lnn is not small enough, that is, the lnn is not big enough, and the growth of the logarithm is too slow, this is the root cause! However, the logarithm is eventually infinite.



Additional reading:

Http://en.wikipedia.org/wiki/Factorial

Http://en.wikipedia.org/wiki/Gamma_function#Pi_function

Http://stackoverflow.com/questions/2095395/answer/submit

Http://groups.google.com/group/pongba/browse_thread/thread/0f0f968aaf3aa2e3? PLI = 1 #

Http://mindhacks.cn/2008/06/13/why-is-quicksort-so-quick/


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.