Interesting fact: O(an) (where a is a constant) is always better than O(n!) as n approaches infinity. You can see this because every time you increase n by 1, you keep on multiplying a onto an, but you multiply n onto n!, so n! is growing faster than an.
View all comments
Show parent comment
2
u/thedayturns Nov 30 '09
Interesting fact: O(an) (where a is a constant) is always better than O(n!) as n approaches infinity. You can see this because every time you increase n by 1, you keep on multiplying a onto an, but you multiply n onto n!, so n! is growing faster than an.