Pollard's kangaroo algorithm

From testwiki
Revision as of 12:24, 15 January 2025 by imported>The Anome (linking)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Short description Template:Use dmy dates Template:Use list-defined references In computational number theory and computational algebra, Pollard's kangaroo algorithm (also Pollard's lambda algorithm, see Naming below) is an algorithm for solving the discrete logarithm problem. The algorithm was introduced in 1978 by the number theorist John M. Pollard, in the same paper as his better-known Pollard's rho algorithm for solving the same problem.[1][2] 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.

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, one seeks xZn such that αx=β. The lambda algorithm allows one to search for x in some interval [a,,b]Zn. One may search the entire range of possible logarithms by setting a=0 and b=n1.

1. Choose a set S of positive integers of mean roughly ba and define a pseudorandom map f:GS.

2. Choose an integer N and compute a sequence of group elements {x0,x1,,xN} according to:

  • x0=αb
  • xi+1=xiαf(xi) for i=0,1,,N1

3. Compute

d=i=0N1f(xi).

Observe that:

xN=x0αd=αb+d.

4. Begin computing a second sequence of group elements {y0,y1,} according to:

  • y0=β
  • yi+1=yiαf(yi) for i=0,1,,N1

and a corresponding sequence of integers {d0,d1,} according to:

dn=i=0n1f(yi).

Observe that:

yi=y0αdi=βαdi for i=0,1,,N1

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:
xN=yjαb+d=βαdjβ=αb+ddjxb+ddj(modn)
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.

Complexity

Pollard gives the time complexity of the algorithm as O(ba), using a probabilistic argument based on the assumption that f acts pseudorandomly. Since a,b can be represented using O(logb) bits, this is exponential in the problem size (though still a significant improvement over the trivial brute-force algorithm that takes time O(ba)). For an example of a subexponential time discrete logarithm algorithm, see the index calculus algorithm.

Naming

The algorithm is well known by two names.

The first 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[3] 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[4] 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".

The second 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 shorter stroke of the letter lambda corresponds to the sequence {xi}, since it starts from the position b to the right of x. Accordingly, the longer 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.

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

See also

References

Template:Reflist

Further reading

Template:Number-theoretic algorithms

  1. Cite error: Invalid <ref> tag; no text was provided for refs named Pollard_1978
  2. Cite error: Invalid <ref> tag; no text was provided for refs named Oorschot-Wiener_1999
  3. Cite error: Invalid <ref> tag; no text was provided for refs named Pollard_2000_1
  4. Cite error: Invalid <ref> tag; no text was provided for refs named Dawson_1977
  5. Cite error: Invalid <ref> tag; no text was provided for refs named Jmptidcott2
  6. Cite error: Invalid <ref> tag; no text was provided for refs named Pollard_2000_2