Overview
Pollard's rho iterates a simple polynomial modulo n and periodically computes gcd differences between two sequence positions. When the sequence collides modulo a hidden factor, the gcd can reveal a nontrivial divisor.
Finds a nontrivial factor by searching for cycles in a pseudorandom modular sequence.
Compact metadata for implementation and discovery.
Pollard's rho iterates a simple polynomial modulo n and periodically computes gcd differences between two sequence positions. When the sequence collides modulo a hidden factor, the gcd can reveal a nontrivial divisor.
Quick facts
Runtime and memory behavior at a glance.
Best
O(k)
Average
O(k^2)
Worst
O(k^3)
Space
O(k)
Show using cycle detection over modular pseudorandom walks on a small integer factorization example.
Pollard's rho is randomized in practice; restart policy is part of the algorithm's reliability.
What each reference supports for this entry.
Cryptographic reference for Pollard's Rho Factorization's number-theoretic primitive, modular arithmetic, primality, or factorization context.
Open sourceReference for Pollard's Rho Factorization's arithmetic operations, modular arithmetic, multiplication, division, or number-theoretic implementation details.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Primality testing usually checks whether a candidate factor still needs factoring.
Pollard's rho repeatedly uses gcd computations to expose factors.