Asymptotic notation for logarithmic function

968 Views Asked by At

Can anyone explain to me how

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

?

1

There are 1 best solutions below

4
On BEST ANSWER

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)$.