Navigation
  • Home
  • Recent
  • Most Active
  • Popular
  • Blog
  • Credits
  • RSS
  •   Interaction
  • Register
  • Statistics
  •   Help
  • Suggestions
  • Contact Us
  • How to Edit
  • Help



  • [Edit]


    In number theory, Dixon's factorization method (also Dixon's algorithm) is a general-purpose integer factorization algorithm. The quadratic sieve is a modification of the basic idea used in Dixon's method.

        Dixon's factorization method
            Basic idea
            Method
            Optimizations

    top

    Basic idea
    Dixon's method is based on finding a congruence of squares. Fermat's factorization algorithm finds such a congruence by selecting random or pseudo-random x values and hoping one satisfies the congruence:

    x^2equiv y^2quad(hboxn),qquad x

    otequivpm y.

    where n is the integer to be factorized. In practice, selecting random x values will take an impractically long time to find a congruence of squares. Dixon's method is based on satisfying a much weaker condition many times, and the results of these values can be combined into a congruence of squares.

    top

    Method
    Firstly, a set of primes less than some bound B is chosen. This set of primes is called the factor base. Then, using the polynomial

    p(x)=x^2pmod


    many values of x are tested to see if p(x) factors completely over the factor base. If it does, the pair (x,p(x)) is stored. Such a pair is called a relation. Then, once the number of relations collected exceeds the size of the factor base, we can enter the next stage.

    The p(x) values are factorized (this is easy since we are certain they factorize completely over the factor base) and the exponents of the prime factors are converted into an exponent vector mod 2. For example, if the factor base is and the p(x) value is 30870, we have:

    30870=2^1cdot3^2cdot 5^1cdot 7^3


    This gives an exponent vector of:

    mathbf_i=egin1 \ 2 \ 1 \ 3end=egin1 \ 0 \ 1 \ 1endhbox


    If we can find some way to add these exponent vectors together (equivalent to multiplying the corresponding relations together) to produce the zero vector (mod 2), then we can get a congruence of squares. Thus we can put the exponent vectors together into a matrix, and formulate an equation:

    c_1mathbf_1+c_2mathbf_2+cdots+c_nmathbf_n=mathbfhbox


    This can be converted into a matrix equation:

    egin

    v_ & v_ & cdots & v_\
    v_ & v_ & cdots & v_\
    vdots & vdots & ddots & vdots\
    v_ & v_ & cdots & v_
    endeginc_1 \ c_2 \ vdots \ c_nend=egin0\0\ vdots\0endhbox

    This matrix equation is then solved (using, for example, Gaussian elimination) to find the vector c. Then:

    prod_x_k^2equivprod_p(x_k)pmod


    where the products are taken over all k for which ck = 1. At least one of the ck must be one. Because of the way we have solved for c, the right-hand side of the above congruence is a square. We then have a congruence of squares.

    top

    Optimizations
    The quadratic sieve is an optimization of Dixon's method. It solves a quadratic congruence to find suitable x values much faster than simply by random selection.

    Other ways to optimize Dixon's method include using a better algorithm to solve the matrix equation. In practice, the Lanczos algorithm is often used. Also, the size of the factor base must be chosen carefully. If it is too small, it will be difficult to find numbers that factorize completely over it. If it is too large, more relations will have to be collected.



     
    Search more:
     

       
    Source Privacy License Download Contact Us Atlas
    Scientus.org Dictionary (Yet Another Wiki) RC : 1.39
    This article is licensed under the GNU Free Documentation License [copyleft]. It uses material from the Wikipedia article "Dixon's factorization method". link