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
11 download
Aggiornato 17 giu 2022

Visualizza la licenza

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 Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release
1.0.0