Please see below block question from review for test.
True Or False? Justify Your answers
A) is 2^(n+1) = O($2^n$)
B) is 2^2n = O($2^n$)
C) is log($n^2$) = O(logn)
D) is log($2^n$) = O(log(n))
I am not too good in discrete and definately worse at calculus, and when applying the following formula
Given functions f(n), g(n), f(n) = O(g(n)) if $\lim\limits_{n \to infinite} \frac{f(n)}{g(n)}$ = L where L ∈ (0,infinite)
I get the answer "True" for each, as the f(n) function has higher growth rate, in every scenario, the limit will always = infite.
Is this correct? Am i Solving these properly
PArt of the question says "Justify your answer" the Limit is the justification.
First, the correct version of the theorem you cite is
Second, the limit is not always infinite in your cases, we have \begin{align*} \frac{2^{n+1}}{2^n} &= 2 < \infty\\ \frac{2^{2n}}{2^n} &= 2^n\\ &\to \infty.\\ \frac{\log(n^2)}{\log n} &= \frac{2\log n}{\log n}\\ &= 2 < \infty.\\ \frac{\log(2^n)}{\log n} &= \frac{n\log 2}{\log n}\\ &\to \infty. \end{align*}