General Number Field Sieve

General Number Field Sieve

In number theory, the general number field sieve (GNFS) is the most efficient classical algorithm known for factoring integers larger than 100 digits. Heuristically, its complexity for factoring an integer n (consisting of bits) is of the form

(in L-notation), where ln is the logarithm in base e. It is a generalization of the special number field sieve: while the latter can only factor numbers of a certain special form, the general number field sieve can factor any number apart from prime powers (which are trivial to factor by taking roots). When the term number field sieve (NFS) is used without qualification, it refers to the general number field sieve.

The principle of the number field sieve (both special and general) can be understood as an improvement to the simpler rational sieve or quadratic sieve. When using such algorithms to factor a large number n, it is necessary to search for smooth numbers (i.e. numbers with small prime factors) of order n1/2. The size of these values is exponential in the size of n (see below). The general number field sieve, on the other hand, manages to search for smooth numbers that are subexponential in the size of n. Since these numbers are smaller, they are more likely to be smooth than the numbers inspected in previous algorithms. This is the key to the efficiency of the number field sieve. In order to achieve this speed-up, the number field sieve has to perform computations and factorizations in number fields. This results in many rather complicated aspects of the algorithm, as compared to the simpler rational sieve.

Note that log2 n is the number of bits in the binary representation of n, that is the size of the input to the algorithm, so any element of the order nc for a constant c is exponential in log n. The running time of the number field sieve is super-polynomial but sub-exponential in the size of the input.

Read more about General Number Field Sieve:  Number Fields, Method, Improving Polynomial Choice, Implementations

Famous quotes containing the words general, number, field and/or sieve:

    General education is the best preventive of the evils now most dreaded. In the civilized countries of the world, the question is how to distribute most generally and equally the property of the world. As a rule, where education is most general the distribution of property is most general.... As knowledge spreads, wealth spreads. To diffuse knowledge is to diffuse wealth. To give all an equal chance to acquire knowledge is the best and surest way to give all an equal chance to acquire property.
    Rutherford Birchard Hayes (1822–1893)

    Love has its name borrowed by a great number of dealings and affairs that are attributed to it—in which it has no greater part than the Doge in what is done at Venice.
    François, Duc De La Rochefoucauld (1613–1680)

    Beat! beat! drums!—blow! bugles! blow!
    Through the windows—through doors—burst like a ruthless force,
    Into the solemn church, and scatter the congregation;
    Into the school where the scholar is studying;
    Leave not the bridegroom quiet—no happiness must he have now with his bride;
    Nor the peaceful farmer any peace, plough his field or gathering his
    grain;
    So fierce you whirr and pound, you drums—so shrill you bugles blow.
    Walt Whitman (1819–1892)

    It’s like pushing marbles through a sieve. It means the sieve will never be the same again.
    —Before the 1972 Democratic Convention in Miami. As quoted in Crazy Salad, ch. 6, by Nora Ephron (1972)