Reputation: 55
0.0001*2^n + 10 * n^2 + 10000 * log(n) + 10000000
do we look at the highest exponent power?
The big O of this is O(n^2)? Am i right?
Upvotes: 1
Views: 1522
Reputation: 726939
The big O of this is O(n^2)? Am i right?
No, 2^n
will be dominating over everything else, despite its tiny coefficient.
Upvotes: 4