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 {
29
29
* @namespace
30
30
* @brief Functions for the Gale-Shapley Algorithm
31
31
*/
32
-
32
+ namespace stable_matching {
33
33
/* *
34
34
* @brief The main function that finds the stable matching between two sets of elements
35
35
* using the Gale-Shapley Algorithm.
@@ -39,8 +39,6 @@ namespace greedy_algorithms {
39
39
* @param secondary_preferences the preferences of the secondary set should be a 2D vector
40
40
* @returns matches the stable matching between the two sets
41
41
*/
42
-
43
- namespace stable_matching {
44
42
std::vector<unsigned int > gale_shapley (const std::vector<std::vector<unsigned int >>& secondary_preferences, const std::vector<std::vector<unsigned int >>& primary_preferences) {
45
43
unsigned int num_elements = secondary_preferences.size ();
46
44
std::vector<unsigned int > matches (num_elements, -1 );
You can’t perform that action at this time.
0 commit comments