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

math: big integer implementation #5

Open
bavernet opened this issue Sep 10, 2020 · 2 comments
Open

math: big integer implementation #5

bavernet opened this issue Sep 10, 2020 · 2 comments
Assignees

Comments

@bavernet
Copy link
Owner

Big integer structure is widely used.
But, there is no proper libraries for big integer in C/C++ languages.
If you can use the languages which support big integer structure internally, you should do that.
Or, you have to choose a library or to implement it.

For the unusual situation, it is needed to implement a big integer structure.

@bavernet
Copy link
Owner Author

It would better to support to convert from std::string to biginteger with a base.

@bavernet bavernet self-assigned this Sep 18, 2020
@bavernet
Copy link
Owner Author

bavernet commented Sep 18, 2020

Addition and subtraction operations are easy to implement.
But, multiplication and division would be complicated than them.

Actually to make it work is not a problem. To make it efficient is the main issue.

Multiplication has a popular efficient algorithm named karatsuba.
Whereas, I think that there is no known algorithms for division operation.

I have to survey it

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