Just starting to learn big-oh and asymptotic analysis and I am stuck on this particular proof:
How can we prove 2^n is O(n!)? Thanks
Just starting to learn big-oh and asymptotic analysis and I am stuck on this particular proof:
How can we prove 2^n is O(n!)? Thanks
To prove this, all you have show is that there exists some C
such that
2n <= C*n!
for all n greater than some n0. This is trivial once you realize that both 2n and n! are products with n terms.