thealgorithms/c-plus-plus

Collection of various algorithms in mathematics, machine learning, computer science and physics implemented in C++ for educational purposes.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 21 minutes ago
Added to GitGenius on September 1st, 2026
Created on July 16th, 2016
Open Issues & Pull Requests: 25 (+0)
GitHub issues: Enabled
Number of forks: 7,860
Total Stargazers: 34,633 (+0)
Total Subscribers: 514 (+0)

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Issue API getrepoissuespagesummary failed: 429 Rate limit exceeded. Please try again later.

Detailed Description

The Algorithms - C++ is a collection of algorithm implementations in C++ for educational purposes.

The repository addresses the need for clear, accessible implementations of algorithms across computer science, mathematics, machine learning, and physics. It solves the problem of learning algorithms by providing well-documented source code with detailed explanations. The approach uses only C++ Standard Template Library classes with no external dependencies, allowing students and educators to study algorithm fundamentals in depth. Each implementation is self-contained and includes self-checks to verify correctness.

This tool suits students preparing for interviews, educators developing course materials, and anyone learning algorithms through practical C++ examples. It works well for those who want to understand algorithm mechanics without wrestling with external library dependencies. The repository is particularly valuable for embedded systems work, as strict adherence to C++17 standard ensures code can run on platforms like ESP32 and ARM Cortex with minimal changes. The collection intentionally includes multiple implementations of the same objective using different algorithm strategies and optimizations, giving learners exposure to various approaches.

Development activity shows consistent attention to code quality and portability. The project compiles and tests implementations on Windows, macOS, and Linux using current compiler versions for every commit. Documentation is automatically generated from source code and includes code snippets, execution details, program flow diagrams, and links to relevant C++ Standard Library resources. The modular design and open-source licensing enable implementations to be extracted and used in other applications.