Does log $f(n) = O($log $g(n))$ imply $f(n) = O(g(n))?$

1.1k Views Asked by At

Assuming log is base 2, if I know that:

log $f(n) = O($log $g(n))$. Does this imply that $f(n) = O(g(n))$?

I understand that the converse is true.

1

There are 1 best solutions below

0
On

No. For example, $\log(n^2)=O(\log(n))$.