Skip to content

YourBroCode/Biginteger_Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5f22669 · Aug 22, 2024

History

3 Commits
Aug 22, 2024
Jun 4, 2024

Repository files navigation

Big Integer Arithmetic in C++

This project implements a custom BigInt class in C++ to handle large integer arithmetic efficiently. It includes various operations such as addition, subtraction, multiplication, division, exponentiation, and comparison, as well as advanced algorithms like Karatsuba multiplication. The project is optimized for competitive programming scenarios.

Features

Custom BigInt Class: A robust implementation of a class to handle operations on arbitrarily large integers.

Efficient Algorithms: Utilizes the Karatsuba algorithm for fast multiplication of large numbers.

Modular Arithmetic: Supports operations like exponentiation with modulo, essential for many computational problems.

Competitive Programming Ready: Includes optimizations for fast input/output and preprocessor directives to switch between local and online judge environments.

Prerequisites

  1. C++ compiler (e.g., GCC, Clang)
  2. A development environment (e.g., VS Code, Code::Blocks) or an online judge platform.

Clone the repository:

https://github.com/YourBroCode/Biginteger_Library.git

Detailed Explanation BigInt Class: The Int class is designed to handle integers that exceed the limits of standard data types.

Karatsuba Multiplication: This algorithm is used for faster multiplication of large numbers, improving efficiency over traditional methods.

Modular Exponentiation: The project includes modular arithmetic functions, which are critical in fields like cryptography.

-> "Contributions are welcome! If you find a bug or have a suggestion, feel free to open an issue or submit a pull request."

Acknowledgments

Inspired by various competitive programming challenges. Special thanks to the C++ community for their support and resources.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages