mersenneforum.org  

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

Reply
 
Thread Tools
Old 2015-10-01, 14:39   #34
alpertron
 
alpertron's Avatar
 
Aug 2002
Buenos Aires, Argentina

2×683 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
You really need to learn how to discuss mathematics. You especially need to learn how to use quantifiers.
I discussed TYPICAL B2 values. I did not discuss anywhere whether these B2 values were OPTIMAL. (your apparent
interpretation of what I said.)

Learn to read. Learn how NOT to misquote others. Learn how NOT to put words in other peoples mouths. Learn how
[i]not[/b] to change their choice of quantifiers in your subsequent discussions.

Over a very wide range of factor sizes being sought , ECM behaves very much like an O(p^1/5) algorithm. Read the
"Practical Analysis" paper.

The choice of OPTIMAL B2 also depends on what optimization is being performed. If maximizing the probability of
success per unit time spent the analysis also assumes that one is going to perform a COMPLETE computation
for the parameter choices. Very few people perform a complete set of curves when looking for a p60 factor
among composites currently under consideration. OTOH, if one is going to spend a FIXED (or a priori bounded) amount
of time, the optimal B2 (and B1) will be different. If one performs a full (say) t60 search, finds nothing, then performs
a second t60 search it then means (post computation) that one has made sub-optimal B1, B2 choices.

Furthermore, the choice of OPTIMAL parameters very much depends not only on the underlying mathematical
theory but also upon practical matters: How much memory is there? What is its latency? How much L1, L2, L3
cache is available? If running on a multi-core processor, how many cores are running simultaneously? How much
cache contention is there? If running on multiple cores is there enough memory to allow the algorithm to
perform optimally? There certainly won't be enough cache.

My entire discussion throughout this thread has been to discuss typical choices. You have chosen to put
different words in my mouth. STOP.
Yes, I read several books and papers about ECM, and I also implemented the algorithm in Java (see http://www.alpertron.com.ar/ECM.HTM with Firefox or IE, not Chrome). The problem with Java is that you do not have control of what goes to the cache. For example, in my SIQS implementation in the same applet, I used smaller factor bases than expected in most papers, so it could fit on caches L1 and L2 for Core 2 processors.

The typical choices you mention are for current numbers being factored on Cunnigham Project. Here in this thread I was responding to LaurV who talked about running ECM on a Mersenne number with known p19 factor using extremely small values of B1 and B2 (with his selection, almost no step 2 was being done). So the running time for this will not be typical.
alpertron is offline   Reply With Quote
Old 2015-10-01, 14:56   #35
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

11101001001002 Posts
Default

Quote:
Originally Posted by alpertron View Post
The typical choices you mention are for current numbers being factored on Cunnigham Project.
Very few people are still trying ECM on Cunningham numbers. (Sam, Bruce, anyone else?)

Quote:
Here in this thread I was responding to LaurV who talked about running ECM on a Mersenne number with known p19 factor using extremely small values of B1 and B2 (with his selection, almost no step 2 was being done). So the running time for this will not be typical.
"almost no step 2 was being done" says a lot about the choice of B1........ (think about it!)

Furthermore, Richard Guy's strong law of small numbers applies here. The numbers involved are too small to expect
that any kind of 'optimal' selection process is correct simply because Dickman's function is not very accurate for
numbers this small.

If one measures 'typical' by how much work is currently being done (whether measured by CPU time or number of curves or other
measure), one will find by far that the typical use of ECM these days involves using it to split cofactors during NFS runs.
For this application the choice of B1, B2 will be TINY.
R.D. Silverman is offline   Reply With Quote
Old 2015-10-01, 15:03   #36
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

7×1,373 Posts
Default

Would you two stop, at least until I finish to read what you both wrote?
I am sorry I may have said some stupid thing that started all this discussion. We all recognize that you both know what you are talking about, now give us few moments to catch up.
LaurV is offline   Reply With Quote
Old 2015-10-01, 17:18   #37
aurashift
 
Jan 2015

11×23 Posts
Default

Quote:
Originally Posted by LaurV View Post
I am sorry I may have said some stupid thing that started all this discussion. We all recognize that you both know what you are talking about, now give us few moments to catch up.
+1
aurashift is offline   Reply With Quote
Reply



All times are UTC. The time now is 18:46.


Fri Jul 16 18:46:27 UTC 2021 up 49 days, 16:33, 1 user, load averages: 3.64, 4.85, 4.68

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.