47c84137ee
* feat: Added iterative version of tree traversals. Here is the implementation of the iterative version of the Preorder, Postorder, and the Inorder traversal of given tree. . Time Complexity: O(n), where 'n' is the total number of nodes in a tree. * updating DIRECTORY.md * fixed: function descriptions, namespace declaration, and included separate libraries. * fixed: added range bases for loops. * style: proper indentation Co-authored-by: David Leal <halfpacho@gmail.com> * style: proper indentation Co-authored-by: David Leal <halfpacho@gmail.com> * style: proper indentation Co-authored-by: David Leal <halfpacho@gmail.com> * fix: C style NULL to nullptr Co-authored-by: David Leal <halfpacho@gmail.com> * docs: spell correction Co-authored-by: David Leal <halfpacho@gmail.com> * style: formatted comments. * fixes: static_cast, if and for statement braces * style: modified pointer declaration. * fixes: removed use of typedef, renamed BT to Node * Fix `clang-tidy` warnings * fix: Try to fix `clang-tidy` warnings this time * docs: Proper function description Co-authored-by: Mann Patel <46739555+manncodes@users.noreply.github.com> * fix: Class based approach * docs: Proper formatted comment Co-authored-by: David Leal <halfpacho@gmail.com> * docs: Proper indentation Co-authored-by: David Leal <halfpacho@gmail.com> * fix: Initialized data variable Co-authored-by: David Leal <halfpacho@gmail.com> * docs: Proper formatted comment Co-authored-by: David Leal <halfpacho@gmail.com> * docs: Proper indentation Co-authored-by: David Leal <halfpacho@gmail.com> * docs: Proper formatted comment Co-authored-by: David Leal <halfpacho@gmail.com> * docs: Proper function description Co-authored-by: David Leal <halfpacho@gmail.com> * docs: Removed unnecessary comment Co-authored-by: David Leal <halfpacho@gmail.com> * docs: Proper formatted comment Co-authored-by: David Leal <halfpacho@gmail.com> * docs: Proper function description * docs: Proper variables description Co-authored-by: Mann Patel <46739555+manncodes@users.noreply.github.com> * docs: Included variables description Co-authored-by: Mann Patel <46739555+manncodes@users.noreply.github.com> * docs: Included variables description Co-authored-by: Mann Patel <46739555+manncodes@users.noreply.github.com> * docs: Proper variables description Co-authored-by: Mann Patel <46739555+manncodes@users.noreply.github.com> * fixes: Self-test implementation and namespace * docs: Documentation improvements * docs: Proper formatted description Co-authored-by: David Leal <halfpacho@gmail.com> * docs: Proper formatted description Co-authored-by: David Leal <halfpacho@gmail.com> * docs: Proper formatted description Co-authored-by: David Leal <halfpacho@gmail.com> * docs: Proper formatted description Co-authored-by: David Leal <halfpacho@gmail.com> * docs: Proper indentation Co-authored-by: David Leal <halfpacho@gmail.com> * docs: Proper formatted description Co-authored-by: David Leal <halfpacho@gmail.com> * docs: Improved function description * docs: Proper formatted description Co-authored-by: David Leal <halfpacho@gmail.com> * test: Added test cases for negative values * docs: Proper description Co-authored-by: David Leal <halfpacho@gmail.com> * docs: Proper formatted comment Co-authored-by: David Leal <halfpacho@gmail.com> * docs: Proper formatted comment Co-authored-by: David Leal <halfpacho@gmail.com> * docs: Proper function description Co-authored-by: David Leal <halfpacho@gmail.com> * docs: Proper formatted description Co-authored-by: David Leal <halfpacho@gmail.com> * docs: Proper description Co-authored-by: David Leal <halfpacho@gmail.com> * docs: Proper description Co-authored-by: David Leal <halfpacho@gmail.com> Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Co-authored-by: David Leal <halfpacho@gmail.com> Co-authored-by: Mann Patel <46739555+manncodes@users.noreply.github.com> |
||
---|---|---|
.github | ||
.vscode | ||
backtracking | ||
bit_manipulation | ||
ciphers | ||
data_structures | ||
doc | ||
dynamic_programming | ||
geometry | ||
graph | ||
graphics | ||
greedy_algorithms | ||
hashing | ||
linear_algebra | ||
machine_learning | ||
math | ||
numerical_methods | ||
operations_on_datastructures | ||
others | ||
probability | ||
range_queries | ||
search | ||
sorting | ||
strings | ||
.clang-format | ||
.clang-tidy | ||
.gitignore | ||
.gitpod.dockerfile | ||
.gitpod.yml | ||
CMakeLists.txt | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
DIRECTORY.md | ||
LICENSE | ||
README.md | ||
REVIEWER_CODE.md |
The Algorithms - C++
Overview
The repository is a collection of open-source implementation of a variety of algorithms implemented in C++ and licensed under MIT License. The algorithms span a variety of topics from computer science, mathematics and statistics, data science, machine learning, engineering, etc.. The implementations and the associated documentation are meant to provide a learning resource for educators and students. Hence, one may find more than one implementation for the same objective but using a different algorithm strategies and optimizations.
Features
- The repository provides implementations of various algorithms in one of the most fundamental general purpose languages - C++.
- Well documented source code with detailed explanations provide 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 16 2019, AppleClang 11.0 and GNU 7.5.0 respectively.
- Strict adherence to C++11 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 OpenSource licensing enable the functions to be utilized conveniently in other applications.
Documentation
Online Documentation is generated from the repository 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 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
Contributions
As a community developed and maintained repository, we welcome new un-plagiarized quality contributions. Please read our Contribution Guidelines.