mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Math

Reply
 
Thread Tools
Old 2006-11-26, 04:50   #1
ixfd64
Bemusing Prompter
 
ixfd64's Avatar
 
"Danny"
Dec 2002
California

2·5·239 Posts
Default space complexity of common algorithms?

Does anyone know the space complexity of the following algorithms?
  • Lucas-Lehmer test
  • Pollard's rho
  • GNFS
  • SNFS
  • Quadratic sieve

Thanks.

I can only seem to find the time complexity for those equations, but not space.

I *think* that the space complexity of the quadratic sieve is very similar to that of its time complexity, but I could be wrong.

Last fiddled with by ixfd64 on 2006-11-26 at 05:02
ixfd64 is offline   Reply With Quote
Old 2006-11-26, 11:27   #2
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

10,753 Posts
Default

Quote:
Originally Posted by ixfd64 View Post
Does anyone know the space complexity of the following algorithms?
  • Lucas-Lehmer test
  • Pollard's rho
  • GNFS
  • SNFS
  • Quadratic sieve

Thanks.

I can only seem to find the time complexity for those equations, but not space.

I *think* that the space complexity of the quadratic sieve is very similar to that of its time complexity, but I could be wrong.
L-L and rho are linear A constant number of values, each of size linear in the number of bits in the integer being tested/factored, is used for each algorithm.

The other 3 each have space complexity the same as their time complexity --- L(1/2) for QS and L(1/3) for NFS.


Paul
xilman is offline   Reply With Quote
Old 2006-11-26, 17:34   #3
ixfd64
Bemusing Prompter
 
ixfd64's Avatar
 
"Danny"
Dec 2002
California

45268 Posts
Default

Thanks for the reply. I did expect similar values for the algorithms in question, but I wanted verification from someone with much more knowledge on this subject. :)

- Danny

edit: I added the information to Wikipedia (QS, GNFS, SNFS) and the GIMPS wiki (QS). If I added any inaccurate information, please let me know! :)

Last fiddled with by ixfd64 on 2006-11-26 at 18:12
ixfd64 is offline   Reply With Quote
Old 2006-11-27, 17:45   #4
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

1D2416 Posts
Default

Quote:
Originally Posted by xilman View Post
L-L and rho are linear A constant number of values, each of size linear in the number of bits in the integer being tested/factored, is used for each algorithm.

The other 3 each have space complexity the same as their time complexity --- L(1/2) for QS and L(1/3) for NFS.


Paul
Uh, no. The space requirements grow with the square root of the time for
the latter three algorithms.
R.D. Silverman is offline   Reply With Quote
Old 2006-11-27, 20:52   #5
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

10,753 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
Uh, no. The space requirements grow with the square root of the time for the latter three algorithms.
Oops!

I'm trying to work out why I should have made such a silly mistake, other than by postulating incipient Alzheimer's.

The best I can come up with is that the sieving and matrix phases each take equal time (asymptotically) and that for some bizarre reason I forgot that the best available matrix solving algorithms take time proportional to the square of the matrix dimensions (again, asymptotically).


Paul
xilman is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Found a factor during TF, common I know but what does it mean? sr13798 Information & Answers 7 2016-11-22 01:56
multiple (3+) Unverified LL -- how common? S34960zz PrimeNet 26 2011-07-11 18:37
Complexity of LLT T.Rex Math 9 2007-05-29 21:15
Curiosity: Some errors more common than others Unregistered Software 11 2006-05-09 16:00
time complexity of probabilistic factoring algorithms koders333 Factoring 1 2005-12-13 13:58

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


Sat Jul 17 01:42:49 UTC 2021 up 49 days, 23:30, 1 user, load averages: 1.25, 1.25, 1.24

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.