Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Maths Algorithm - Pollard’s Rho Algorithm #2808

Open
akashverma55 opened this issue Oct 10, 2024 · 2 comments
Open

New Maths Algorithm - Pollard’s Rho Algorithm #2808

akashverma55 opened this issue Oct 10, 2024 · 2 comments
Labels
enhancement New feature or request stale Author has not responded to the comments for over 2 weeks

Comments

@akashverma55
Copy link

akashverma55 commented Oct 10, 2024

Detailed description

Pollard’s Rho Algorithm is an efficient method for integer factorization, particularly effective for finding small non-trivial factors of large composite numbers. Developed by John Pollard in 1975, the algorithm utilizes a pseudo-random sequence generated by a polynomial function, typically
f(x) = (x^2 + 1) mod n.

This algorithm exemplifies how randomness and mathematical properties can be leveraged to solve complex problems efficiently.

Context

The algorithm is particularly useful in cryptographic applications where large numbers are prevalent, such as RSA encryption. It is favored for its relatively low memory requirements and efficiency compared to other factorization methods, especially when the smallest prime factor is small.

Possible implementation

Pollard’s Rho Algorithm: Ultra-Concise Steps

  1. Initialization: Set n(to factor), x0 = 2, y = x0 , and define
    f(x) = x^2 + 1 with a constant c.

  2. Generate Sequence & Detect Cycle:

  • While true:
    • Compute xi+1 = f(xi) mod n and yi+1 = f(f(yi)) mod n.
    • Calculate d = gcd (∣ y − x ∣, n).
    • if d>1, return d.
  1. Output: Repeat until a factor is found or indicate failure.

Additional information

This is a mathematics algorithm that can be included in your math section.

I can implement it please assign me this task with **hacktoberfest** label.

@akashverma55 akashverma55 added the enhancement New feature or request label Oct 10, 2024
@mihir-k64
Copy link

can you assign this to me please under hacktober tag first time contributing would really help me in my resume

Copy link
Contributor

This issue has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Author has not responded to the comments for over 2 weeks label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale Author has not responded to the comments for over 2 weeks
Projects
None yet
Development

No branches or pull requests

2 participants