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

the redPow implementation could be improved to O(logN) #12

Open
cliff0412 opened this issue Dec 8, 2023 · 0 comments
Open

the redPow implementation could be improved to O(logN) #12

cliff0412 opened this issue Dec 8, 2023 · 0 comments

Comments

@cliff0412
Copy link

the implementation of redPow is N multiplications. it could be optimised to O(logN) using an approach as detailed here https://en.algorithmica.org/hpc/number-theory/exponentiation/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant