Re: Basically a sieve method, relation to quantum

From: Tim Peters (tim.one_at_comcast.net)
Date: 01/24/05

  • Next message: Bryan Olson: "Re: Singular they [was Re: [Lit.] Buffer overruns]"
    Date: Sun, 23 Jan 2005 23:49:58 -0500
    
    

    [jstevh@msn.com]
    >>> ....
    >>> To factor an RSA challenge number I'd need a full factorization of some
    >>> number off of it. Now T = M^2 - j^2, where M is the target number, and
    >>> j is a number you get to pick.

    [Tim Peters]
    >> That's where you often get off track, failing to engage your full
    >> abilities. What you want instead is a method that will factor M given a
    >> factorization of T = M+j, where j is a number you get to pick. For
    >> example, pick j=0, and then your algorithm will run in linear time.

    [David C. Ullrich]
    > Damm. I was going to suggest deriving a factorization of M from a
    > factorization of 2*M, but your idea is much simpler and more elegant.

    Indeed, and yours is just the special case of picking j=M (I know James
    realizes that, I'm just pointing it out for your benefit). What he may not
    have realized yet is that his method is just a special case of picking j =
    M^2 - j^2 - M.

    I wouldn't call it my idea, though -- it's almost certain I wouldn't have
    thought of it without JSH pushing in this direction. Since I'm too stupid
    to make it work anyway, James should get all the credit.

    Right now he's got this niggling detail where, to factor M in polynomial
    time, he at least has to assume that factoring integers with twice as many
    digits is cheap. Some posters are making a big deal out of that, as if it
    were a fundamental problem. Really! It would be easier to prove that M can
    be factored in polynomial time if he got to assume instead that factoring
    M+0 takes negligible time. Even the chowderheads on sci.math could
    understand that proof. Heck, even I can write a linear-time Python program
    for it:

    def factor(M):
        j = 0
        factors = factorize(M+j) # returns list of factors in negligible time
        print [hex(p) for p in factors]

    The only subtle part is using hex() to display the factors (Python's hex(n)
    takes time linear in the number of bits in n; converting to decimal instead
    would inject a quadratic-time component).

    > Oh well, not the first time something like this has happened - I guess
    > we math guys should leave the actual programming to the pros.

    Ya, you're way out of your depth here again. I am too. We should charge
    admission for visiting this end of the pool.


  • Next message: Bryan Olson: "Re: Singular they [was Re: [Lit.] Buffer overruns]"

    Relevant Pages

    • Re: What puzzles me, discovery ignored
      ... Does James actually have a general solution, ... factorization, but have solutions. ... Factorization, 2 variable diophantine equations, Pell ... The following two transform pairs on and ...
      (sci.math)
    • Re: What puzzles me, discovery ignored
      ... I got one from James, ... No. James' factorization method relates to forms like: ... Factorization, 2 variable diophantine equations, Pell ... The following two transform pairs on and ...
      (sci.math)
    • Re: What puzzles me, discovery ignored
      ... Does James actually have a general solution, ... I found a way to convert them to the Pell - like ... factorization, but have solutions. ... The following two transform pairs on and ...
      (sci.math)
    • Re: What puzzles me, discovery ignored
      ... Common Divisor function GCDworking - can't remember if GCD ... Does James actually have a general solution, ... factorization, but have solutions. ... transforms with any integer value of v, ...
      (sci.math)
    • Re: Basically a sieve method, relation to quantum
      ... > factorization of 2*M, but your idea is much simpler and more elegant. ... and yours is just the special case of picking j=M (I know James ... be factored in polynomial time if he got to assume instead that factoring ... even I can write a linear-time Python program ...
      (sci.math)