MHB Is $g(n)=O(g^5(n))$ true for all functions?

  • Thread starter Thread starter evinda
  • Start date Start date
  • Tags Tags
    Relation
AI Thread Summary
The discussion centers on whether the statement $g(n)=O(g^5(n))$ is universally true for all functions. It is established that the relation holds if and only if $g(n)$ is eventually separated from zero, meaning there exists an $n_0$ and an $\varepsilon>0$ such that $g(n)>\varepsilon$ for all $n>n_0$. Examples provided illustrate that for functions like $g(n)=\frac{1}{n}$, the relation does not hold, while for $g(n)=n$, it does. The conversation further explores the conditions under which a constant $c$ can be determined to satisfy the inequality $g(n) < c(g(n))^5$. Ultimately, the conclusion is that $g(n)=O(g^5(n))$ is contingent on the behavior of $g(n)$ as it approaches zero.
evinda
Gold Member
MHB
Messages
3,741
Reaction score
0
Hey again! (Wave)

I have to determine if $g(n)=O(g^5(n))$ is true or not.

I thought that I could use the definition of Big-0h, but I don't know how to begin, formulating it.

From the definition, we have that $\exists c>0$ and $n_0 \in \mathbb{N}_0$ such that $\forall n \geq n_0$:

$$0 \leq g(n) \leq c g^5 (n)$$

I took $g(n)=\frac{1}{n}$ and in this case the relation does not stand, since we get: $n^4 \leq c$.

But, taking $g(n)=n$, the relation is true?

So, for which functions is the relation true and for which not? (Thinking)
 
Technology news on Phys.org
$g(n)=O(g^5(n))$ holds iff $g(n)$ is eventually separated from 0, i.e., there exist an $n_0\in\Bbb N$ and an $\varepsilon>0$ such that $g(n)>\varepsilon$ for all $n>n_0$.
 
Evgeny.Makarov said:
$g(n)=O(g^5(n))$ holds iff $g(n)$ is eventually separated from 0, i.e., there exist an $n_0\in\Bbb N$ and an $\varepsilon>0$ such that $g(n)>\varepsilon$ for all $n>n_0$.

Could you explain it further to me? (Thinking)
 
Prove that if $y>\varepsilon>0$ then there exists a $c$ that depends on $\varepsilon$ but not on $y$ such that $y<cy^5$. Here $y$ plays the role of $g(n)$. Obviously, if $\varepsilon\ge1$, then it is enough to take $c=1$. What happens when $0<\varepsilon<1$?
 
Evgeny.Makarov said:
What happens when $0<\varepsilon<1$?

When $0<\varepsilon<1$, we have to take a $c>2$, right? (Thinking)

How do we conclude this:

$g(n)=O(g^5(n))$ holds iff there exist an $n_0\in\Bbb N$ and an $\varepsilon>0$ such that $g(n)>\varepsilon$ for all $n>n_0$

from the fact that if $g(n)=O(g^5(n))$, then $\exists c>0$ and $n_0 \in \mathbb{N}_0$ such that $\forall n \geq n_0$: $0 \leq g(n) \leq c g^5 (n)$ ? (Worried)
 
evinda said:
When $0<\varepsilon<1$, we have to take a $c>2$, right?
Not just any $c>2$.

Note that
\[
y<cy^5\iff cy^4>1\iff c>\frac{1}{y^4}\iff y>\sqrt[4]{\frac{1}{c}}
\]
when $c,y>0$. I suggest answering the following questions, which lead to the solution.

  1. If $y=0.5$, for what $c$ (at least one) do we have $cy^4>1$?
  2. If $y=0.1$, for what $c$ do we have $cy^4>1$?
  3. If $y=0.01$, for what $c$ do we have $cy^4>1$?
  4. In general, if $0<y<1$, for what $c$ do we have $cy^4>1$? (Smile)
  5. Suppose that the exact value of $y$ is not known, but it is known that $y>\varepsilon>0$. Which $c$ would guarantee that $cy^4>1$?
evinda said:
How do we conclude this:

$g(n)=O(g^5(n))$ holds iff there exist an $n_0\in\Bbb N$ and an $\varepsilon>0$ such that $g(n)>\varepsilon$ for all $n>n_0$
The questions above lead to a proof of the $(\Longleftarrow)$ part. In fact, both directions follow from the equivalence
\[
y<cy^5\iff y>\sqrt[4]{\frac{1}{c}}.
\]
 
Evgeny.Makarov said:
Not just any $c>2$.

Note that
\[
y<cy^5\iff cy^4>1\iff c>\frac{1}{y^4}\iff y>\sqrt[4]{\frac{1}{c}}
\]
when $c,y>0$. I suggest answering the following questions, which lead to the solution.

  1. If $y=0.5$, for what $c$ (at least one) do we have $cy^4>1$?
  2. If $y=0.1$, for what $c$ do we have $cy^4>1$?
  3. If $y=0.01$, for what $c$ do we have $cy^4>1$?
  4. In general, if $0<y<1$, for what $c$ do we have $cy^4>1$? (Smile)
  5. Suppose that the exact value of $y$ is not known, but it is known that $y>\varepsilon>0$. Which $c$ would guarantee that $cy^4>1$?

  1. $c >16$
  2. $c>10^4$
  3. $c> 10^8$
  4. $c> \frac{1}{y^4}$
  5. $c>\frac{1}{\epsilon^4}$

Right? (Thinking)
 
Yes. So if $g(n)>\varepsilon$ starting from some $N$, then taking any $c>\frac{1}{\varepsilon^4}$ guarantees that $g(n)<c(g(n))^5$ starting from the same $N$, i.e., $g(n)=O((g(n))^5)$. Conversely, using the last equivalence in post #6, if $g(n)<c(g(n))^5$ for all $n>N$, then $g(n)>\sqrt[4]{\frac{1}{c}}$ for $n>N$, so $g(n)$ is eventually separated from 0.
 

Similar threads

Replies
15
Views
3K
Replies
8
Views
2K
Replies
2
Views
2K
Replies
4
Views
2K
Replies
1
Views
2K
Replies
5
Views
2K
Back
Top