My objective is to determine whether the following equations are $f = O(g)$, $f = \Omega(g)$, or both (i.e., $f = \Theta(g)$).src)
(a) $f(n) = n^{1.01}$; $g(n) = n(\log n)^2$
(b) $f(n) = \frac{n^2}{\log n}$; $g(n) = n(\log n)^2$
My understanding is that $f = O(g)$ when he running time of the algorithm is at most proportional to $g(n)$, whereas $f = \Omega(g)$ when the running time of the algorithm is proportional to $g(n)$.
I tried to graph both equations for part (a) in WolframAlpha but the growth of these equations seems to be the opposite of the answer sheet I found here (#7), which claims the growth to be $f = \Omega(g)$. Doing a few google searches, I found a few answers to this question using limits, however, my familiarity with limits is limited (no pun intended), and I am trying to understand the solution through other (simpler) means.
Can anyone please elaborate on what the correct answer to this function is, and how you arrived at that determination either graphically via WolframAlpha or some other means.
Thank you!
The easiest way to see this is via a substitution $u^{100} = x$. We get $f(u)=u^{101}$ and $g(u)=u^{100}\log(u^{100})^2 \approx u^{100} \log(u)^2$. Then, $f/g = u/\log(u)^2$ which clearly tends to infinity in the positive direction, since $u$ dominates $\log u$.
$f$ is the dominant one in both examples. Take f/g in example two and you get similarly $x/\log(x)^3$ again $x$ dominates $\log^3 x$ here.