I trying resolve this problem, but the first equation have 3 terms and the second equation have 2 terms. I don't know how to resolve this problem. Any idea?
Asked
Active
Viewed 120 times
1
-
3The statement is false: $n^2+1$ is $O(n^3-2n-3)$, but $n^3-2n-3$ is not $O(n^2+1)$. – Brian M. Scott May 09 '13 at 04:29
1 Answers
0
Note that $\Theta(n^3 - 2n - 3)$ is the set of functions $f(n)$ such that $\frac{f(n)}{n^3 - 2n - 3}$ is bounded away from both $0$ and $\infty$ for arbitrarily large $n$.
Since $\frac{n^2+1}{n^3 - 2n - 3} \to 0$ as $n \to \infty$, $n^2+1 \notin \Theta(n^3 - 2n - 3)$.
However, $n^2+1 \in O(n^3 - 2n - 3)$. This is often written $n^2+1 = O(n^3 - 2n - 3)$.
Also note that $\Theta(n^3 - 2n - 3) = \Theta(n^3)$.
marty cohen
- 107,799