mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > YAFU

Reply
 
Thread Tools
Old 2011-06-09, 10:12   #683
lorgix
 
lorgix's Avatar
 
Sep 2010
Scandinavia

3×5×41 Posts
Default

I have completed a "-psearch wide" on a c147.

#1. 9.293e-12
#2. 9.278
#3. 9.019
#4. 8.994
#5. 8.991
#6. 8.960
#7. 8.627
.
.
.
#17. 8.502

So if you want a comparison for a c147 you can do a "-psearch fast" on 43^137-1.
lorgix is offline   Reply With Quote
Old 2011-06-09, 13:21   #684
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

2×3×587 Posts
Default

Quote:
Originally Posted by lorgix View Post
I have completed a "-psearch wide" on a c147.

#1. 9.293e-12
#2. 9.278
#3. 9.019
#4. 8.994
#5. 8.991
#6. 8.960
#7. 8.627
.
.
.
#17. 8.502

So if you want a comparison for a c147 you can do a "-psearch fast" on 43^137-1.
Actually, its easier to just estimate. If the leading coefficient of the best poly found is less than 1/N of the maximum coefficient searched in your -wide job, then it would have also been found by -psearch fast. Do you still have your .p file? With that we can also find out exactly how good the best poly would have been with -fast.

In the c120 I tried, the best poly found had a small leading coefficient - and so was the same with -fast and -wide. With this small dataset at least, using -fast seems to be the way to go.

For jobs bigger than, say, c150, that may not be true. But at that level one might be better off running manually, test sieving, etc.
bsquared is offline   Reply With Quote
Old 2011-06-09, 14:16   #685
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

DC216 Posts
Default

Just posted another bugfix - this one is not as critical as the last.

A user noticed that occasionally mpqs would fail to find factors. This turned out to be caused by a bug in my integer sqrt code. Should be fixed now in version 1.26.3.
bsquared is offline   Reply With Quote
Old 2011-06-09, 14:40   #686
lorgix
 
lorgix's Avatar
 
Sep 2010
Scandinavia

3×5×41 Posts
Default

Quote:
Originally Posted by bsquared View Post
Actually, its easier to just estimate.
If that wasn't the case people wouldn't use estimates.

I just sent you the file so you can have a look.
lorgix is offline   Reply With Quote
Old 2011-06-09, 14:44   #687
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

2×3×587 Posts
Default

Quote:
Originally Posted by lorgix View Post
If that wasn't the case people wouldn't use estimates.

I just sent you the file so you can have a look.
True :)

How many threads did you run that on?
bsquared is offline   Reply With Quote
Old 2011-06-09, 14:49   #688
lorgix
 
lorgix's Avatar
 
Sep 2010
Scandinavia

3×5×41 Posts
Default

Quote:
Originally Posted by bsquared View Post
True :)

How many threads did you run that on?
.. I knew I forgot something.. 4 threads.

Don't know if it matters in this case but that's two physical cores with HT.

Might be interesting to look at the score-rank vs. leading coefficient.
lorgix is offline   Reply With Quote
Old 2011-06-09, 15:29   #689
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

2·3·587 Posts
Default

Ok, so assuming that -wide searched ~3x more coefficients (further assuming that hyperthreads don't give a linear speedup), a -fast search would have turned up the 9.019e-012 poly, but neither of the 9.2x polys.

I haven't tested, but in this case again I doubt "-psearch wide" gave a sufficiently better poly to offset the extra time spent looking for it.

attached is a graph of leading coefficient vs. score
Attached Thumbnails
Click image for larger version

Name:	graph.jpg
Views:	107
Size:	206.4 KB
ID:	6710  
bsquared is offline   Reply With Quote
Old 2011-06-09, 15:52   #690
lorgix
 
lorgix's Avatar
 
Sep 2010
Scandinavia

3·5·41 Posts
Default

For all I know the optimal time spent on poly search might be less than the regular.

Would be nice if we could find out though.

Nice plot! Looks largely random..

Maybe log-axis, remove everything <8e-12 etc. would make it more interesting.

p.s. Based on the plot; seems like a more thorough search over a smaller area would be a better use of the time.

Last fiddled with by lorgix on 2011-06-09 at 15:54
lorgix is offline   Reply With Quote
Old 2011-06-09, 18:28   #691
bchaffin
 
Sep 2010
Portland, OR

22×3×31 Posts
Default

On a related note, I've wondered recently if it's possible to predict what a "good" poly is for a given composite, and set some threshold. If you score a very lucky poly early on, maybe it would be best just to quit searching and use it. Maybe I'll dig through my old gnfs logs when I find some time... It seems like a good poly score is dependent only on the size of the composite, but is it more complicated than that?
bchaffin is offline   Reply With Quote
Old 2011-06-09, 20:03   #692
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

2×3×587 Posts
Default

Quote:
Originally Posted by bchaffin View Post
On a related note, I've wondered recently if it's possible to predict what a "good" poly is for a given composite, and set some threshold. If you score a very lucky poly early on, maybe it would be best just to quit searching and use it. Maybe I'll dig through my old gnfs logs when I find some time... It seems like a good poly score is dependent only on the size of the composite, but is it more complicated than that?
There may be second order complications that I don't know about, but its pretty clear that there is a solid relationship between poly score and size of composite. If we fit a curve to enough data points and picked something at +2sigma or so for a threshold that might be good enough. At least for smaller jobs. For larger jobs where the difference between a 2 sigma poly and a 5 sigma poly means days or weeks of sieving savings, then that's different.

It seems many people have their own private collections of NFS statistics. Does anyone have a function relating composite size with combined poly score handy along with an idea of size of variations about that "normal line"?
bsquared is offline   Reply With Quote
Old 2011-06-09, 20:05   #693
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

2·3·587 Posts
Default sigh

It's one of those days...

Just posted another (relatively minor) bug fix. Also related to mpqs occasionally not finding factors.

Now at version 1.26.4
bsquared is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running YAFU via Aliqueit doesn't find yafu.ini EdH YAFU 8 2018-03-14 17:22
YAFU-1.34 bsquared YAFU 119 2015-11-05 16:24
Yafu bug. storflyt32 YAFU 2 2015-06-29 05:19
yafu-1.33 bsquared YAFU 12 2012-11-08 04:12
yafu-1.32.1 bsquared YAFU 21 2012-09-04 19:44

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


Fri Aug 6 20:46:29 UTC 2021 up 14 days, 15:15, 1 user, load averages: 2.30, 2.44, 2.63

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.