How QS Optimizes Finding Congruences
The quadratic sieve attempts to find pairs of integers x and y(x) (where y(x) is a function of x) satisfying a much weaker condition than x2 ≡ y2 (mod n). It selects a set of primes called the factor base, and attempts to find x such that the least absolute remainder of y(x) = x2 mod n factorizes completely over the factor base. Such x values are said to be smooth with respect to the factor base.
The factorization of a value of y(x) that splits over the factor base, together with the value of x, is known as a relation. The quadratic sieve speeds up the process of finding relations by taking x close to the square root of n. This ensures that y(x) will be smaller, and thus have a greater chance of being smooth.
This implies that y is on the order of 2x. However, it also implies that y grows linearly with x times the square root of n.
Another way to increase the chance of smoothness is by simply increasing the size of the factor base. However, it is necessary to find at least one smooth relation more than the number of primes in the factor base, to ensure the existence of a linear dependency.
Read more about this topic: Quadratic Sieve
Famous quotes containing the word finding:
“Scarlett OHara: Oh, oh, Rhett. For the first time Im finding out what it is to be sorry for something Ive done.
Rhett Butler: Dry your eyes. If you had it all to do over again, youd do no differently. Youre like the thief who isnt the least bit sorry he stole, but hes terribly, terribly sorry hes going to jail.”
—Sidney Howard (18911939)