Re: Surrogate factoring and the k/T ratio



On 24 Feb 2007 08:39:04 -0800, jstevh@xxxxxxxxx wrote:

For years I've done research on ways you might factor a target
composite T by factoring some other number I call the surrogate, and
after a lot of failed approaches I realized that the idea
mathematically reduced to a couple of very simple relations:

x^2 ? y^2 mod T

and

k^2 ? 2xk mod T

where the first should be familiar enough, while the second is an
addition needed mathematically by the concept of surrogate factoring.

So after a lot of years of fumbling around I found mathematically I
could reduce the idea quite simply to the given relations.

Now using those requires going to explicit equations:

x^2 = y^2 + aT

and

k^2 = 2xk + bT

and I can add one to the other, and complete the square to find:

(x+k)^2 = y^2 + 2k^2 + (a-b)T
As biggus pointed out, doing what you say gives

(x+k)^2 = y^2 + 4k^2 + (a+b)T
^ ^

Where the '4' and the '+' are different from your result.

I will use your equation for my tests, but there is still an open
question here.


So, if you have

4f_1f_2 = 2k^2 + (a-b)T

then y = f_1 - f_2 and

x = f_1 + f_2 - k

and now the idea is just slightly more complicated, and you can see
that actually trying to factor with it requires that you pick a-b and
k.

[snip]

Thinking about it, I realized that the k/T ratio was dropping, and
that when it was factoring very well the k/T ratio was about 0.2 or
20%. But I don't know if that is the prime value, as the research is
very rough at this point. But an optimal k/T ratio seems key.

The lower the ratio the better as the surrogate you factor is 2k^2 +
(a-b)T, so the smaller it is, the better, so I used a-b=-1, and a k
that was about 20% of T, and got great results.

So I will use (a-b) = -1 and k = floor(T/5). With these values the
surrogate to factor is 2k^2 - T. If a value of k fails to produce a
proper factor then I will increment k by 1 and try again.

As I have done previously, I tested James' method on 500 random
composite odd numbers that are multiples of two different primes, each
in the range 500 to 1000. The results are compared to Fermat's
method, trial factorisation and random picking.

Each "probe" is a GCD, trial division or equivalent. It is not a
count of the number of k's tried since each k results in many possible
factors of 2k^2 - T. I have indicated separately the mean number of
values of k tried.

Fermat average = 7.238 probes.
JSH average = 6464.48 probes.
Probe ratio = 1 : 893.13
Trial average = 119.35 probes.
Random average = 368.228 probes.
500 tries, 0 misfactors found.
Average k's tried per factorisation: 74.806

As seems usual with James' methods it will factorise the target
number, but more slowly than existing methods.

Previously Tim Peters suggested that multiplying the surrogate by
27,000 would result in a faster factorisation. Trying this
modification the figures are:

Fermat average = 7.65 probes.
JSH average = 1512.02 probes.
Probe ratio = 1 : 197.65
Trial average = 120.134 probes.
Random average = 359.302 probes.
500 tries, 0 misfactors found.
Average k's tried per factorisation: 12.712

These figures would indicate that rather than using

S = 2k^2 - T

for the surrogate (S) it would be better to use

S = 27,000 * 2k^2 - T

However the improvement is not sufficient to make James' method faster
than existing factorisation methods. Even with the suggested
improvement it is nearly 200 times slower than Fermat's method.

rossum

.



Relevant Pages

  • Re: Surrogate factoring and the k/T ratio
    ... addition needed mathematically by the concept of surrogate factoring. ... I tested James' method on 500 random ... composite odd numbers that are multiples of two different primes, ... trial factorisation and random picking. ...
    (sci.crypt)
  • Re: JSH: Surrogate factoring, periodic behavior
    ... are multiples of two different primes, each in the range 500 to 1000. ... The results are compared to Fermat's method, trial factorisation (both ... Surrogate combinations checked: ... Factored fuel percentage: 42% ...
    (sci.math)
  • Re: JSH: Contradictory behavior, issue of math fraud
    ... James usually has you /in addition/ putzing around with systematically ... factors of S and count all the probes used for that. ... Average n's tried per factorisation: ... method after method that /essentially/ feed pseudo-random integers into ...
    (sci.math)
  • Re: JSH: SF Algorithm
    ... which with my program has meant roughly 32 surrogates to factor. ... I tested James' latest version of his ... Average k's tried per factorisation: ... This version runs faster than both random picking and James' current ...
    (sci.math)
  • Re: JSH: SF Algorithm
    ... I tested James' latest version of his ... Reverse average = 11.72 probes. ... Average k's tried per factorisation: ...
    (sci.math)