This repository is a collection of open-source implementation of a variety of algorithms implemented in C++ and licensed under the MIT License. These algorithms span a variety of topics from computer science, mathematics and statistics, data science, machine learning, engineering, etc.. The goal of this project is to provide well-documented, accessible implementations that support learning and experimentation. Hence, one may find more than one implementation for the same objective but using different algorithm strategies and optimizations.
- The repository provides implementations of various algorithms in one of the most fundamental and versatile general purpose languages - C++.
- Well-documented source code with detailed explanations provides a valuable resource for educators and students alike.
- Each source code is atomic using STL classes, and no external libraries are required for their compilation and execution. Thus, the fundamentals of the algorithms can be studied in much depth.
- Source codes are compiled and tested for every commit on the latest versions of three major operating systems viz., Windows, MacOS, and Ubuntu (Linux), using MSVC 19 2022, AppleClang 15.0.15, and GNU 13.3.0, respectively.
- Adheres strictly to the C++17 standard ensures portability of code to embedded systems as well, like ESP32, ARM Cortex, etc. with little to no changes.
- Self-checks within programs ensure correct implementations with confidence.
- Modular implementations and Open-Source licensing enable the functions to be utilized conveniently in other applications.
Online Documentation is generated from the repository's source codes directly. The documentation contains all resources, including source code snippets, details on execution of the programs, diagrammatic representation of program flow, and links to external resources where necessary. The documentation also introduces interactive source code with links to documentation for the C++ STL library functions used. Click on Files menu to see the list of all the files documented with the code.
Documentation of Algorithms in C++ by The Algorithms Contributors is licensed under CC BY-SA 4.0
As a community developed and maintained repository, we welcome new, un-plagiarized, high-quality contributions. Please read our Contribution Guidelines to ensure your submissions meet project standards.