C-Plus-Plus
C-Plus-Plus copied to clipboard
Collection of various algorithms in mathematics, machine learning, computer science and physics implemented in C++ for educational purposes.
#### Description of Change This implementation introduces a simplified version of the 8-tile puzzle solver using Iterative Deepening Search. The code has been streamlined to improve clarity and maintainability, while...
#### Description of Change This PR implements the Burst Balloons problem using dynamic programming and memoization, encapsulated within the dynamic_programming::burst_balloons namespace. The algorithm maximizes coins obtained by strategically bursting balloons....
1. Memory Management: Used std::unique_ptr for automatic memory management, reducing the risk of memory leaks. 2. STL Utilization: Replaced the custom queue implementation with std::queue, simplifying breadth-first traversal. 3. Code...
#### Description of Change Fixes #2719 #### Checklist - [x] Added description of change - [x] Added file name matches [File name guidelines](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/CONTRIBUTING.md#New-File-Name-guidelines) - [x] Added tests and example, test...
variable n is updated for better understanding of the reader #### Description of Change #### Checklist - [x] Added description of change - [x] Added file name matches [File name...
#### Description of Change # Testing This pr enables testing of the algorithms in the repository before we get to the stage of running tests on a CI. We will...
### Description As the title suggests the approved label CI does not add approved label to the pull requests ### Expected behavior add an approved label when the pull request...
Fix Segmentation fault due to the `Graph` being passed by value, and there not being a copy constructor. Adding the `&` for the `Graph` parameter changes the passing of the...
Updated the bitonic sort code in simplest form #### Description of Change #### Checklist - [x] Added description of change - [ ] Added file name matches [File name guidelines](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/CONTRIBUTING.md#New-File-Name-guidelines)...
Improved Commenting Explanation: General Overview: Detailed explanation of each function and its purpose. Clearly indicates what each parameter is and how the function works. Algorithm Details: The purpose of binary...