Pollard's lambda algorithm

From Wikipedia, the free encyclopedia

In mathematics, specifically computational number theory and computational algebra, Pollard's lambda algorithm (aka Pollard's kangaroo algorithm, see Naming below) is an algorithm for solving the discrete logarithm. The algorithm was introduced in 1978 by the accomplished number theorist J. M. Pollard, in the same paper [1] as his better-known rho algorithm for solving the same problem. Although Pollard described the application of his algorithm to the discrete logarithm problem in the multiplicative group of units modulo a prime p, it is in fact a generic discrete logarithm algorithm—it will work in any finite cyclic group.

Contents

[edit] The algorithm

Suppose G is a finite cyclic group of order n which is generated by the element α, and we seek to find the discrete logarithm x of the element β to the base α. In other words, we seek x \in Z_n such that αx = β. The lambda algorithm allows us to search for x in some subset \{a,\ldots,b\} of Zn. We may search the entire range of possible logarithms by setting a = 0 and b = p − 1, although in this case Pollard's rho algorithm is more efficient. We proceed as follows:

1. Choose a set S of integers and define a pseudorandom map f: G \rightarrow S.

2. Choose an integer N and compute a sequence of group elements \{x_0,x_1,\ldots,x_N\} according to:

  • x0 = αb
  • x_{i+1} = x_i\alpha^{f(x_i)} for i=0,1,\ldots,N-1

3. Compute

d = \sum_{i=0}^{N-1}f(x_i).

Observe that:

xN = x0αd = αb + d.

4. Begin computing a second sequence of group elements \{y_0,y_1,\ldots\} according to:

  • y0 = β
  • y_{i+1} = y_i\alpha^{f(y_i)} for i=0,1,\ldots,N-1

and a corresponding sequence of integers \{d_0,d_1,\ldots\} according to:

d_n = \sum_{i=0}^{n-1}f(y_i).

Observe that:

y_i = y_0\alpha^{d_i} = \beta\alpha^{d_i} for i=0,1,\ldots,N-1

5. Stop computing terms of {yi} and {di} when either of the following conditions are met:

A) yj = xN for some j. If the sequences {xi} and {yj} "collide" in this manner, then we have:
x_N = y_j \Rightarrow \alpha^{b+d} = \beta\alpha^{d_j} \Rightarrow \beta = \alpha^{b+d-d_j} \Rightarrow x \equiv b+d-d_j \pmod{p}
and so we are done.
B) di > ba + d. If this occurs, then the algorithm has failed to find x. Subsequent attempts can be made by changing the choice of S and/or f.

[edit] Complexity

Pollard gives the time complexity of the algorithm as {\scriptstyle O(\sqrt{b-a})}, based on a probabilistic argument which follows from the assumption that f acts pseudorandomly. Note that when the size of the set {a, …, b} to be searched is measured in bits, as is normal in complexity theory, the set has size log(b − a), and so the algorithm's complexity is {\scriptstyle O(\sqrt{b-a}) = O(e^{\frac{1}{2}\log(b-a)})}, which is exponential in the problem size. For this reason, Pollard's lambda algorithm is considered an exponential time algorithm. For an example of a subexponential time discrete logarithm algorithm, see the index calculus algorithm.

[edit] Naming

The algorithm is well known by two names.

The first is "Pollard's lambda algorithm". Much like the name of another of Pollard's discrete logarithm algorithms, Pollard's rho algorithm, this name refers to the similarity between a visualisation of the algorithm and the Greek letter lambda (λ). The longer stroke of the letter lambda corresponds to the sequence {xi}. The shorter stroke corresponds to the sequence {yi}, which "collides with" the first sequence (just like the strokes of a lambda intersect) and then follows it subsequently.

The second is "Pollard's kangaroo algorithm". This name is a reference to an analogy used in the paper presenting the algorithm, where the algorithm is explained in terms of using a tame kangaroo to trap a wild kangaroo. Pollard has explained[2] that this analogy was inspired by a "fascinating " article published in the same issue of Scientific American as an exposition of the RSA public key cryptosystem. The article[3] described an experiment in which a kangaroo's "energetic cost of locomotion, measured in terms of oxygen consumption at various speeds, was determined by placing kangaroos on a treadmill".

Pollard has expressed a preference for the name "kangaroo algorithm"[citation needed], as this avoids confusion with some parallel versions of his rho algorithm, which have also been called "lambda algorithms".

[edit] See also

[edit] References

  1. ^ J. Pollard, Monte Carlo methods for index computation mod p, Mathematics of Computation, Volume 32, 1978
  2. ^ J. M. Pollard, Kangaroos, Monopoly and Discrete Logarithms, Journal of Cryptology, Volume 13, pp 437-447, 2000
  3. ^ T. J. Dawson, Kangaroos, Scientific American, August 1977, pp. 78-89