10.12.2012 Views

Prime Numbers

Prime Numbers

Prime Numbers

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5.2 Monte Carlo methods 229<br />

That is, the probability that a random prime p is in one of these residue classes<br />

is 2 −k ,soifk is large, this should greatly reduce the possibilities and pinpoint<br />

p. But we know no fast way of finding the small solutions that simultaneously<br />

satisfy all the required congruences, since listing the 2 −k ϕ(M) solutions to<br />

find the small ones is a prohibitive calculation. Early computational efforts at<br />

solving this problem involved ingenious apparatus with bicycle chains, cards,<br />

and photoelectric cells. There are also modern special purpose computers that<br />

have been built to solve this kind of problem. For much more on this approach,<br />

see [Williams and Shallit 1993].<br />

5.2 Monte Carlo methods<br />

There are several interesting heuristic methods that use certain deterministic<br />

sequences that are analyzed as if they were random sequences. Though the<br />

sequences may have a random seed, they are not truly random; we nevertheless<br />

refer to them as Monte Carlo methods. The methods in this section are all<br />

principally due to J. Pollard.<br />

5.2.1 Pollard rho method for factoring<br />

In 1975, J. Pollard introduced a most novel factorization algorithm, [Pollard<br />

1975]. Consider a random function f from S to S, whereS = {0, 1,...,l− 1}.<br />

Let s ∈S be a random element, and consider the sequence<br />

s, f(s),f(f(s)),....<br />

Since f takes values in a finite set, it is clear that the sequence must eventually<br />

repeat a term, and then become cyclic. We might diagram this behavior with<br />

the letter ρ, indicating a precyclic part with the tail of the ρ, and the cyclic<br />

part with the oval of the ρ. How long do we expect the tail to be, and how<br />

long do we expect the cycle to be?<br />

It should be immediately clear that the birthday paradox from elementary<br />

probability theory is involved here, and we expect the length of the tail and<br />

the oval together to be of order √ l. But why is this of interest in factoring?<br />

Suppose p is a prime, and we let S = {0, 1,...,p− 1}. Let us specify a<br />

particular function f from S to S, namely f(x) =x 2 +1modp. Soifthis<br />

function is “random enough,” then we will expect that the sequence (f (i) (s)),<br />

i =0, 1,..., of iterates starting from a random s ∈S begins repeating before<br />

O( √ p) steps. That is, we expect there to be 0 ≤ j

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!