Determining the growth of two functions using Big-Oh definition

Click For Summary
The discussion centers on comparing the growth rates of the functions g(n) = 6^n/n^5 and h(n) = (ln n)^84 using Big-Oh notation. It is established that g(n) grows significantly faster than h(n) as n increases, with no constant C satisfying the inequality |g(n)| < C·h(n) for large n. The logarithmic transformation of both functions reveals that log g(n) behaves like n, while log h(n) behaves like log log n, confirming that g(n) outpaces h(n). The participants clarify that g(n) is effectively O(6^n) and h(n) is O(log(n)^{84}), reinforcing the conclusion that g(n) grows faster. Overall, the analysis confirms that g(n) dominates h(n) in terms of growth for large n.
Haku
Messages
30
Reaction score
1
Homework Statement
I want to find the relationship between the growth of two functions, and define which grows faster when n gets large. g(n) = 6^n/n^5 , h(n) = (ln n)^84.
Relevant Equations
|g(n)| < C*h(n) for some C>0
My attempt involved using the big-Oh notation, I think this should work but I am not sure how to go about it. The two functions are g(n) = 6^n/n^5 and h(n) = (ln n)^84.
I thought that I could use the inequality 6^n < ln(n)^84 and 6^n/|n^5| = |g(n)| < 6^n and put those inequalities together.
But then would I choose C = 1? and by def it has to hold for some n0 when n > n0, so how would I pick an n0 s.t. this holds?
Am I even on the right track here?
Thanks.
 
Physics news on Phys.org
If we take the logarithm, then ##\log g(n)=n\log 6 - 5\log (n)## which shows that ##\log g(n) \sim n.## The same done for ##h(n)## yields ##\log h(n)=84\log(\log(n)),## so ##\log h(n) \sim \log\log(n)).##

But ##n## grows much faster than ##\log\log(n)),## so how can
Haku said:
I thought that I could use the inequality 6^n < ln(n)^84 ...
hold? We have ##g(n)=O(6^n)=O(e^n)## and ##h(n)=O(\log(n)##. How do you want to compare them otherwise? As ##\dfrac{g(n)}{h(n)}## or as ##g(n)=g(h(n))##?
 
I am a little confused with your reply. Was the first part about showing that my claim that 6^n < ln(n)^84 was false?
As for the comparison of g and h, to show that f does not grow at a faster rate than g when n gets large, we would need to show the following:
Screen Shot 2021-04-10 at 9.48.10 AM.png

Do you think using this def given the functions g and h would be possible? I need to find either case of one growing faster than the other when n gets large. I can't see how you could intuitively see which case has a higher probability of holding so I just chose the case where g grows faster than h arbitrarily.
Does any of my working on the original post look useful in attempts to conclude growth via this def?
Thanks.
 
Haku said:
I am a little confused with your reply. Was the first part about showing that my claim that 6^n < ln(n)^84 was false?
As for the comparison of g and h, to show that f does not grow at a faster rate than g when n gets large, we would need to show the following: View attachment 281215
Do you think using this def given the functions g and h would be possible? I need to find either case of one growing faster than the other when n gets large. I can't see how you could intuitively see which case has a higher probability of holding so I just chose the case where g grows faster than h arbitrarily.
Does any of my working on the original post look useful in attempts to conclude growth via this def?
Thanks.
Yes, ##6^n## grows a lot faster than ##\log n##. There is no constant ##C## such that ##|g(n)|<C\cdot h(n)## for large ##n.## If at all, it is the other way around because ##6^n>n^c>(\log n)^c## for large ##n.##
Have a look at the Wikipedia article about the usage of the Landau symbols:
https://en.wikipedia.org/wiki/Big_O_notation

Your example is: ##g(n)=O(6^n)## and ##h(n)=O((\log n)^c)##. If we write ##h(n)=C\cdot (\log n)^c## then ##n\sim e^{C\cdot h(n)^{c'}}##, i.e. ##g(n) = O(6^{e^{h(n)}}).## This would be a very unusual way to write it. The common notation would be ##g(n)=O(6^n)## and ##h(n)=O(log(n)^{84}).##
 
Last edited:
But here we have the relationship log(n)^c < n^c < 6^n, where h(n) = log(n)^c for c = 84. But g(n) = 6^n/n^5 not just 6^n, so how can we extend the string of inequalities to fit g(n) such that log(n)^c < g(n)?
Because that way we could pick C = 1 > 0 and some arbitrary n0 such that the condition holds when n > n0.
 
##n^5 ## is small against ##6^n## so we can write ##O(5^n) <g(n)=\dfrac{6^n}{n^5}<6^n=O(6^n)##. Hence we don't have to bother: It would be ##O(c^n)## for some number ##5<c<6## if we make more precise.

##h(n)=(\log n)^{84} = O(\log (n)^{84})< O(n^{84}) < O(6^n)=g(n)## for ##n>260.##
 
Im confused because what does the notation O(log(n)^84) mean? To my understanding you use something like f = O(g) where that defines the growth between f and g and means f grows slower than g. What does your notation mean?
Also that last equality does not hold because g(n) is not 6^n?
 
Haku said:
Im confused because what does the notation O(log(n)^84) mean? To my understanding you use something like f = O(g) where that defines the growth between f and g and means f grows slower than g. What does your notation mean?
Also that last equality does not hold because g(n) is not 6^n?
##h(n)=O(\log(n)^{84})## means ##h(n)\leq C\cdot \log(n)^{84}##.

##g(n)=O(c^n)## with ##c\in (5,6)## which is practically the same as ##O(6^n)##.
 
  • Like
Likes Haku

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 26 ·
Replies
26
Views
685
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 14 ·
Replies
14
Views
3K