Quadratic Sieve - How QS Optimizes Finding Congruences

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:

    What Romantic terminology called genius or talent or inspiration is nothing other than finding the right road empirically, following one’s nose, taking shortcuts.
    Italo Calvino (1923–1985)