- #1
mathmari
Gold Member
MHB
- 5,049
- 7
Hey!
I am asked to prove that $g(n)$ is $O(f(n))$ if $f(n)\geq \epsilon$ , for some $\epsilon>0$ and for all but some finite set of $n$ and there exist constants $c_1>0$ and $c_2>0$ such that $g(n)\leq c_1 f(n)+c_2$ for almost all $n\geq 0$.
$g(n)$ is $O(f(n))$ means that $\exists c>0, n_0\in \mathbb{N}$ such that $\forall n\geq n_0: g(n) \leq c f(n)$.
How could I prove that $g(n)$ is $O(f(n))$ if $f$ and $g$ satisfy the above inequalities?? (Wondering)
I am asked to prove that $g(n)$ is $O(f(n))$ if $f(n)\geq \epsilon$ , for some $\epsilon>0$ and for all but some finite set of $n$ and there exist constants $c_1>0$ and $c_2>0$ such that $g(n)\leq c_1 f(n)+c_2$ for almost all $n\geq 0$.
$g(n)$ is $O(f(n))$ means that $\exists c>0, n_0\in \mathbb{N}$ such that $\forall n\geq n_0: g(n) \leq c f(n)$.
How could I prove that $g(n)$ is $O(f(n))$ if $f$ and $g$ satisfy the above inequalities?? (Wondering)