0

Could someone explain to me which function grows faster?

$f(n)=\log(\log^an)$ or $g(n)=\log^a(\log n)$

David Richerby
  • 81,689
  • 26
  • 141
  • 235
Gökhan
  • 3
  • 2

1 Answers1

8

Assuming $\log^a n$ means $\log n$, raised to the power $a$:

Let $t = \log \log n$, then the first expression equals $t·a$, while the second expression equals $t^a$. For $a > 1$ the latter grows faster, for $a < 1$ the former is faster, and for $a = 1$ they are identical.

Yuval Filmus
  • 276,994
  • 27
  • 311
  • 503
gnasher729
  • 29,996
  • 34
  • 54