Lably
Skip to content

Iterated logarithm

  • 2 min read
  • 2 chapters

Related on Lably

Through Computer science, Logarithm and Iteration

log∗⁡n:={0if n≤1;1+log∗⁡(log⁡n)if n>1

In computer science, lg* is often used to indicate the binary iterated logarithm, which iterates the binary logarithm (with base 2) instead of the natural logarithm (with base e). Mathematically, the iterated logarithm is well defined for any base greater than e1/e≈1.444667, not only for base 2 and base e. The "super-logarithm" function slogb(n) is "essentially equivalent" to the base b iterated logarithm (although differing in minor details of rounding) and forms an inverse to the operation of tetration.

Analysis of algorithms

The iterated logarithm is useful in analysis of algorithms and computational complexity, appearing in the time and space complexity bounds of some algorithms such as:

The iterated logarithm grows at an extremely slow rate, much slower than the logarithm itself, or repeats of it. This is because the tetration grows much faster than iterated exponential:

yb=bb⋅⋅b⏟y≫bb⋅⋅by⏟n

the inverse grows much slower: logb∗⁡x≪logbn⁡x.

For all values of n relevant to counting the running times of algorithms implemented in practice (i.e., n ≤ 265536, which is far more than the estimated number of atoms in the known universe), the iterated logarithm with base 2 has a value no more than 5.

Higher bases give smaller iterated logarithms.

Sign in to keep reading

One more chapter is free with a Lably account.

More in Topics in mathematics