Recalling the definition Asymtotic Notation, we have the following problems: In the analysis of algorithms, we are mostly concerned with function of the type from to , where depicts the count of basic operations in the Word-RAM model, for an input size of . is allowed to be real, just for relaxation.
Note that is increasing in , it would be kind of weird if a larger input required less computations in our model.
Any polynomial/sub-polynomial beats any logarithmic power
For any , . But .
First, we will show that there is an absolute constant such that . Notice the following series of equations, (exploiting the fact that is increasing)
Now set . for and . We claim that has an absolute maximum. $$g'(x) = \frac{1}{x}\left( \frac{a}{\log x} - b \right)$$
Notice that at , and for , , for . Hence is the absolute maximum of . It's sufficient to set .
Now, we will show that there is no absolute constant such that . Again $$ b \log n \le \log D + a \log(\log n)$$
notice that is increasing, and unbounded for real . We will leave it to the reader to prove this.
Informal
We will not be doing any additional problems for asymptotic analysis.
Asymptotics Exercises
Find a simple, tight asymptotic bound for .
Solution: Definition yields in the numerator (a degree 6006 polynomial) and in the denominator (constant with respect to ). So .
Find a simple, tight asymptotic bound for .
Solution: Recall exponent and logarithm rules: , and .
Show that , but that .
Solution: In the first case, , which is a constant factor larger than . In the second case, , which is definitely more than a constant factor larger than .
Show that for all positive constants and .
Solution: It's enough to show limits to as , and this is equivalent to arguing that the log of this expression approaches :
as desired.
Note: for the same reasons, for any .
Show that .
Solution: Note that , so setting completes the proof.
Show that , but that .
Solution: We invoke Sterling's approximation,
Substituting in gives an expression that is at least larger than the original. But taking the logarithm of Sterling's gives , and substituting in yields only constant additional factors.
Asymptotic Analysis using limits
we can loosen our definition of big- notation, by allowing if we have for each for some .
Using this definition, we have the following proposition:
Finite limiting ratio and Asymptotics
Let if , then .
Notice that for each there exists such that when : $$\Bigg|\frac{f(n)}{g(n)} - C \Bigg | < \epsilon$$
Rearranging, and choosing any small epsilon that we like :) we have for each . Hence .
Informal
Notice that doesn't say too much about the limits, and is well defined when neither nor converge, however, since for each , it is indeed true that the limit superior of is at most . (just look at all convergent subsequences of , they are all bounded above by , so the one with the largest limit is also bounded above by ).