mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > YAFU

Reply
 
Thread Tools
Old 2011-06-09, 20:47   #694
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3·1,181 Posts
Default

Quote:
Originally Posted by bsquared View Post
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"?
I can't help with the latter, but currently the target minimum combined score for a poly to be reported is the result of exponential interpolation from the tables at the top of gnfs/poly/poly_skew.c in the Msieve source. The combined score is the last entry in each structure in the various lists.

The degree-5 numbers were cribbed from the pol51 readme within GGNFS, except that the cutoffs for C154-C155 were made a little more lenient. The speculation right now is that the targets for up to C140 were determined by experiment, and the targets for C140-155 were extrapolated, because empirically the larger cutoffs are somewhat more stringent than one would expect.

For degree 4 and 6, and the larger degree 5, the numbers were chosen strictly by experiment.

Of course that doesn't predict the maximum score we can reasonably expect.
jasonp is offline   Reply With Quote
Old 2011-06-11, 06:46   #695
Andi47
 
Andi47's Avatar
 
Oct 2004
Austria

2·17·73 Posts
Default

When I want to run nfs with yafu from the command line (i.e. not wihin yafu, but e.g. from aliqueit.exe), what do I have to type?

yafu -nfs -v -t <number of threads> <number to factorize> ?


edit: If I just type "yafu -v <number to factorize>": Is there a threshold where yafu decides whether to do qs or nfs?

Last fiddled with by Andi47 on 2011-06-11 at 06:52 Reason: additional question
Andi47 is offline   Reply With Quote
Old 2011-06-11, 07:12   #696
debrouxl
 
debrouxl's Avatar
 
Sep 2009

977 Posts
Default

Quote:
Is there a threshold where yafu decides whether to do qs or nfs?
Yes, there is. yafu's QS implementation is fast, so the threshold can be slightly higher than with other QS implementations. The most suitable threshold for your computer can be adjusted by running tune() in yafu.

But I don't know the answer to your first question.
debrouxl is offline   Reply With Quote
Old 2011-06-11, 13:46   #697
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

1101110000102 Posts
Default

Quote:
Originally Posted by Andi47 View Post
When I want to run nfs with yafu from the command line (i.e. not wihin yafu, but e.g. from aliqueit.exe), what do I have to type?

yafu -nfs -v -t <number of threads> <number to factorize> ?


edit: If I just type "yafu -v <number to factorize>": Is there a threshold where yafu decides whether to do qs or nfs?
To run nfs do:
yafu "nfs(number)" -v -threads <number of threads>

To run a general purpose factoring routine do:
yafu "factor(number)" -v -threads <number of threads>

which will then do some pretesting with rho, p+/-1, and ecm before proceeding to nfs or siqs. I think the default cutoff is 95 digits. As debrouxl said, if you run tune() first, a more optimal cutoff will be determined. Tune takes 15-30min or so.
bsquared is offline   Reply With Quote
Old 2011-06-11, 17:26   #698
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

26×151 Posts
Default

hi bsqared, I think you did not see yet my post from the parallel thread (some mod could put the threads together?). sorry for bothering, just want to make sure you won't miss that post.
LaurV is offline   Reply With Quote
Old 2011-06-13, 18:18   #699
BudgieJane
 
BudgieJane's Avatar
 
"Jane Sullivan"
Jan 2011
Beckenham, UK

22×5×13 Posts
Default

I'm using the latest version downloaded for Windows from sourceforge.

I'm trying to factor a small number of 24 digits and I get this:

factoring 699887612373030702964813
using pretesting plan: normal

div: primes less than 10000
fmt: 1000000 iterations
rho: x^2 + 1, starting 1000 iterations on C24
rho: x^2 + 1, starting 1000 iterations on C18
rho: x^2 + 3, starting 1000 iterations on C18
rho: x^2 + 2, starting 1000 iterations on C18
matrix exhausted

What am I doing wrong?

Quote:
Originally Posted by bsquared View Post
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
BudgieJane is offline   Reply With Quote
Old 2011-06-13, 19:16   #700
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

67028 Posts
Default

Quote:
Originally Posted by BudgieJane View Post
I'm using the latest version downloaded for Windows from sourceforge.

I'm trying to factor a small number of 24 digits and I get this:

factoring 699887612373030702964813
using pretesting plan: normal

div: primes less than 10000
fmt: 1000000 iterations
rho: x^2 + 1, starting 1000 iterations on C24
rho: x^2 + 1, starting 1000 iterations on C18
rho: x^2 + 3, starting 1000 iterations on C18
rho: x^2 + 2, starting 1000 iterations on C18
matrix exhausted

What am I doing wrong?
I can't see that you're doing anything wrong, but neither am I able to reproduce the problem; everything works fine for me with your number and with all of the provided executables.

Is it a repeatable failure for you? If so, open the file session.log and post the two random numbers displayed in that file for one of the failed attempts.

[edit]
I take that back. It failed when I tried the 64k version. The 32k version seems to work (yafu-32k-Win32 or yafu-32k-x64). I'll look into it.

Last fiddled with by bsquared on 2011-06-13 at 19:17
bsquared is offline   Reply With Quote
Old 2011-06-13, 21:38   #701
Brian Gladman
 
Brian Gladman's Avatar
 
May 2008
Worcester, United Kingdom

22·7·19 Posts
Default

Both x64 versions of yafu from SVN work fine for me.
Brian Gladman is offline   Reply With Quote
Old 2011-06-13, 21:41   #702
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

2·3·587 Posts
Default

Quote:
Originally Posted by Brian Gladman View Post
Both x64 versions of yafu from SVN work fine for me.
Yes, it seems to be a problem with only the 64k-Win32 version. I don't have a fix for the root cause (which seems to rarely involve a prime being flagged as dividing a sieve location when it really doesn't), but I've added an additional assertion which simply throws these invalid cases away.

Try out version 1.26.5 now on sourceforge.

-----
Factoring tiny numbers seems to be harder than big ones lately!

Last fiddled with by bsquared on 2011-06-13 at 21:50
bsquared is offline   Reply With Quote
Old 2011-06-13, 21:50   #703
Brian Gladman
 
Brian Gladman's Avatar
 
May 2008
Worcester, United Kingdom

22×7×19 Posts
Default

Ah, I thought it was an x64 issue. I have just done a minor fix of the Windows build but its not related to this issue (it corrects a false rebuild caused by a reference to a missing, no longer needed file). I have just tested all four versions (32k/64k win32/x64) from the SVN and all work fine for me.

Last fiddled with by Brian Gladman on 2011-06-13 at 21:55 Reason: more information
Brian Gladman is offline   Reply With Quote
Old 2011-06-13, 21:57   #704
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

2·3·587 Posts
Default

Quote:
Originally Posted by Brian Gladman View Post
Ah, I thought it was an x64 issue. I have just done a minor fix of the Windows build but its not related to this issue (it corrects a false rebuild caused by a reference to a missing, no longer needed file). I have just tested all four versions (32k/64k win32/x64) from the SVN and all work fine for me.
Great, thanks!
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 22:19.


Fri Aug 6 22:19:58 UTC 2021 up 14 days, 16:48, 1 user, load averages: 3.58, 3.53, 3.23

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.