All Topics  
Iterated logarithm

 

   Email Print
   Bookmark   Link






 

Iterated logarithm



 
 
In computer science
Computer science

Computer science is the study of the theoretical foundations of information and computation, and of practical techniques for their implementation and application in computer systems....
, the iterated logarithm of n, written log*n (usually read "log star"), is the number of times the logarithm
Logarithm

In mathematics, the logarithm of a number to a given base is the Power or exponent to which the base must be raised in order to produce the number....
 function must be iteratively applied before the result is less than or equal to 1. The simplest formal definition is the result of this recursive function:

or, in pseudocode
Pseudocode

Pseudocode is a compact and informal high-level description of a computer programming algorithm that uses the structural conventions of some programming language, but is intended for human reading rather than machine reading....
:

function iterLog(real n) if n = 1 return 0 else return 1 + iterLog(log(n))

or, in iterative pseudocode:

function iterLog(real n) i = 0 while n > 1 n = log(n) i = i + 1 return i

or, on the positive real numbers, the continuous super-logarithm
Super-logarithm

In mathematics, the super-logarithm is one of the two inverse functions of tetration. Just as exponentiation has two inverse functions: Nth root and logarithms, likewise tetration has two inverse functions: super-roots and super-logarithms....
 (an inverse function of tetration
Tetration

In mathematics, tetration is an iterated function exponential function, the first hyper operator after exponentiation. The portmanteau tetration was coined by English mathematician Reuben Louis Goodstein from tetra- and iteration....
) definition is equivalent: but on the negative real numbers, log-star is 0, whereas for positive x, so the two functions differ for negative arguments.

In computer science, lg* is often used to indicate the binary iterated logarithm, which iterates the binary logarithm
Binary logarithm

In mathematics, the binary logarithm is the logarithm for base 2. It is the inverse function of ....
 instead.






Discussion
Ask a question about 'Iterated logarithm'
Start a new discussion about 'Iterated logarithm'
Answer questions from other users
Full Discussion Forum



Encyclopedia


In computer science
Computer science

Computer science is the study of the theoretical foundations of information and computation, and of practical techniques for their implementation and application in computer systems....
, the iterated logarithm of n, written log*n (usually read "log star"), is the number of times the logarithm
Logarithm

In mathematics, the logarithm of a number to a given base is the Power or exponent to which the base must be raised in order to produce the number....
 function must be iteratively applied before the result is less than or equal to 1. The simplest formal definition is the result of this recursive function:

or, in pseudocode
Pseudocode

Pseudocode is a compact and informal high-level description of a computer programming algorithm that uses the structural conventions of some programming language, but is intended for human reading rather than machine reading....
:

function iterLog(real n) if n = 1 return 0 else return 1 + iterLog(log(n))

or, in iterative pseudocode:

function iterLog(real n) i = 0 while n > 1 n = log(n) i = i + 1 return i

or, on the positive real numbers, the continuous super-logarithm
Super-logarithm

In mathematics, the super-logarithm is one of the two inverse functions of tetration. Just as exponentiation has two inverse functions: Nth root and logarithms, likewise tetration has two inverse functions: super-roots and super-logarithms....
 (an inverse function of tetration
Tetration

In mathematics, tetration is an iterated function exponential function, the first hyper operator after exponentiation. The portmanteau tetration was coined by English mathematician Reuben Louis Goodstein from tetra- and iteration....
) definition is equivalent: but on the negative real numbers, log-star is 0, whereas for positive x, so the two functions differ for negative arguments.

Iterated Logarithm
In computer science, lg* is often used to indicate the binary iterated logarithm, which iterates the binary logarithm
Binary logarithm

In mathematics, the binary logarithm is the logarithm for base 2. It is the inverse function of ....
 instead. The iterated logarithm accepts any positive real number
Real number

In mathematics, the real numbers may be described informally in several different ways. The real numbers include both rational numbers, such as 42 and −23/129, and irrational numbers, such as pi and the square root of two; or, a real number can be given by an infinite decimal representation, such as 2.4871773339...., where the digits co...
 and yields an integer
Integer

The integers are natural numbers including 0 and their negative and non-negative numberss . They are numbers that can be written without a fractional or decimal component, and fall within the set ....
. Graphically, it can be understood as the number of "zig-zags" needed in Figure 1 to reach the interval [0, 1] on the x-axis.

Mathematically, the iterated logarithm is well-defined not only for base 2 and base e, but for any base greater than .

The iterated logarithm is closely related to the generalized logarithm function used in symmetric level-index arithmetic
Symmetric level-index arithmetic

The level-index representation of numbers, and its algorithms for arithmetic operations, were introduced by Clenshaw & Olver. The symmetric form of the LI system and its arithmetic operations were presented by Clenshaw & Turner....
. It is also proportional to the additive persistence of a number
Persistence of a number

In mathematics, the persistence of a number is a term used to describe the number of times one must apply a given operation to an integer before reaching a fixed point, i.e....
, the number of times one must replace the number by the sum of its digits before reaching its digital root
Digital root

The digital root of a number is the number obtained by digit sum, then adding the digits of that number, and then continuing until a single-digit number is reached....
.

Analysis of algorithms


The iterated logarithm is useful in analysis of algorithms
Analysis of algorithms

To analyze an algorithm is to determine the amount of resources necessary to execute it. Most algorithms are designed to work with inputs of arbitrary length....
 and computational complexity
Computational Complexity

Computational Complexity may refer to:*Computational complexity theory*Computational Complexity ...
, appearing in the time and space complexity bounds of some algorithms such as:
  • Finding the Delaunay triangulation
    Delaunay triangulation

    In mathematics, and computational geometry, a Delaunay triangulation for a set P of points in the plane is a triangulation DT such that no point in P is inside the Circumcircle#Circumcircles_of_triangles of any triangle in DT....
     of a set of points knowing the Euclidean minimum spanning tree
    Euclidean minimum spanning tree

    The Euclidean minimum spanning tree or EMST is a minimum spanning tree of a set of points in the plane , where the weight of the edge between each pair of points is the distance between those two points....
    : randomized O(n log*n) time, Olivier Devillers
  • Fürer's algorithm for integer multiplication: O(n log n 2lg* n)
  • Finding an approximate maximum (element at least as large as the median): lg* n − 4 to lg* n + 2 parallel operations
  • Richard Cole and Uzi Vishkin
    Uzi Vishkin

    Uzi Vishkin is a computer scientist at the University of Maryland, College Park, where he is Professor of Electrical and Computer Engineering at the University of Maryland Institute for Advanced Computer Studies ....
    's distributed algorithm for 3-coloring an n-cycle: O(log* n) synchronous communication rounds


The iterated logarithm is an extremely slowly-growing function, much more slowly than the logarithm itself; for all practical values of n (less or equal than 265536, which is far more than the number of particles in the universe), even the iterated logarithm to the base 2 is less or equal than 5.

x lg* x
(-8, 1] 0
(1, 2] 1
(2, 4] 2
(4, 16] 3
(16, 65536] 4
(65536, 265536] 5


Higher bases give smaller iterated logarithms. Indeed, the only function used in complexity theory that grows more slowly is the inverse of the Ackermann function
Ackermann function

In computability theory, the Ackermann function or Ackermann?P?ter function is a simple example of a computable function that is not Primitive recursive function....
.