Finding whether $f(n)$ is $O$, $o$, $Omega$, $omega$ or $Theta$ of $g(n)$. [duplicate] Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Prove whether $f(n)$ is $O$, $o$, $Omega$, $omega$ or $Theta$ of $g(n)$. $f(n) = n + (log n)^2$, $g(n) = n + log(n^2)$.When does L'Hopital's rule pick up asymptotics?Taking the log of both sides to determine big Theta/Omega/OProve that $log(n^n)=Theta(log(n!))$Big O, Omega and Theta NotationHow to disprove $n^3 = Omega(9^log_2(n))$Prove whether $f(n)$ is $O$, $o$, $Omega$, $omega$ or $Theta$ of $g(n)$ for given $f$ and $g$Comparing the growth rate of two functions using L'Hopital's ruleProve whether $f(n)$ is $O$, $o$, $Omega$, $omega$ or $Theta$ of $g(n)$. $f(n) = n + (log n)^2$, $g(n) = n + log(n^2)$.Is this solution correct? Prove whether $f(n)$ is $O$, $o$, $Omega$, $omega$ or $Theta$ of $g(n)$Prove whether $f(n)$ is $O$, $o$, $Omega$, $omega$ or $Theta$ of $g(n)$.
What do you call the holes in a flute?
How to rotate it perfectly?
Stopping real property loss from eroding embankment
Autumning in love
Can I add database to AWS RDS MySQL without creating new instance?
Is drag coefficient lowest at zero angle of attack?
Simulating Exploding Dice
Replacing HDD with SSD; what about non-APFS/APFS?
Strange behaviour of Check
grandmas drink with lemon juice
I'm having difficulty getting my players to do stuff in a sandbox campaign
Can a zero nonce be safely used with AES-GCM if the key is random and never used again?
How can players take actions together that are impossible otherwise?
Can a non-EU citizen traveling with me come with me through the EU passport line?
Cold is to Refrigerator as warm is to?
3 doors, three guards, one stone
Blender game recording at the wrong time
How do you clear the ApexPages.getMessages() collection in a test?
Cauchy Sequence Characterized only By Directly Neighbouring Sequence Members
Slither Like a Snake
How to say 'striped' in Latin
Typsetting diagram chases (with TikZ?)
What computer would be fastest for Mathematica Home Edition?
What do you call a plan that's an alternative plan in case your initial plan fails?
Finding whether $f(n)$ is $O$, $o$, $Omega$, $omega$ or $Theta$ of $g(n)$. [duplicate]
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Prove whether $f(n)$ is $O$, $o$, $Omega$, $omega$ or $Theta$ of $g(n)$. $f(n) = n + (log n)^2$, $g(n) = n + log(n^2)$.When does L'Hopital's rule pick up asymptotics?Taking the log of both sides to determine big Theta/Omega/OProve that $log(n^n)=Theta(log(n!))$Big O, Omega and Theta NotationHow to disprove $n^3 = Omega(9^log_2(n))$Prove whether $f(n)$ is $O$, $o$, $Omega$, $omega$ or $Theta$ of $g(n)$ for given $f$ and $g$Comparing the growth rate of two functions using L'Hopital's ruleProve whether $f(n)$ is $O$, $o$, $Omega$, $omega$ or $Theta$ of $g(n)$. $f(n) = n + (log n)^2$, $g(n) = n + log(n^2)$.Is this solution correct? Prove whether $f(n)$ is $O$, $o$, $Omega$, $omega$ or $Theta$ of $g(n)$Prove whether $f(n)$ is $O$, $o$, $Omega$, $omega$ or $Theta$ of $g(n)$.
$begingroup$
This question already has an answer here:
Prove whether $f(n)$ is $O$, $o$, $Omega$, $omega$ or $Theta$ of $g(n)$. $f(n) = n + (log n)^2$, $g(n) = n + log(n^2)$.
2 answers
$f(n) = n + (log n)^2, quad g(n) = n + log(n^2)$.
Log is assumed to be base 2.
Now I put this in the as $f(n)/g(n)$ which is of the form $frac inftyinfty$. So then I applied L'hopital's rule giving me
$f(n) = 1 + 2 log(n) frac1n(ln(2))$
$g(n) = 1 + 2 frac1n(ln(2))$ now if I do $f(n)/g(n)$ I get
$frac 1 + 2 log(n) frac1n(ln(2)) 1 + 2frac1n(ln(2))$
Now since the $frac1n(ln(2))$ part in both equations tends to 0, I'm left with 1/1 and thus $f(n) = Theta g(n)$
Is this correct?
discrete-mathematics asymptotics
$endgroup$
marked as duplicate by Peter Foreman, Community♦ Mar 25 at 21:27
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
$begingroup$
This question already has an answer here:
Prove whether $f(n)$ is $O$, $o$, $Omega$, $omega$ or $Theta$ of $g(n)$. $f(n) = n + (log n)^2$, $g(n) = n + log(n^2)$.
2 answers
$f(n) = n + (log n)^2, quad g(n) = n + log(n^2)$.
Log is assumed to be base 2.
Now I put this in the as $f(n)/g(n)$ which is of the form $frac inftyinfty$. So then I applied L'hopital's rule giving me
$f(n) = 1 + 2 log(n) frac1n(ln(2))$
$g(n) = 1 + 2 frac1n(ln(2))$ now if I do $f(n)/g(n)$ I get
$frac 1 + 2 log(n) frac1n(ln(2)) 1 + 2frac1n(ln(2))$
Now since the $frac1n(ln(2))$ part in both equations tends to 0, I'm left with 1/1 and thus $f(n) = Theta g(n)$
Is this correct?
discrete-mathematics asymptotics
$endgroup$
marked as duplicate by Peter Foreman, Community♦ Mar 25 at 21:27
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
1
$begingroup$
Yes. More precisely $fsim g$, but you were not given that option. All among your options that are satisfied are $O, Omega$, and $Theta$.
$endgroup$
– user647486
Mar 25 at 20:53
add a comment |
$begingroup$
This question already has an answer here:
Prove whether $f(n)$ is $O$, $o$, $Omega$, $omega$ or $Theta$ of $g(n)$. $f(n) = n + (log n)^2$, $g(n) = n + log(n^2)$.
2 answers
$f(n) = n + (log n)^2, quad g(n) = n + log(n^2)$.
Log is assumed to be base 2.
Now I put this in the as $f(n)/g(n)$ which is of the form $frac inftyinfty$. So then I applied L'hopital's rule giving me
$f(n) = 1 + 2 log(n) frac1n(ln(2))$
$g(n) = 1 + 2 frac1n(ln(2))$ now if I do $f(n)/g(n)$ I get
$frac 1 + 2 log(n) frac1n(ln(2)) 1 + 2frac1n(ln(2))$
Now since the $frac1n(ln(2))$ part in both equations tends to 0, I'm left with 1/1 and thus $f(n) = Theta g(n)$
Is this correct?
discrete-mathematics asymptotics
$endgroup$
This question already has an answer here:
Prove whether $f(n)$ is $O$, $o$, $Omega$, $omega$ or $Theta$ of $g(n)$. $f(n) = n + (log n)^2$, $g(n) = n + log(n^2)$.
2 answers
$f(n) = n + (log n)^2, quad g(n) = n + log(n^2)$.
Log is assumed to be base 2.
Now I put this in the as $f(n)/g(n)$ which is of the form $frac inftyinfty$. So then I applied L'hopital's rule giving me
$f(n) = 1 + 2 log(n) frac1n(ln(2))$
$g(n) = 1 + 2 frac1n(ln(2))$ now if I do $f(n)/g(n)$ I get
$frac 1 + 2 log(n) frac1n(ln(2)) 1 + 2frac1n(ln(2))$
Now since the $frac1n(ln(2))$ part in both equations tends to 0, I'm left with 1/1 and thus $f(n) = Theta g(n)$
Is this correct?
This question already has an answer here:
Prove whether $f(n)$ is $O$, $o$, $Omega$, $omega$ or $Theta$ of $g(n)$. $f(n) = n + (log n)^2$, $g(n) = n + log(n^2)$.
2 answers
discrete-mathematics asymptotics
discrete-mathematics asymptotics
edited Mar 25 at 20:58
avs
4,197515
4,197515
asked Mar 25 at 20:43
BrownieBrownie
3327
3327
marked as duplicate by Peter Foreman, Community♦ Mar 25 at 21:27
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by Peter Foreman, Community♦ Mar 25 at 21:27
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
1
$begingroup$
Yes. More precisely $fsim g$, but you were not given that option. All among your options that are satisfied are $O, Omega$, and $Theta$.
$endgroup$
– user647486
Mar 25 at 20:53
add a comment |
1
$begingroup$
Yes. More precisely $fsim g$, but you were not given that option. All among your options that are satisfied are $O, Omega$, and $Theta$.
$endgroup$
– user647486
Mar 25 at 20:53
1
1
$begingroup$
Yes. More precisely $fsim g$, but you were not given that option. All among your options that are satisfied are $O, Omega$, and $Theta$.
$endgroup$
– user647486
Mar 25 at 20:53
$begingroup$
Yes. More precisely $fsim g$, but you were not given that option. All among your options that are satisfied are $O, Omega$, and $Theta$.
$endgroup$
– user647486
Mar 25 at 20:53
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
Yes. We can also use another approach, without the heavy artillery of L'H^opital's Rule:
$$
f(n) over g(n)
= n + (log n)^2 over n + log (n^2)
= n + (log n)^2 over n + 2 log n
= n ; (1 + (log n)^2/n) over n ; (1 + 2 (log n) /n)
= 1 + (log n)^2/n over 1 + 2 (log n) /n.
$$
We see that, as $n rightarrow infty$, both the numerator and denominator tend to $1$.
$endgroup$
add a comment |
$begingroup$
Of course, more than one of those relations can hold. Let's consider them one at a time, all under the assumption that the discussion is about large $n$ asymptotics.
$f(n) = mboxO (g(n))$ for large $n$ if there is some $n_0$ and a constant $C$ such that
for all $n>n_0$,
$$
|f(n)| leq C|g(n))|
$$
Since $f(n) = n+(log n) log n$ and $g(n) = n+2log n$, we can take $n_0 = 10$ and $C = 2$ to show that this definition is met:
$$
n > 10 implies n > (log n) log n implies (log n) log n < frac nlog n\
n + (log n) log n < n + frac nlog n log n = frac n2+ left( fracn2log n+ frac nlog nright)log n < frac n2+ 2log n
$$
$f(n) = mboxo (g(n))$ for large $n$ if for any fixed positive $epsilon$ there is some $n_0$ (which may depend on $epsilon$ there is some $n_0$ and a constant $C$ such that
for all $n>n_0$,
$$
|f(n)| leq epsilon|g(n))|
$$
Since $$frac = 1 + frac(n-2)log nn+2log n$$ and $g(n) = n+2log n >1$ for $n>2$, testing against any $epsilon <1$ reveals that $f(n)$ is not $mboxo(g(n))$.
You can also, in this way, show that $g(n)$ is not $mboxo(f(n))$
$f(n) = Omega (g(n))$ for large $n$ if there is some $n_0$ and a constant $C >0$ such that for all $n>n_0$,
$$
|f(n)| geq C|g(n))|
$$
(That is, $f(n) = Omega (g(n))$ if and only if $g(n) = mboxOf(n)$.) Take $C = frac12$ and
$n_0 = 10$; then to show $g(n) = mboxOf(n)$ it suffices to show that when $n > 10$
$$
n + (log n) log n < 2 n + 4log n
$$
Show this by noting that the derivative of
$$
2n + 4 log n = n + left(fracnlog n+4right) log n > n + left(fracnlog nright) log n > n + (log n) log n
$$
Finally, since the big O applies in both directions, $f(n) = Theta(g(n))$.
$endgroup$
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Yes. We can also use another approach, without the heavy artillery of L'H^opital's Rule:
$$
f(n) over g(n)
= n + (log n)^2 over n + log (n^2)
= n + (log n)^2 over n + 2 log n
= n ; (1 + (log n)^2/n) over n ; (1 + 2 (log n) /n)
= 1 + (log n)^2/n over 1 + 2 (log n) /n.
$$
We see that, as $n rightarrow infty$, both the numerator and denominator tend to $1$.
$endgroup$
add a comment |
$begingroup$
Yes. We can also use another approach, without the heavy artillery of L'H^opital's Rule:
$$
f(n) over g(n)
= n + (log n)^2 over n + log (n^2)
= n + (log n)^2 over n + 2 log n
= n ; (1 + (log n)^2/n) over n ; (1 + 2 (log n) /n)
= 1 + (log n)^2/n over 1 + 2 (log n) /n.
$$
We see that, as $n rightarrow infty$, both the numerator and denominator tend to $1$.
$endgroup$
add a comment |
$begingroup$
Yes. We can also use another approach, without the heavy artillery of L'H^opital's Rule:
$$
f(n) over g(n)
= n + (log n)^2 over n + log (n^2)
= n + (log n)^2 over n + 2 log n
= n ; (1 + (log n)^2/n) over n ; (1 + 2 (log n) /n)
= 1 + (log n)^2/n over 1 + 2 (log n) /n.
$$
We see that, as $n rightarrow infty$, both the numerator and denominator tend to $1$.
$endgroup$
Yes. We can also use another approach, without the heavy artillery of L'H^opital's Rule:
$$
f(n) over g(n)
= n + (log n)^2 over n + log (n^2)
= n + (log n)^2 over n + 2 log n
= n ; (1 + (log n)^2/n) over n ; (1 + 2 (log n) /n)
= 1 + (log n)^2/n over 1 + 2 (log n) /n.
$$
We see that, as $n rightarrow infty$, both the numerator and denominator tend to $1$.
answered Mar 25 at 21:04
avsavs
4,197515
4,197515
add a comment |
add a comment |
$begingroup$
Of course, more than one of those relations can hold. Let's consider them one at a time, all under the assumption that the discussion is about large $n$ asymptotics.
$f(n) = mboxO (g(n))$ for large $n$ if there is some $n_0$ and a constant $C$ such that
for all $n>n_0$,
$$
|f(n)| leq C|g(n))|
$$
Since $f(n) = n+(log n) log n$ and $g(n) = n+2log n$, we can take $n_0 = 10$ and $C = 2$ to show that this definition is met:
$$
n > 10 implies n > (log n) log n implies (log n) log n < frac nlog n\
n + (log n) log n < n + frac nlog n log n = frac n2+ left( fracn2log n+ frac nlog nright)log n < frac n2+ 2log n
$$
$f(n) = mboxo (g(n))$ for large $n$ if for any fixed positive $epsilon$ there is some $n_0$ (which may depend on $epsilon$ there is some $n_0$ and a constant $C$ such that
for all $n>n_0$,
$$
|f(n)| leq epsilon|g(n))|
$$
Since $$frac = 1 + frac(n-2)log nn+2log n$$ and $g(n) = n+2log n >1$ for $n>2$, testing against any $epsilon <1$ reveals that $f(n)$ is not $mboxo(g(n))$.
You can also, in this way, show that $g(n)$ is not $mboxo(f(n))$
$f(n) = Omega (g(n))$ for large $n$ if there is some $n_0$ and a constant $C >0$ such that for all $n>n_0$,
$$
|f(n)| geq C|g(n))|
$$
(That is, $f(n) = Omega (g(n))$ if and only if $g(n) = mboxOf(n)$.) Take $C = frac12$ and
$n_0 = 10$; then to show $g(n) = mboxOf(n)$ it suffices to show that when $n > 10$
$$
n + (log n) log n < 2 n + 4log n
$$
Show this by noting that the derivative of
$$
2n + 4 log n = n + left(fracnlog n+4right) log n > n + left(fracnlog nright) log n > n + (log n) log n
$$
Finally, since the big O applies in both directions, $f(n) = Theta(g(n))$.
$endgroup$
add a comment |
$begingroup$
Of course, more than one of those relations can hold. Let's consider them one at a time, all under the assumption that the discussion is about large $n$ asymptotics.
$f(n) = mboxO (g(n))$ for large $n$ if there is some $n_0$ and a constant $C$ such that
for all $n>n_0$,
$$
|f(n)| leq C|g(n))|
$$
Since $f(n) = n+(log n) log n$ and $g(n) = n+2log n$, we can take $n_0 = 10$ and $C = 2$ to show that this definition is met:
$$
n > 10 implies n > (log n) log n implies (log n) log n < frac nlog n\
n + (log n) log n < n + frac nlog n log n = frac n2+ left( fracn2log n+ frac nlog nright)log n < frac n2+ 2log n
$$
$f(n) = mboxo (g(n))$ for large $n$ if for any fixed positive $epsilon$ there is some $n_0$ (which may depend on $epsilon$ there is some $n_0$ and a constant $C$ such that
for all $n>n_0$,
$$
|f(n)| leq epsilon|g(n))|
$$
Since $$frac = 1 + frac(n-2)log nn+2log n$$ and $g(n) = n+2log n >1$ for $n>2$, testing against any $epsilon <1$ reveals that $f(n)$ is not $mboxo(g(n))$.
You can also, in this way, show that $g(n)$ is not $mboxo(f(n))$
$f(n) = Omega (g(n))$ for large $n$ if there is some $n_0$ and a constant $C >0$ such that for all $n>n_0$,
$$
|f(n)| geq C|g(n))|
$$
(That is, $f(n) = Omega (g(n))$ if and only if $g(n) = mboxOf(n)$.) Take $C = frac12$ and
$n_0 = 10$; then to show $g(n) = mboxOf(n)$ it suffices to show that when $n > 10$
$$
n + (log n) log n < 2 n + 4log n
$$
Show this by noting that the derivative of
$$
2n + 4 log n = n + left(fracnlog n+4right) log n > n + left(fracnlog nright) log n > n + (log n) log n
$$
Finally, since the big O applies in both directions, $f(n) = Theta(g(n))$.
$endgroup$
add a comment |
$begingroup$
Of course, more than one of those relations can hold. Let's consider them one at a time, all under the assumption that the discussion is about large $n$ asymptotics.
$f(n) = mboxO (g(n))$ for large $n$ if there is some $n_0$ and a constant $C$ such that
for all $n>n_0$,
$$
|f(n)| leq C|g(n))|
$$
Since $f(n) = n+(log n) log n$ and $g(n) = n+2log n$, we can take $n_0 = 10$ and $C = 2$ to show that this definition is met:
$$
n > 10 implies n > (log n) log n implies (log n) log n < frac nlog n\
n + (log n) log n < n + frac nlog n log n = frac n2+ left( fracn2log n+ frac nlog nright)log n < frac n2+ 2log n
$$
$f(n) = mboxo (g(n))$ for large $n$ if for any fixed positive $epsilon$ there is some $n_0$ (which may depend on $epsilon$ there is some $n_0$ and a constant $C$ such that
for all $n>n_0$,
$$
|f(n)| leq epsilon|g(n))|
$$
Since $$frac = 1 + frac(n-2)log nn+2log n$$ and $g(n) = n+2log n >1$ for $n>2$, testing against any $epsilon <1$ reveals that $f(n)$ is not $mboxo(g(n))$.
You can also, in this way, show that $g(n)$ is not $mboxo(f(n))$
$f(n) = Omega (g(n))$ for large $n$ if there is some $n_0$ and a constant $C >0$ such that for all $n>n_0$,
$$
|f(n)| geq C|g(n))|
$$
(That is, $f(n) = Omega (g(n))$ if and only if $g(n) = mboxOf(n)$.) Take $C = frac12$ and
$n_0 = 10$; then to show $g(n) = mboxOf(n)$ it suffices to show that when $n > 10$
$$
n + (log n) log n < 2 n + 4log n
$$
Show this by noting that the derivative of
$$
2n + 4 log n = n + left(fracnlog n+4right) log n > n + left(fracnlog nright) log n > n + (log n) log n
$$
Finally, since the big O applies in both directions, $f(n) = Theta(g(n))$.
$endgroup$
Of course, more than one of those relations can hold. Let's consider them one at a time, all under the assumption that the discussion is about large $n$ asymptotics.
$f(n) = mboxO (g(n))$ for large $n$ if there is some $n_0$ and a constant $C$ such that
for all $n>n_0$,
$$
|f(n)| leq C|g(n))|
$$
Since $f(n) = n+(log n) log n$ and $g(n) = n+2log n$, we can take $n_0 = 10$ and $C = 2$ to show that this definition is met:
$$
n > 10 implies n > (log n) log n implies (log n) log n < frac nlog n\
n + (log n) log n < n + frac nlog n log n = frac n2+ left( fracn2log n+ frac nlog nright)log n < frac n2+ 2log n
$$
$f(n) = mboxo (g(n))$ for large $n$ if for any fixed positive $epsilon$ there is some $n_0$ (which may depend on $epsilon$ there is some $n_0$ and a constant $C$ such that
for all $n>n_0$,
$$
|f(n)| leq epsilon|g(n))|
$$
Since $$frac = 1 + frac(n-2)log nn+2log n$$ and $g(n) = n+2log n >1$ for $n>2$, testing against any $epsilon <1$ reveals that $f(n)$ is not $mboxo(g(n))$.
You can also, in this way, show that $g(n)$ is not $mboxo(f(n))$
$f(n) = Omega (g(n))$ for large $n$ if there is some $n_0$ and a constant $C >0$ such that for all $n>n_0$,
$$
|f(n)| geq C|g(n))|
$$
(That is, $f(n) = Omega (g(n))$ if and only if $g(n) = mboxOf(n)$.) Take $C = frac12$ and
$n_0 = 10$; then to show $g(n) = mboxOf(n)$ it suffices to show that when $n > 10$
$$
n + (log n) log n < 2 n + 4log n
$$
Show this by noting that the derivative of
$$
2n + 4 log n = n + left(fracnlog n+4right) log n > n + left(fracnlog nright) log n > n + (log n) log n
$$
Finally, since the big O applies in both directions, $f(n) = Theta(g(n))$.
answered Mar 25 at 21:41
Mark FischlerMark Fischler
34.2k12552
34.2k12552
add a comment |
add a comment |
1
$begingroup$
Yes. More precisely $fsim g$, but you were not given that option. All among your options that are satisfied are $O, Omega$, and $Theta$.
$endgroup$
– user647486
Mar 25 at 20:53