Monday, 16 April 2018

algorithms - Question on Asymptotic Function.



Question





Let n=m!. Which of the following is TRUE?




a)m=Θ(lognloglogn)



b)m=Ω(lognloglogn) but not m=O(lognloglogn)



c)m=Θ(log2n)

m=Ω(log2n) but not m=Ο((log2n)



d)m=Θ(log1.5n)



Let me Clear that this is not a homework question, i have learnt asymptotic
growth and trying to solve some good question.During Practicing, i found this
beautiful question but i am stuck at one point and unable to move on to conclude the answer.



My approach





Given n=m!




logn=(logm!)=mlogm



m=lognlogm



I am stuck how to move forward .What value should i give to logm?




Please help


Answer



The first issue with what you wrote is that you write an equality instead of an asymptotic equivalence: you cannot write logm!=mlogm. You can write logm!mmlogm

, which is equivalent to writing logm!=mlogm+o(mlogm); or, more precise,
lnm!=mlnmm+O(logm)

(this is Stirling's approximation).







Now, let us start from there. Since n=m!, we have
logn=mlogm+o(mlogm)


by the above. Let us write m=f(n)logn for some f>0 we are trying to figure out (asymptotically). (1) becomes
logn=f(n)lognlogf(n)+f(n)lognloglogn+o(f(n)lognlog(f(n)logn))

or equivalently
1=f(n)logf(n)+f(n)loglogn+o(f(n)log(f(n)logn))

From this, it is clear that we must have f(n)=o(1) (as otherwise f(n)loglogn is unbounded). That allows us to simplify (2) as
1=o(1)+f(n)loglogn+o(f(n)loglogn)

which implies (for the equality to hold) that we must have f(n)loglogn=1+o(1), and thus f(n)n1loglogn.



Putting it all together,
mnlognloglogn.


No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

How to find limh0sin(ha)h without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...