Prerequisites:
Pollard Rho Algorithm can give a unique solution in cases where order of the group, over which the DLP is defined, is a prime number. First, let us define our DLP over the Cyclic Group G
= having order n
.
You can refer to section 3.6.3 of chapter-3 from Handbook of Applied Cryptography to read in detail about Pollard Rho Algorithm
I implemented this algorithm in python here (with appropriate explanation): pollardrho.py