Comments (2)
This is typical for SIQS implementations. Once I had a version that was stable for numbers down to 12 or 10 bits. But any adjustment to gain more speed may change that.
The current single-threaded SIQS should be stable for N <= 55 bit or less. That is sufficient because there are better algorithms for N <= 55 bit. Using CombinedFactorAlgorithm.factor(...) will make use of better algorithms for small numbers.
PSIQS is another case. It may not be 100% stable for N<100 bit or so. The reason is that Java's synchronize{} blocks are not 100% atomic. I have not found a way yet to get around that problem. But again, it is not a big problem because the single-threaded SIQS is faster than PSIQS for "small" N. E.g. SIQS is faster than PSIQS(6 threads) for N<= 150 bit. Creating and starting (sieve) threads seems to be quite expensive.
from java-math-library.
Thanks to David Artizada to point out that the PSIQS issue I mentioned above was probably a true deadlock. Indeed it was, and that part of the previous comment nonsense. As it turned out, my synchronization approach was basically ok; but for small N, the sieve threads were so fast that they cued to take the aqPairBuffer lock. Hence they used up all a-parameters before the control thread managed to collect the relations and start the linear algebra step.
My solution was to move the relation check into the sieve threads. That's not the optimal starting position if PSIQS should ever be converted into a distributed program, but I think that would require so many changes of the parallelization scheme that it hardly matters.
All that remains in this issue is the point that both SIQS and PSIQS may not be capable to factor small numbers because there are not enough a-parameters. This is typical for SIQS implementations, though.
from java-math-library.
Related Issues (13)
- FactorAlgorithmBase#factor() don't add `BigInteger.ONE` HOT 3
- Use EllipticCurveMethod in CombinedFactorAlgorithm.factor() HOT 35
- FactorizerTest HOT 1
- [Idea] GPU HOT 6
- Importance of JVM parameters HOT 10
- UnSafe Sun package HOT 3
- Best choice of CMult and MMult parameters HOT 7
- SIQS 2 times faster below 230 bits HOT 2
- parallel-gauss-solver HOT 2
- Excess messages for big numbers HOT 2
- Mavenenize project HOT 5
- Increase the usage of compound assignment operators HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java-math-library.