mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2011-07-14, 05:52   #12
Sleepy
 
May 2011

23 Posts
Default

THANKS! I have understood the code! Didn't realize that x/log(x) was the approximation for PI(x). And yeah i have read the pdf file that you wrote. =D Anyway is 40.0 a value found through experimentation?
Sleepy is offline   Reply With Quote
Old 2011-07-14, 10:45   #13
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3,541 Posts
Default

I admit that I did not play with it all that much, and suspect the exact value used doesn't matter that much either. Primarily the 40 is used because other code used to start with a weight of 20 and increase the weight by a little at a time before going to the merge phase.
jasonp is offline   Reply With Quote
Old 2011-07-15, 08:56   #14
Sleepy
 
May 2011

23 Posts
Default

Okok! Thanks!
Sleepy is offline   Reply With Quote
Old 2011-07-20, 07:35   #15
Sleepy
 
May 2011

23 Posts
Default

Hmm, did you use any assumption for the merging steps?
Sleepy is offline   Reply With Quote
Old 2011-07-20, 11:15   #16
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3,541 Posts
Default

The entire merge phase relies on several assumptions :)

Merging really is sparse Gauss elimination, and choosing an order to merge the rows in the matrix so that the final result is as sparse as possible is (I think) an NP-hard problem. So there is a huge variety of heuristic methods that try to get a good result anyway. Msieve implements several of the simplest of these methods, since the more complex ones are rocket science (if you don't believe me, put your thinking cap on and read some modern papers on sparse direct solvers for linear systems :)

Perhaps the most critical assumption is that the running time of the linear algebra is minimized if the filtering builds a matrix that minimizes (size of matrix) * (number of nonzero matrix entries). Experiments show that for large problems this isn't true, the size of the matrix matters much more than its density, but it isn't clear how to modify that estimate, especially to account for parallel linear algebra.

Last fiddled with by jasonp on 2011-07-20 at 11:19
jasonp is offline   Reply With Quote
Old 2011-07-21, 09:03   #17
Sleepy
 
May 2011

23 Posts
Default

Ok thats true, i got it! Hmm is there a way that a "relation number" can get corrupted? Because sometimes when i run the merging step, it gives me a segmentation fault. I manged to find that the relation number got corrupted (became a rubbish value > than the number of relations), thus accessing an invalid location.
Sleepy is offline   Reply With Quote
Old 2011-07-21, 13:07   #18
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3,541 Posts
Default

The dataset is not corrupted intentionally :)

If a case where this happens is not too large, can you upload to rapidshare or similar for me to look at?
jasonp is offline   Reply With Quote
Old 2011-08-02, 03:30   #19
Sleepy
 
May 2011

101112 Posts
Default

Its ok! I solved the problem! Turns out that one of my relation is corrupted. It has 2 similar large ideal. =x Anyway, which square root algorithm is implemented in msieve? And do you have any reference that describes the algorithm because i would like to read up on that haha.
Sleepy is offline   Reply With Quote
Old 2011-08-02, 11:29   #20
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3,541 Posts
Default

A corrupted relation should not have caused a crash; big jobs often have dozens to hundreds of them.

The algorithm used in the square root was first described in one of the original papers on GNFS, as printed in this book, unfortunately I haven't seen the paper reprinted anywhere else. See also the description in Per Leslie Jensen's Master's thesis on PGNFS, and the comments at the top of gnfs/sqrt/sqrt_a.c
jasonp is offline   Reply With Quote
Old 2011-08-03, 16:58   #21
MsieveBug
 
Jul 2009

11002 Posts
Default

Quote:
Originally Posted by jasonp View Post
unfortunately I haven't seen the paper reprinted anywhere else.
Sleepy: try http://www.sendspace.com/file/zdnu5g

Last fiddled with by MsieveBug on 2011-08-03 at 17:00
MsieveBug is offline   Reply With Quote
Old 2011-08-04, 07:49   #22
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

113178 Posts
Default

Quote:
Originally Posted by MsieveBug View Post
What's djvu extension? :surprised

Luigi
ET_ is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS filtering in the era of big data jasonp Msieve 36 2018-05-07 19:55
NFS filtering error... Stargate38 YAFU 4 2016-04-20 16:53
The big filtering bug strikes again (I think) Dubslow Msieve 20 2016-02-05 14:00
Filtering Error richs Msieve 8 2015-01-18 17:40
Filtering R.D. Silverman Cunningham Tables 14 2010-08-05 08:30

All times are UTC. The time now is 01:00.


Sat Jul 17 01:00:10 UTC 2021 up 49 days, 22:47, 1 user, load averages: 1.65, 1.41, 1.36

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.