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

Add optimized binary extended gcd algorithm #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

unseddd
Copy link

@unseddd unseddd commented Jan 22, 2021

Optimized to use cheap shifts and adds rather than multiplications and
divisions for finding the greated common divisor and Bezout coefficients.

Optimized to use cheap shifts and adds rather than multiplications and
divisions for finding the greated common divisor and Bezout coefficients.
@unseddd
Copy link
Author

unseddd commented Jan 22, 2021

Much appreciation to @cuviper for their help/discussion about the impl on Zulip.

_hidden: (),
}
}
extended_gcd(&self, other)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why doesn't this try to use the binary method?

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

Successfully merging this pull request may close these issues.

2 participants