WIPIVERSE All articles

Iterated logarithm

The iterated logarithm, denoted $\log^{*} n$ (read “log-star n”) or sometimes $\operatorname{ilog}(n)$, is a function that counts how many times the logarithm must be applied to a positive real number $n$ before the result is less than or equal to 1. Formally, for a base $b>1$,

$$ \log^{}_{b} n= \begin{cases} 0, & n \le 1,$$4pt] 1 + \log^{}{b}\bigl(\log{b} n\bigr), & n > 1. \end{cases} $$

When the base is omitted, the binary logarithm ($b=2$) is typically assumed, especially in computer‑science contexts.

Basic properties

  • Growth rate – $\log^{} n$ grows extremely slowly; for all practical input sizes it remains a small integer. For example, $\log^{}_{2} (2^{65536}) = 5$.
  • Monotonicity – $\log^{*} n$ is a non‑decreasing function of $n$.
  • Asymptotics – $\log^{} n = O(\log \log n)$, but the converse is false; $\log^{} n$ grows more slowly than any iterated logarithm of fixed depth.

Common alternative notations

  • $\operatorname{ilog}(n)$
  • $\operatorname{iterlog}(n)$
  • $\log^{(k)} n$ denotes the $k$-fold composition of $\log$, while $\log^{*} n = \min{k \mid \log^{(k)} n \le 1}$.

Applications

  • Algorithm analysis – Appears in the time complexity of certain data structures (e.g., disjoint‑set forests with union‑by‑rank and path compression) and algorithms (e.g., the inverse Ackermann function $α(n)$ is bounded by a constant multiple of $\log^{*} n$).
  • Complexity theory – Used to define extremely slowly growing functions in hierarchies such as the Grzegorczyk hierarchy.
  • Mathematical analysis – Serves as an example of a function that is eventually constant for any fixed bound on input size, illustrating concepts of iterated function application.

Example calculations (binary logarithm)

$n$ $\log_{2} n$ $\log_{2}^{(2)} n$ $\log_{2}^{(3)} n$ $\log^{*}_{2} n$
2 1 ≤1 — 1
16 4 2 1 3
2^{65536} 65536 16 4 5

Relation to the inverse Ackermann function

The inverse Ackermann function $α(n)$ is defined via a hierarchy of rapidly growing functions; it satisfies $α(n) = O(\log^{} n)$ and grows even more slowly. Consequently, many algorithms that are described as having “$α(n)$‑time” are also bounded by a constant multiple of $\log^{} n$.

Historical notes

The term “iterated logarithm” and the notation $\log^{*}$ were popularized in the 1970s in the analysis of the union‑find data structure by Robert Tarjan. The concept predates this usage in mathematical literature on function iteration, but its modern computational meaning is tied to algorithmic complexity.

Browse

More topics to explore

    Browse all articles