1

How do I convert ${\log n}^n$ to the form $n^x$, for some $x$? I'd like to compare the big-O runtime of $(\log n)^n$ to $n^{\log n}$ directly. Intuitively, $(\log n)^n$ grows faster since the exponent grows faster but I'm not sure how to prove the result directly. Any tips or guidance is appreciated.

3SAT
  • 7,512

3 Answers3

4

Well, you want to write

$$(\log n)^n = n^x$$

If you take logarithm of both sides:

\begin{align*} \log \left( \log n \right)^n &= \log(n^x) \\ n \log(\log n) &= x \log n \\ x &=\frac{n \log (\log n)}{\log n}\end{align*}

mweiss
  • 23,647
2

How about this $(\ln n)^n = e^{n\ln\ln n}$ and $n^{\ln n} = e^{\ln n\ln n}$. Is it helpful?

echzhen
  • 1,029
1

We can rewrite it as following:

$$\log(n)^n = (n^{\log_n (\log (n))})^n = n^{n \log_n( \log(n))} = n^{\frac{n \log (\log (n))}{\log(n)}}$$

wythagoras
  • 25,026