2

Can anyone explain to me how

$$ f(n) = n^{0.999999} \log n = O(n^{0.999999} n^{0.000001}) $$

?

bcp
  • 73

1 Answers1

2

It's because $\log n = O(n^\alpha)$ as $n \to \infty$ for any fixed $\alpha > 0$. They chose $\alpha = 0.000001$.

To see this, first show that

$$ \lim_{n \to \infty} \frac{\log n}{n^\alpha} = 0 $$

by using L'Hopital's rule. This implies

$$ \frac{\log n}{n^\alpha} = O(1), $$

and multiplying both sides of this by $n^\alpha$ yields $\log n = O(n^\alpha)$.

  • Can you please give me some reference link to understand the above concept? – bcp Jan 18 '14 at 18:06
  • I've added some more information to the answer. Virtually any book or lecture notes on asymptotics should have the relevant information. Graham, Knuth, and Patashnik's Concrete Mathematics has a nice chapter on it, for instance. – Antonio Vargas Jan 18 '14 at 18:45
  • Went through couple of videos on L'Hopital rule on Khan Academy.Solved the above equation and clearly understood the idea behind.Unfortunately i cannot upvote untill i have 15 reputations.Thanks a lot. – bcp Jan 18 '14 at 19:54
  • No problem, glad to help. Also, as the question asker you can "accept" the answer to your question by clicking the check mark below the upvote/downvote arrows, if you'd like. – Antonio Vargas Jan 18 '14 at 21:06