![]() |
TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
|
for string class More...
Namespaces | |
| namespace | dijkstra |
| Functions for the Dijkstra algorithm implementation. | |
| namespace | stable_matching |
| Functions for the Gale-Shapley Algorithm. | |
Classes | |
| class | BinaryAddition |
| A class to perform binary addition of two binary strings. More... | |
| class | DigitSeparation |
| A class that provides methods to separate the digits of a large positive number. More... | |
Functions | |
| bool | can_jump (const std::vector< int > &nums) |
| Checks whether the given element (default is 1) can jump to the last index. | |
| template<typename T, std::size_t N, std::size_t M> | |
| void | findMinimumEdge (const T &infinity, const std::array< std::array< T, N >, M > &graph) |
| Finds the minimum edge of the given graph. | |
for string class
for uint32_t
Greedy Algorithms.
For std::vector to store separated digits.
for std::vector
for reverse function for tests for input and outputs
Greedy Algorithms
for assert for INT_MAX for IO operations
Greedy Algorithms
For reveresing the vector For assert() function to check for errors For abs() function For int64_t data type to handle large numbers For input/output operations
Greedy Algorithms
for std::find for assert for std::uint32_t for std::vector
for assert for std::cout
Greedy Algorithms
for array for IO operations for numeric limits
Greedy Algorithms
| bool greedy_algorithms::can_jump | ( | const std::vector< int > & | nums | ) |
Checks whether the given element (default is 1) can jump to the last index.
| nums | array of numbers containing the maximum jump (in steps) from that index |
Definition at line 42 of file jump_game.cpp.
| void greedy_algorithms::findMinimumEdge | ( | const T & | infinity, |
| const std::array< std::array< T, N >, M > & | graph ) |
Finds the minimum edge of the given graph.
| infinity | Defines the infinity of the graph |
| graph | The graph that will be used to find the edge |
Definition at line 38 of file kruskals_minimum_spanning_tree.cpp.