3
$\begingroup$

Considering functions f and g, is the following true?

$ (f \in O(g)) \implies (f \in \Theta(g)) \lor (f \in o(g))$

If not, can you please state an example? Despite thinking hard, i could not find one.

Thanks a lot!

$\endgroup$
0

1 Answer 1

3
$\begingroup$

No, this is not true. For example, let $f$ be the constant $1$ function, and define $g$ by $g(2n) = 1/n$ and $g(2n+1) = 1$.

$\endgroup$
1
  • $\begingroup$ Very Good. Thank you. Haven't thought about these kind of functions. $\endgroup$
    – NoMorePen
    Commented Oct 6, 2015 at 22:13

Not the answer you're looking for? Browse other questions tagged or ask your own question.