10.12.2012 Views

Prime Numbers

Prime Numbers

Prime Numbers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

7.4 Elliptic curve method 339<br />

factorization attempt completely. When the B1 value is gradually increased<br />

in ECM, one then expects success when B1 finally reaches the critical range<br />

displayed above, and that the time spent unsuccessfully with smaller B1’s is<br />

negligible in comparison.<br />

So, in summary, the heuristic expected complexity of ECM to give a<br />

nontrivial factorization of n with least prime factor p is L(p) √ 2+o(1) arithmetic<br />

steps with integers the size of n, using the notation from (6.1). (Note that the<br />

error expression “o(1)” tends to 0 as p tends to infinity.) Thus, the larger the<br />

least prime factor of n, the more arithmetic steps are expected. The worst<br />

case occurs when n is the product of two roughly equal primes, in which case<br />

the expected number of steps can be expressed as L(n) 1+o(1) , which is exactly<br />

the same as the heuristic complexity of the quadratic sieve; see Section 6.1.1.<br />

However, due to the higher precision of a typical step in ECM, we generally<br />

prefer to use the QS method, or the NFS method, for worst-case numbers. If<br />

we are presented with a number n that is unknown to be in the worst case,<br />

it is usually recommended to try ECM first, and only after a fair amount of<br />

time is spent with this method should QS or NFS be initiated. But if the<br />

number n is so large that we know beforehand that QS or NFS would be out<br />

of the question, it leaves ECM as the only current option. Who knows, we<br />

may get lucky! Here, “luck” can play either of two roles: The number under<br />

consideration may indeed have a small enough prime factor to discover with<br />

ECM, or upon implementing ECM, we may hit upon a fortunate choice of<br />

parameters sooner than expected and find an impressive factor. In fact, one<br />

interesting feature of ECM is that the variance in the expected number of<br />

steps is large since we are counting on just one successful event to occur.<br />

It is interesting that the heuristic complexity estimate for the ECM may<br />

be made completely rigorous except for the one assumption we made that<br />

integers in the Hasse interval are just as likely to be smooth as typical integers<br />

in the larger interval (p/2, 3p/2); see [Lenstra 1987].<br />

In the discussion following we describe some optimizations of ECM. These<br />

improvements do not materially affect the complexity estimate. but they do<br />

help considerably in practice.<br />

7.4.2 Optimization of ECM<br />

As with the Pollard (p − 1) method (Section 5.4), on which the ECM is<br />

based, there is a natural, second stage continuation. In view of the remarks<br />

following Algorithm 7.4.2, assume that the order #Ea,b(Fp) isnotB1-smooth<br />

for whatever practical choice of B1 has been made, so that the basic algorithm<br />

can be expected to fail to find a factor. But we might just happen to have<br />

#E(Fp) =q <br />

p a i<br />

i ≤B1<br />

p ai<br />

i ,<br />

where q is a prime exceeding B1. When such a single outlying prime is part<br />

of the unknown factorization of the order, one need not have multiplied the

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

Saved successfully!

Ooh no, something went wrong!