File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ namespace greedy_algorithms {
2929 * @namespace
3030 * @brief Functions for the Gale-Shapley Algorithm
3131 */
32-
32+ namespace stable_matching {
3333/* *
3434 * @brief The main function that finds the stable matching between two sets of elements
3535 * using the Gale-Shapley Algorithm.
@@ -39,8 +39,6 @@ namespace greedy_algorithms {
3939 * @param secondary_preferences the preferences of the secondary set should be a 2D vector
4040 * @returns matches the stable matching between the two sets
4141 */
42-
43- namespace stable_matching {
4442std::vector<unsigned int > gale_shapley (const std::vector<std::vector<unsigned int >>& secondary_preferences, const std::vector<std::vector<unsigned int >>& primary_preferences) {
4543 unsigned int num_elements = secondary_preferences.size ();
4644 std::vector<unsigned int > matches (num_elements, -1 );
You can’t perform that action at this time.
0 commit comments