Skip to content

Commit dba7712

Browse files
committed
add wikipedia link
1 parent ea67a47 commit dba7712

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

greedy_methods/gale_shapley_stable_matching.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
"""
22
Gale-Shapley Stable Matching (Hospital-Proposing Version)
33
4+
wikipedia: https://en.wikipedia.org/wiki/Gale%E2%80%93Shapley_algorithm
5+
46
This function implements the Gale-Shapley algorithm to produce a stable
57
matching between two groups: hospitals and students. Each hospital ranks
68
students in order of preference, and each student ranks hospitals.

0 commit comments

Comments
 (0)