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

  • Context: MHB 
  • Thread starter Thread starter evinda
  • Start date Start date
  • Tags Tags
    Relation
Click For Summary

Discussion Overview

The discussion revolves around the relationship between a function \( g(n) \) and its fifth power \( g^5(n) \) in the context of Big-O notation. Participants explore whether the statement \( g(n) = O(g^5(n)) \) holds true for all functions, examining specific cases and the conditions under which the relationship may or may not be valid.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant suggests using the definition of Big-O to explore the relationship, noting that for \( g(n) = \frac{1}{n} \), the relation does not hold, while for \( g(n) = n \), it does.
  • Another participant states that \( g(n) = O(g^5(n)) \) holds if \( g(n) \) is eventually separated from 0, providing a condition involving \( n_0 \) and \( \varepsilon \).
  • A later reply seeks clarification on this condition and its implications.
  • Participants discuss the implications of choosing \( c \) based on the value of \( \varepsilon \), particularly when \( 0 < \varepsilon < 1 \).
  • One participant proposes a series of questions to explore the relationship further, particularly focusing on the conditions under which \( cy^4 > 1 \) holds for various values of \( y \).
  • Another participant confirms that if \( g(n) > \varepsilon \) for sufficiently large \( n \), then a suitable \( c \) can be chosen to satisfy the Big-O condition.

Areas of Agreement / Disagreement

Participants express differing views on the conditions under which \( g(n) = O(g^5(n)) \) holds, with some agreeing on the necessity of \( g(n) \) being eventually separated from 0, while others question the implications and specific values of \( c \) required. The discussion remains unresolved regarding the general applicability of the statement for all functions.

Contextual Notes

Participants rely on the definition of Big-O and explore specific cases without reaching a consensus on the generality of the statement. The discussion includes assumptions about the behavior of \( g(n) \) and the choice of constants, which may not be universally applicable.

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 1 ·
Replies
1
Views
2K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
59
Views
9K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 10 ·
Replies
10
Views
3K