mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   FactorDB (https://www.mersenneforum.org/forumdisplay.php?f=94)
-   -   Yafu.pl and http url to get/send results (https://www.mersenneforum.org/showthread.php?t=19243)

Aillas 2014-04-02 21:51

Yafu.pl and http url to get/send results
 
Hi,

I have some questions on the yafu.pl script and also on the url to get/send the results back to factordb.

1 - Diff between Mersenne version of Yafu.pl and Yoyo/rechenkraft one.

[CODE]Yoyo: http://factorization.ath.cx/listtype.php?t=3&mindig=70&perpage=1&start=$rand&download=1
Mersenne: http://factorization.ath.cx/listtype.php?t=3&mindig=60[COLOR="Red"]&maxdig=80[/COLOR]&perpage=1&start=$rand&download=1[/CODE]

I've tested the maxdig parameter and it seems it's not taken into account. Bug or unsupported feature?

2 - Yafu.pl: Is it possible to send a batch of results in one request?

I've updated the script to retrieve a batch of factors in one request (perpage=20) but yafu.pl returns result after each factorization.
Does factordb can accept multiple results in one request?
If yes, how to update yafu.pl?

3 - What is the expiration time of retrieved exponents?

It doesn't seems to be a problem when I retrieve 20 factors from 60-80 range but if I increment the number of factors to retrieve of when the range will increase, I would not work on reassigned factors.

Thanks

ChristianB 2014-04-02 22:29

[QUOTE=Aillas;370194]Hi,

I have some questions on the yafu.pl script and also on the url to get/send the results back to factordb.

1 - Diff between Mersenne version of Yafu.pl and Yoyo/rechenkraft one.

[CODE]Yoyo: http://factorization.ath.cx/listtype.php?t=3&mindig=70&perpage=1&start=$rand&download=1
Mersenne: http://factorization.ath.cx/listtype.php?t=3&mindig=60[COLOR="Red"]&maxdig=80[/COLOR]&perpage=1&start=$rand&download=1[/CODE]

I've tested the maxdig parameter and it seems it's not taken into account. Bug or unsupported feature?[/QUOTE]
I would say unsupported feature.

[QUOTE=Aillas;370194]2 - Yafu.pl: Is it possible to send a batch of results in one request?

I've updated the script to retrieve a batch of factors in one request (perpage=20) but yafu.pl returns result after each factorization.
Does factordb can accept multiple results in one request?
If yes, how to update yafu.pl?[/QUOTE]
For normal operations its better to report the results immediately. Or else someone else is also working on the same number in the meantime.

[QUOTE=Aillas;370194]3 - What is the expiration time of retrieved exponents?

It doesn't seems to be a problem when I retrieve 20 factors from 60-80 range but if I increment the number of factors to retrieve of when the range will increase, I would not work on reassigned factors.

Thanks[/QUOTE]
The numbers you retrieve are not reserved and can be factored by someone else in the meantime. That's why the yafu.pl script has the random start value. This ensures that if several people run this script they still get different numbers.

Aillas 2014-04-03 07:54

So when getting higher range, it would be better to reduce the number of components to fetch to avoid duplicate effort, as factorization will be longer by component.

Thanks for the info.


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

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