Two versions of Pollard's rho factorization algorithm

Version 1.0.0 (1,93 ko) par Thomas
one version with Brent's style cycle detection, one without but using vectors and matrices
6 téléchargements
Mise à jour 17 juin 2022

Afficher la licence

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

Citation pour cette source

Thomas (2024). Two versions of Pollard's rho factorization algorithm (https://www.mathworks.com/matlabcentral/fileexchange/113465-two-versions-of-pollard-s-rho-factorization-algorithm), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2020a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.0