![]() |
|
|
#45 |
|
Jan 2011
3·5 Posts |
OK so the log method doesn't guarantee that all the numbers over a given
threshold factor completely. You test them individually to see if they do and either you discard the ones that don't or add the few new primes to the FB. But then how is this method better then just going thru all V[r1+kp_i] and as you do divide by the highest power prime. Just like the Wikipedia example does except it doesn't divide thru by the highest power ( just uses power =1 ) . If it did at the end, the 1 entries in the V would indicate the only numbers in V that could completely factored over FB. And you could set it to count up to FB + 1 relations and stop so it doesn't go thru the whole thing, just goes until it finds enough. Their are tons of different variations but they all seem to have the same runtime except considering the actual factoring algorithm used to factor the small V numbers. Basically I think the wikipedia way is just as good as the log way? Correct me if I am wrong. Last fiddled with by MathBoy on 2011-01-25 at 03:51 |
|
|
|
|
|
#46 |
|
Aug 2006
3·1,993 Posts |
|
|
|
|
|
|
#47 | |
|
"Ben"
Feb 2007
3,517 Posts |
Quote:
Of course, modern QS implementations don't bother checking for divisibility by 3 at all. The key to speed is sloppiness. We approximate using logs. We don't use the smallest primes at all when sieving. We ignore prime powers. We only look closely at results that are "good enough". The entire exercise is to be able to find (by way of approximate sieving techniques) those locations which are probably good enough very quickly - only spend effort doing laborious divisions on vector locations which are likely to completely factor over the factor base. Hope this helps. |
|
|
|
|
|
|
#48 |
|
Bamboozled!
"πΊππ·π·π"
May 2003
Down not across
22·5·72·11 Posts |
|
|
|
|
|
|
#49 |
|
(loop (#_fork))
Feb 2006
Cambridge, England
3·2,141 Posts |
Can you give me a good reference for resieving? Is there more to it than simply running the sieve pass again and accumulating the sieve primes that hit specially-marked locations into some other data structure?
|
|
|
|
|
|
#50 |
|
Nov 2003
164448 Posts |
|
|
|
|
|
|
#51 | |
|
"Ben"
Feb 2007
3,517 Posts |
Quote:
I'd also be interested in a re-sieving reference, if you know of one. I've googled it before and haven't turned up anything substantial. [edit] nevermind. saw RDS post. Last fiddled with by bsquared on 2011-01-25 at 23:00 |
|
|
|
|
|
|
#52 |
|
"Ben"
Feb 2007
3,517 Posts |
|
|
|
|
|
|
#53 | |
|
Nov 2003
22×5×373 Posts |
Quote:
exactly which primes will divide the norm. It isn't trial division. You only divide by primes that are known to divide. |
|
|
|
|
|
|
#54 |
|
"Ben"
Feb 2007
66758 Posts |
|
|
|
|
|
|
#55 |
|
Jan 2011
3×5 Posts |
I am still unclear how these logs are faster.
Since for example let V[] be the set that we are going to sieve using the log method. let N = the threshold log value for example lets use log(V[i]) > 5.7 using this we still have to go thru all the elements in V and for the elements > 5.7 they still have to be factored. So where is the time saver? The only time saver I can see is the method used in factoring the elements in V. Maybe I don't use trial but ECM or something different to speed this up... But I would still think this is a slow process. once we have these FB+1 relations and their factorization then the rest of the algorithm just relys on matrix solving and gcd algorithm. Which I believe the matrix can be solved in O(n^2.3ish) and gcd(b1,b2) is O(log(max{#b1,#b2})) . So the only difference, in creating a better algorithm like QS , NFS ,...etc variants is to improve the data collection part. For the most part the sieving piece. Find a factor bases really cann't be improved that much since it is almost trivial to find one O(n) using Legendre symbol "provided we already know the primes in the set". And finding the x in x^2 mod p is also pretty fast just find a quadratic nonresidue a (50% changes randomly picking) and compute (a + sqrt(a^2 - n^2 ) )^p+1/2 Side question these fastest/best known algorithms all use the same thought process look for relations x^2 = y^2 mod N. Would their be any benefit in looking not at the case power = 2 but also in the case where power >= 3? Or maybe varying the power as a way of adding another edge to the algorithm. Just in the way MPQS varies over many different polynomials. Last fiddled with by MathBoy on 2011-01-26 at 02:57 |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Semi-prime factorization conjecture | Alberico Lepore | Alberico Lepore | 7 | 2018-02-16 08:27 |
| Prime factorization for RSA210 | Kalestiel | Factoring | 6 | 2012-11-04 17:58 |
| Mersenne(prime exponents) factorization | science_man_88 | Miscellaneous Math | 3 | 2010-10-13 14:32 |
| Distributed Factoring and prime testing algorithms | bunbun | Software | 6 | 2006-03-27 17:14 |
| "Trivial" factorization algorithms | Fusion_power | Math | 13 | 2004-12-28 20:46 |