#38 · Primary category: Education & Research
C-Plus-Plus
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
prompts.chat
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.
JavaGuide
Java Interview & Backend General Interview Guide, covering computer fundamentals, databases, distributed systems, high concurrency, system design, and AI application development.
system-prompts-and-models-of-ai-tools
A curated collection of system prompts, internal tools, and AI models from popular AI assistants and coding agents.
30-seconds-of-code
Coding articles to level up your development skills
generative-ai-for-beginners
21 Lessons, Get Started Building with Generative AI