![]() |
![]() |
#1 |
May 2013
616 Posts |
![]()
Pollard's rho algorithm uses a generator function to generate a sequence of numbers xi.
We check for factors by calculating GCD(abs(xi-x2i),N). If the GCD = 1, we continue to the next i. If the GCD > 1, we have found a factor. If the GCD = N, we have found a cycle and then the algorithm terminates with failure, since this means x = y and therefore, by Floyd's cycle-finding algorithm, the sequence has cycled and continuing any further would only be repeating previous work. I think the typical Pollard Rho implementations can find a factor when GCD=N or when we have found a cycle. This is because of our choice of a generator function. Let xk be the first number in the cycle of length r. Thus xk==xk+r. If k!=1 (is this usually the case?), then we also have: xk-1 != xk+r-1. Now our typical generator is xi+1=x2i+c MOD N. This means we have: x2k-1+c==xk==xk+r==x2k+r-1+c MOD N. or x2k-1+c==x2k+r-1+c MOD N x2k-1 == x2k+r-1 MOD N This is a congruence of squares, and we already have xk-1!=xk+r-1 So (xk-xk+r-1)(xk+xk+r-1) = 0 mod N Both GCD(xk-xk+r-1,N) and GCD(xk+xk+r-1,N) are non-trivial factors of N. We have factored N. I have not seen this mentioned in my limited search on the Pollard Rho algorithm. Is this a new finding? Walter |
![]() |
![]() |
![]() |
#2 | |
"Bob Silverman"
Nov 2003
North of Boston
7,507 Posts |
![]() Quote:
Google is my friend. |
|
![]() |
![]() |
![]() |
#3 |
May 2013
2·3 Posts |
![]()
I have looked at the first 50 hits for "pollard rho" and "cycle".
None of the algorithms implement my method above. When the GCD==N, the algorithms either return failure or the number N. Both Maxima and YAFU implement the Pollard rho method using f(x)=x2+c. Neither of these implementations find the factors when GCD==N. In addition I have read about 20 papers that I have access to and still no mention of this finding. The reason that I have asked others is that this is not my area of expertise and I cannot say that I have found something new. I don't have access to all the papers, nor have I studied factoring algorithms in an academic environment. I do not have enough knowledge to answer my question. I assume that there are knowledgeable users on this forum who can point me to a previously published version of this finding if one exists. I do know that the condition GCD=N leads to backtracking in the more sophisticated algorithms, but this backtracking does not handle the case I mentioned above. I have also ran experiments and formed heuristic arguments that my finding will not improve the success rate of Pollard rho by any significant amount. So maybe others do know about this, and it is not worth mentioning. Walter |
![]() |
![]() |
![]() |
#4 | |
"Bob Silverman"
Nov 2003
North of Boston
750710 Posts |
![]() Quote:
(2) You write: "(xk-xk+r-1)(xk+xk+r-1) = 0 mod N Both GCD(xk-xk+r-1,N) and GCD(xk+xk+r-1,N) are non-trivial factors of N. We have factored N." There is no guarantee that these are non-trivial factors. One can easily have GCD(xk-xk+r-1,N) = 1 or N. |
|
![]() |
![]() |
![]() |
#5 |
Tribal Bullet
Oct 2004
32×5×79 Posts |
![]()
Can you comment on his specific question? Is the above a worthwhile tweak to Pollard Rho?
|
![]() |
![]() |
![]() |
#6 |
"Bob Silverman"
Nov 2003
North of Boston
11101010100112 Posts |
![]() |
![]() |
![]() |
![]() |
#7 |
May 2013
616 Posts |
![]()
Ah, I see the problem with this method.
As Silverman mentioned, xk-1+xk+r-1 == N is a possibility. Since xk-1 = N - xk+r-1 = a, you essentially have found a pair of numbers a and -a MOD N. It is then easy to see that a2+c == (-a)2+c. I know Pollard Rho is a weak algorithm. However, I think even this weak algorithms is worthy of study if I am going to understand how to factor numbers. Walter |
![]() |
![]() |
![]() |
#8 | |
Bamboozled!
"๐บ๐๐ท๐ท๐ญ"
May 2003
Down not across
19·613 Posts |
![]() Quote:
Many weak algorithms are worthy of study, partly because realizing why they are weak teaches you how to question and evaluate the strength of algorithms, partly because understanding the history of a subject enables you to learn how progress is made in the real world, and partly because it gives you guidance as to how and why other approaches are important. Last fiddled with by xilman on 2013-08-11 at 18:04 Reason: s/word/world/ |
|
![]() |
![]() |
![]() |
#9 | |
"Bob Silverman"
Nov 2003
North of Boston
1D5316 Posts |
![]() Quote:
Pollard and Elliptic Curve Methods of Factorization. Oh. I forgot. People in this forum have a disdain for reading. (as they have repeatedly stated) |
|
![]() |
![]() |
![]() |
#10 | |
"Curtis"
Feb 2005
Riverside, CA
127748 Posts |
![]() Quote:
All the same, thanks for showing him the hint he needed to connect the dots and see why his idea didn't help. It's too bad that useful wisdom has to be presented with all the "you idiot, why didn't you think of this already?" wrappers. |
|
![]() |
![]() |
![]() |
#11 | |||
"Bob Silverman"
Nov 2003
North of Boston
165238 Posts |
![]() Quote:
I suggest thay you consider the level of effort to achieve such a claim. Reading Peter Montgomery's papers alone would take months. Quote:
reading papers. Many in this forum have stated that they can't be bothered to read either books or papers. Yet they continue to (as evidenced by the recent math subfoum thread) state their "opinions". As I said before: The questions people ask here are like asking a baker if he/she has ever put his/her hands into a bag of flour. Let me try to make this clear. If you do not have a degree in math (or very strong mathematic maturity; i.e. are at the level of participation in the IMO) there is NOTHING YOU HAVE TO CONTRIBUTE. Trying to "improve algorithms" is a clear case of trying to run before you can walk. One needs to acquire the background number theory and group theory FIRST. Quote:
didn't you answer the specific question" AFTER I HAD ALREADY DONE SO. The answer would be crystal clear to anyone taking a first course in elementary number theory. Taking such a course is a PRE-REQUISITE for even attempting to suggest an "improvement" to an existing algorithm. Why do I say this? Because without the proper background, questions such as that asked by the OP are indeed like asking if a baker has ever used flour. It is sheer arrogance to presume that you might have something new and useful that has not already been considered. The message does not seem to get through. I'll say it again to the general audience: Any idea you might have about improving existing algorithms has already been thought about. BTW, I am not the only one who who has these kinds of ideas. Bruce Schneier has repeatedly stated similar ideas (on cryptography). His summary: "So you want to be a cryptographer? Get a PhD". I say "So you think you can improve existing algorithms? Get a PhD. (or equivalent study)" Last fiddled with by R.D. Silverman on 2013-08-11 at 19:20 Reason: typo |
|||
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pollard rho with known factor of P-1 | henryzz | Math | 2 | 2017-08-15 12:13 |
PFGW can't find a small factor. | Arkadiusz | Software | 7 | 2013-02-18 12:43 |
How much ECM does it take to find a given factor? | geoff | Factoring | 5 | 2004-09-29 20:14 |
Where I find the best program to it factor keys? I use AMD. | chrow | Factoring | 5 | 2004-02-19 10:15 |
How large a factor can P-1 testing find ? | dsouza123 | Software | 3 | 2003-12-11 00:48 |