Skip to content

Commit 831dfd8

Browse files
committed
2 parents ca2c57a + 08d29f2 commit 831dfd8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

greedy_algorithms/gale_shapley.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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 {
4442
std::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);

0 commit comments

Comments
 (0)