Can someone explain to me why O(n^3) is valid for Theta(n^3 + n^2)
Can someone explain to me why O(n^3) is valid for Theta(n^3 + n^2)
Now, why should we do that? Can you demonstrate that you've already tried to work this out? Can you show us your working so far? Can you tell us what you've tried? Can you tell us what you already know?
If none of that, how do we know what explanation will provide the greatest benefit?
For a quick answer, try working through the definition using your specific example - here:
http://en.wikipedia.org/wiki/Big_O_notation#Formal_definitio...
Replace g(x) with n^3 and f(x) with n^3+n^2, work through the definition given, and then tell us where you get stuck. By doing that you will actually learn something, rather than just getting the answer.
Good luck!