Suppose that $h=\log_2 (n+1)$. Why is $h$ also $O(\log_2 n)$?
I know the definition of big $O$ notation, and properties or logarithms, but I can't figure it out - that $+1$ is causing troubles.
Suppose that $h=\log_2 (n+1)$. Why is $h$ also $O(\log_2 n)$?
I know the definition of big $O$ notation, and properties or logarithms, but I can't figure it out - that $+1$ is causing troubles.
That's because $\log_2(n+1)\sim_\infty\log_2n$.