Question

So I know that $\log^*$ means iterated logarithm, so $\log^*(3)$ = $(\log\log\log\log...)$ until $n \leq 1$.

I'm trying to solve the following:

is

$\log^*(2^{2^n})$

little $o$, little $\omega$, or $\Theta$ of

${\log^*(n)}^2$

In terms of the interior functions, $\log^*(2^{2^n})$ is much bigger than $\log^*(n)$, but squaring the $\log^*(n)$ is throwing me off.

I know that $\log(n)^2$ is $O(n)$, but I don't think that property holds for the iterative logarithm.

I tried applying the master method, but I'm having trouble with the properties of a $\log^*(n)$ function. I tried setting n to be max (i.e. $n = 5$), but this didn't really simplify the problem.

Does anyone have any tips as to how I should approach this?

Was it helpful?

Solution

Recall that for $k > 1$, by definition we have $\log^*k = \log^*(\log{k}) + 1$.

By applying the definition twice, we see that $\log^*(2^{2^n}) = \log^*n + 2$. Now we can compare $\log^*n + 2$ and $(\log^*n)^2$.

OTHER TIPS

Let's write it out and see what we get. To track the number of logs, I'll subscript them; I know that's usually base, if anyone has a better idea let me know or edit it in:

$$ \log^*(2^{2^n}) \\ = \log_1(\log_2(...\log_k(2^{2^n})...)) \\ = \log_1...\log_{k-1}(2^n\log_{k}(2)) \\ = \log_1...\log_{k-2}(\log_{k-1}(2^n)+\log_{k-1}\log_{k}(2))) \\ = \log_1...\log_{k-2}(n\log_{k-1}(2)+\log_{k-1}\log_{k}(2))) \\ \approx \log_1...\log_{k-2}(n\log_{k-1}(2)) \\ = \log_1...\log_{k-2}(n+\log_{k-1}(2)) \\ \approx \log_1...\log_{k-2}(n) \\ $$ Since we're looking for large $n$, I've dropped the additive terms $\log(\log(2))\approx-0.3665$ and $\log(2)\approx0.693$.

This shows that if $\log^*(2^{2^n}) = k$, then $log^*(n) \approx k-2$, or combining these, $$ \log^*(2^{2^n}) \approx \log^*(n)+2 $$

The big-$\Theta$s are identical, and as pointed out in the comments, if the base of the logarithm and the power are the same, the equations are identically equal.

Licensed under: CC-BY-SA with attribution
Not affiliated with cs.stackexchange
scroll top