Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| courses:cs211:winter2018:journals:goldm:ch1 [2018/01/17 00:13] – goldm | courses:cs211:winter2018:journals:goldm:ch1 [2018/01/17 00:18] (current) – goldm | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | | + | This section focuses on the algorithm developed by David Gale and Lloyd Shapley in 1962. The algorithm, called the Stable matching problem, is meant to answer the question: "Could one design a college admissions process, or a job recruiting process, that was |
| self-enforcing?" | self-enforcing?" | ||
| - | | + | |
| + | As aforementioned, | ||
| Here is a sketch of the algorithm as given by the text: | Here is a sketch of the algorithm as given by the text: | ||
| Initially all m E M and w E W are free | Initially all m E M and w E W are free | ||
| - | While there is a man m who is free and hasn’t proposed to | + | |
| - | every woman | + | every woman |
| | | ||
| Let w be the highest-ranked woman in m’s preference list | Let w be the highest-ranked woman in m’s preference list | ||
| to whom m has not yet proposed | to whom m has not yet proposed | ||
| - | | + | |
| - | | + | |
| - | | + | |
| - | If ~ prefers m’ to m then | + | If w prefers m’ to m then |
| m remains free | m remains free | ||
| Else w prefers m to m’ | Else w prefers m to m’ | ||
| - | (m,w) become engaged | + | |
| m' becomes free | m' becomes free | ||
| Endif | Endif | ||
| Endif | Endif | ||
| - | Endwhile | + | Endwhile |
| - | Return the set S of engaged pairs | + | Return the set S of engaged pairs |
| + | |||
| + | The algorithm runs in n squared. | ||
| + | |||
| + | I found the discussion in class much more enlightening than the reading, and as such, I give this reading a 2/10. | ||
