Factorial-time algorithms and P/NP

前端 未结 2 1166
说谎
说谎 2021-02-03 13:06

It\'s quite easy to see that n! grows slower than almost anything to the N power (say, 100^N) and so, if a problems is considered NP complete and one happened upon a n! algorith

2条回答
  •  闹比i
    闹比i (楼主)
    2021-02-03 13:57

    It's quite easy to see that the factorial is (approximately) exponential in behaviour.

    It can be (very crudely) approximated as nn (more specifically, sqrt(2πn)(n/e)n).

    So if you have found any specific M where you think Mn is a good approximation, you're (probably) wrong. 269! is larger than 100n and as n! will be multiplied by numbers larger than 100, it will continue to grow faster.

提交回复
热议问题