![]() |
|
|
#1 |
|
Tribal Bullet
Oct 2004
354110 Posts |
Several of you have huge datasets lying around, for which the filtering in Msieve produces unusable matrices or even flat out crashes.
Thanks to an observation of RichD, can anyone with such a large dataset (more that about 750M relations) change the following structure at line 133 of include/common.h Code:
typedef struct {
uint32 blob_words;
uint32 hash_words;
uint32 *hashtable;
uint32 log2_hashtable_size;
uint32 num_used;
uint32 congestion_target;
uint32 *match_array;
uint32 match_array_size;
uint32 match_array_alloc;
} hashtable_t;
Code:
typedef struct {
uint32 blob_words;
uint32 hash_words;
uint32 *hashtable;
uint32 log2_hashtable_size;
size_t num_used;
size_t congestion_target;
uint32 *match_array;
size_t match_array_size;
size_t match_array_alloc;
} hashtable_t;
|
|
|
|
|
|
#2 |
|
Tribal Bullet
Oct 2004
3,541 Posts |
Actually, upon further review it is unlikely the above will fix anything; what I thought was an arrays size is actually a count of array elements, which has a harder time exceeding 2^32.
|
|
|
|
|
|
#3 |
|
Tribal Bullet
Oct 2004
3,541 Posts |
Thanks to chris2be8, I've committed SVN 966 to detect an edge case deep in the finite field rootfinder; without that fix, certain SNFS polynomials would generate invalid free relations that could conceivably cause crashes during singleton removal. This might be a fix for the large dataset bug.
For my edification, is it really true that there are *no* primes p such that x^6+x^5+x^4+x^3+x^2+x+1=0 mod p has 6 linear roots? The fix would imply this is the case, which further implies there are SNFS problems that cannot generate any free relations, which I thought was impossible. |
|
|
|
|
|
#4 |
|
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
16F816 Posts |
I suppose someone needs to remove all the free relations from a crashing job and run the filtering again.
|
|
|
|
|
|
#5 | |
|
(loop (#_fork))
Feb 2006
Cambridge, England
72×131 Posts |
Quote:
The polynomial is (x^7-1)/(x-1); if p is not equal to 1 mod 7, then it will have no roots (because a root would be an element of the group of order 7, and 7 does not divide the order of the group!) Last fiddled with by fivemack on 2014-06-22 at 17:00 |
|
|
|
|
|
|
#6 | |
|
Nov 2003
22×5×373 Posts |
Quote:
root of unity)........ Further hint: consider primes that are 1 mod 7....... |
|
|
|
|
|
|
#7 |
|
Nov 2003
746010 Posts |
|
|
|
|
|
|
#8 |
|
Tribal Bullet
Oct 2004
3,541 Posts |
This failing example has 107 digits; all the primes in the factor base are 1 mod 7. If f(x) = x^6+x^5+x^4+x^3+x^2+x+1, the finite field rootfinder first computes gcd(f(x), x^(p-1)-1) to determine the product of all the linear polynomial roots of f(x) = 0 mod p. However, the second term in the above is always 0, so this test concludes that no p is a root of f(x) = 0 mod p. Without the fix mentioned previously, the gcd would also crash.
That obviously isn't right, since the p chosen for free relations always shadow a p that appers in ordinary relations. So does the rootfinder need a special case to work correctly for polynomials like this f(x)? Last fiddled with by jasonp on 2014-06-23 at 03:12 |
|
|
|
|
|
#9 | |
|
Nov 2003
11101001001002 Posts |
Quote:
I can't speak for the first case, since I do not know what the code does, but the answer for the second case is no. My code has no special cases. |
|
|
|
|
|
|
#10 | |
|
Aug 2006
10111010110112 Posts |
Quote:
The factorization I see is (x + 4)(x + 5)(x + 6)(x + 9)(x + 13)(x + 22) = (x - 7)(x - 16)(x - 20)(x - 23)(x - 24)(x - 25) mod 29. Last fiddled with by CRGreathouse on 2014-06-23 at 13:53 |
|
|
|
|
|
|
#11 |
|
Tribal Bullet
Oct 2004
3,541 Posts |
The rootfinder in the Msieve code, starting on line 703 of here.
Consider p=113. Both wolfram alpha and the code above compute that gcd(f(x), x^112-1) is 1 because the second term in the GCD is zero. But this is supposed to be a polynomial that is a product of all the linear roots of f(x)=0 mod 113. Yet f(x) = 0 mod 113 has roots 16, 28, 30, 49, 106 and 109. |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 48-bit large primes! | jasonp | Msieve | 24 | 2010-06-01 19:14 |
| a^n mod m (with large n) | Romulas | Math | 3 | 2010-05-08 20:11 |
| NFS with 5 and 6 large primes | jasonp | Factoring | 4 | 2007-12-04 18:32 |
| Why only three large primes | fivemack | Factoring | 18 | 2007-05-10 12:14 |
| very large exponents | pacionet | Data | 4 | 2005-11-04 20:10 |