#38 · Primary category: Education & Research

C-Plus-Plus

algorithm algorithm-competitions algorithms-implemented artificial-intelligence-algorithms computer-science cpp data-structures educational instructor-materials interview-preparation interview-questions machine-learning machine-learning-algorithms mathematics search sort

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

Project last updated:10/11/25

GitHub Stars

34.6K

Forks

7.9K

Contributors

343

License

MIT

Why we included this project

TheAlgorithms' C++ collection holds hundreds of algorithm implementations across computer science, math, statistics, machine learning, and physics. Each file is self-contained, relies only on the C++ standard library, and comes with detailed comments and self-checks, so you can read one source file and see exactly how an algorithm works without hunting for dependencies. That makes it a solid reference for students and instructors, and for developers preparing for technical interviews who want idiomatic C++17 code for classic data structures and algorithms. The machine-learning section is a compact but useful place to see core ML methods implemented from scratch rather than hidden behind a framework. It's a learning resource, not a deployable library, but for studying or teaching algorithms in C++, the breadth and documentation are hard to match.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category