Two versions of Pollard's rho factorization algorithm
Versione 1.0.0 (1,93 KB) da
Thomas
one version with Brent's style cycle detection, one without but using vectors and matrices
The algorithm finds only one factor. More factors can be found by dividing by the found one and recursively applying the function again. Works with symbolic and double.
Example:
x = sym("2");
y = nextprime(x^20);
z = nextprime(y+10000);
PollardsRho(y*z)
ans =
1058591
OR:
PollardsRho(1517)
ans =
37
Cita come
Thomas (2025). Two versions of Pollard's rho factorization algorithm (https://it.mathworks.com/matlabcentral/fileexchange/113465-two-versions-of-pollard-s-rho-factorization-algorithm), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2020a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxTag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0 |
