I have some issues in terms of the algebra I'm trying to solve for these 2 problems:
Check if f(n) = Θ(g(n))?
- f (n) = 2log(n) vs. g(n) = n500
- f (n) = (4 × n)150 + (2 × n + 500)400 and g(n) = 20 × n400 + (n + 500)200
So for the first function, I know that if I take the limit of f(n)/g(n) as n approaches infinity then it will approach 0 given g(n) grows much faster than f(n).
For the second function though, I tried by seeing if f(n) = O(n400) and f(n) = Ω(n400). I guess I'm just not understanding how to do that given the complexity of these functions. I think O(n400) is true but f(n) = Ω(n400) is not.
Thanks.