mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Math

Closed Thread
 
Thread Tools
Old 2015-12-09, 17:50   #12
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

22×5×373 Posts
Default

Note further that if what you want to ask for is:

"reduce the time without reducing the probability of success"

this is IMPOSSIBLE.

Last fiddled with by ewmayer on 2015-12-10 at 04:56 Reason: No need to requote your previous post in its entirety, Bob - once was more than enough.
R.D. Silverman is offline  
Old 2015-12-09, 22:55   #13
bgbeuning
 
Dec 2014

111111112 Posts
Default

Quote:
Originally Posted by chris2be8 View Post
He probably meant "scrape primenet". If so that's a question for George to answer (it probably depends how much load it'll put on the server).

Chris
I scraped the Mersenne factors from the web site (with George's permission) in August 2015.
The file is 53 MB (compressed 22 MB) for p to 42,549,973 .
Let me know how I can send it to you.
bgbeuning is offline  
Old 2015-12-10, 00:02   #14
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

61278 Posts
Default

I "scraped" primenet for all factors back on Sep 3rd 2014: http://www.mersenneforum.org/showthread.php?t=19662 (the link in that thread is not valid now)

I got 35,504,331 factors from 28,300,589 different exponent between p=11 and p=999,999,893.

gimpsfactors.zip (291 Mb)
This is actually a 7-zip file, but the site does not permit .7z files, so rename it back to .7z and use 7-zip to exact the 902 Mb .txt file.
You should use something like Textpad or Notepad++ to open that large file.
ATH is offline  
Old 2015-12-10, 04:50   #15
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

103·113 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
Note further that if what you want to ask for is:

"reduce the time without reducing the probability of success"

this is IMPOSSIBLE.
Pardon me if I missed some key portion of your as-usual-overlong multipostal flaming-of-newbie-into-submission, but isn't that pretty much the definition of probabilistic-algorithm optimization? I can think of many ways to fiddle the parameters of p-1 (or ecm) in a way which increases the runtime without improving the overall odds of success - I expect the above was referring to the converse. Given the usual way (described by fivemack) in post #4 of processing the small prime powers in p-1, further improvement here is unlikely to be had, but in a general sense the OP's remark was not off base.

To the OP and anyone late to this thread: fivemack's brief note in post #4 tells you pretty much all you need to know about optimizing the aspect of p-1 the OP is asking about. Further posts which contribute no meaningful S to S/N will be disappeared with extreme prejudice.

Last fiddled with by ewmayer on 2015-12-10 at 04:53
ewmayer is offline  
Old 2015-12-10, 12:09   #16
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

22·5·373 Posts
Default

Quote:
Originally Posted by ewmayer View Post
Pardon me if I missed some key portion of your as-usual-overlong multipostal flaming-of-newbie-into-submission,
You must have been reading a different thread from the rest of us.
Nothing, repeat nothing that I said could even remotely be considered a flame.
The entire discussion was either about the technical issues, or requests for
clarification and questions about the meaning of what the OP said.

Quote:
but isn't that pretty much the definition of probabilistic-algorithm optimization? I can think of many ways to fiddle the parameters of p-1 (or ecm) in a way which increases the runtime without improving the overall odds of success - I expect the above was referring to the converse.
As was I. But this is NOT the "definition of probabilistic-algorithm optimization". One needs to specify an
objective other than just "reduce the run time". One must specify how much cost (i.e. reduction in probability)
one is willing to tolerate in return for a given reduction in run time. Nowhere in this thread do I see such
a specification. One can also turn it into a constrained optimization: reduce run time by as much as possible
with a lower bound given on the probability. The title of the thread did ask about an OPTIMIZATION.

Are you willing to accept a 90% drop in probability for (say) a 2-fold improvement in run time?
No? What about a 75% drop? etc. The relationship is very non-linear.

One can also express this problem in terms of an economic UTILITY function, but I did not want to
go down that path. It is just a different formulation of the same problem.

Quote:

Given the usual way (described by fivemack) in post #4 of processing the small prime powers in p-1, further improvement here is unlikely to be had, but in a general sense the OP's remark was not off base.
Improvement? Improvement in what? You have again failed to specify an objective function.
Do you mean improvement in run-time? What fivemack gave CAN be improved in terms of run time.


Quote:
To the OP and anyone late to this thread: fivemack's brief note in post #4 tells you pretty much all you need to know about optimizing the aspect of p-1 the OP is asking about. .
This claim is not correct.
R.D. Silverman is offline  
Old 2015-12-10, 21:28   #17
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

2·5·7·139 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
This claim is not correct.
Why?
chalsall is online now  
Old 2015-12-10, 22:29   #18
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

746010 Posts
Default

Quote:
Originally Posted by chalsall View Post
Why?
It shows one method/choice of parameters for implementing the method,
but performs no optimization.

If you believe otherwise, please state what optimization is being performed.
What is the objective function being minimized or maximized. What are the
constraints?
R.D. Silverman is offline  
Old 2015-12-10, 23:01   #19
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

2·5·7·139 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
It shows one method/choice of parameters for implementing the method,
but performs no optimization.

If you believe otherwise, please state what optimization is being performed.
What is the objective function being minimized or maximized. What are the
constraints?
I would like to ask you another question...

What would you advise works better?
chalsall is online now  
Old 2015-12-10, 23:16   #20
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

22×5×373 Posts
Default

Quote:
Originally Posted by chalsall View Post
I would like to ask you another question...

What would you advise works better?
What does it mean (in your view) for one method to work better than another?
One can choose parameters to give a higher probability of success. But it will run slower....
Is this better? The probability will not increase linearly with the run time.

This is the heart of the whole discussion. Specify an objective function (or other metric)
that let's us decide what "works better" means.
R.D. Silverman is offline  
Old 2015-12-11, 00:08   #21
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

2×5×7×139 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
What does it mean (in your view) for one method to work better than another?
Thank you for this.

In my view, results are better than insults. But sometimes, insults are useful as motivation.

Believe it or not, I appreciate your methodology.

Many others are scared away....
chalsall is online now  
Old 2015-12-11, 01:28   #22
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

265678 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
What does it mean (in your view) for one method to work better than another?
One can choose parameters to give a higher probability of success. But it will run slower....
Is this better? The probability will not increase linearly with the run time.

This is the heart of the whole discussion. Specify an objective function (or other metric)
that let's us decide what "works better" means.
Most common objective function is 'for a given compute effort, maximize our odds of success.' Effort can be measured in various ways, either raw CPU-cycles, wall-clock time or - for the enviro-conscious crowd - watt-hours, but once those considerations have been turned into compute hardware, it all boils down to the same thing, getting maximum utitlity ('successes') out of same. For GIMPS p-1 work, our success metric is 'given a large set of moduli M(p) and a given compute effort, maximize the % of M(p) for which p-1 finds a factor.' That of course needs to be balanced against the other work types (TF, LL, also ECM for smaller moduli), but within the p-1 effort we want to simply want to maximize our odds of finding a factor for a given compute effort.

For p-1 stage 1 the compute effort is linear in the bitlength of the stage 1 small-primes product, thus we want our product of primes <= B1 to maximize the odds of capturing the primes <= B1 in one or more of the factors of the modulus in question. As you point out in post #2 (for N of no special form), "The probability that an integer N is divisible by p^k, is very nearly 1/p^k", thus the kind of small-prime-powers scheme Tom Womack laid out in #4 is optimal, or as close as we are likely to get given the granularity of the powers involved. If you have a nontrivially-better scheme for constructing a stage 1 primes product, by all means shout it from the rooftops! Do you?

For moduli with factors of special form like our beloved M(p) we may need to make slight modifications to the above schema - M(p) have factors of form 2.k.p+1, so p-1 guaranteed to be divisible by the prime exponent, thus we make sure to 'salt' the stage 1 primes product with p if our overall stage 1 bound B1 is less than p.

But you know all this already, thus I assert you are simply being a trollish, argumentative twit because such is your nature, as demonstrated in-depth in literally hundreds of threads on this forum. You appear to be the only one who thinks your behavior in this (and similar) threads is perfectly reasonable. Luckily you are not the arbiter of what constitues acceptable standards of discourse here.
ewmayer is offline  
Closed Thread



Similar Threads
Thread Thread Starter Forum Replies Last Post
Probabilistic primality tests faster than Miller Rabin? mathPuzzles Math 14 2017-03-27 04:00
probabilistic number theory wildrabbitt Math 57 2015-09-17 18:26
Elementary Literature on probabilistic aspects of prime searching hhh Math 7 2014-03-18 14:37
time complexity of probabilistic factoring algorithms koders333 Factoring 1 2005-12-13 13:58
ASM Optimization Cyclamen Persicum Hardware 4 2004-05-26 07:51

All times are UTC. The time now is 18:46.


Fri Jul 16 18:46:44 UTC 2021 up 49 days, 16:34, 1 user, load averages: 3.30, 4.71, 4.64

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.