Skip to content

Instantly share code, notes, and snippets.

@mikedll
Last active May 5, 2024 08:48
Show Gist options
  • Save mikedll/330a442c84c95913eeddd80a30eb55ad to your computer and use it in GitHub Desktop.
Save mikedll/330a442c84c95913eeddd80a30eb55ad to your computer and use it in GitHub Desktop.
CLRS, Problems 3 Part 2

Problems 3-3

In descending order.

  1. $2^{\lg^* n}$
  2. $\lg^* n$
  3. $\lg (\lg^* n)$

We consider ${\sqrt 2}^{\lg n}$. Let's compare it with $2^{\lg^* n}$. We conjecture that the first is greater than the second. We have:

$$ \begin{align} 2^{\lg^* n} &\lt {\sqrt 2}^{\lg n} \\ 2^{\lg^* n} &\lt {2^{1/2}}^{\lg n} \\ \end{align} $$

Suppose $n = 2000$. Let $c_1 = \lg n$. We have:

$$ \begin{align} 2^{\lg^* n} &\lt {\sqrt 2}^{\lg n} \\ 2^{4} &\lt {2^{1/2}}^{c_1} \\ 2^{4} &\lt 2^{{c_1}/2} \\ 4 &\lt \frac{1}{2}{c_1} \\ \end{align} $$

Which is true as $n$ and $c_1$ grow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment