Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| courses:cs211:winter2018:journals:bairdc:chapter1 [2018/01/16 06:13] – [1.1 – A First Problem: Stable Matching] bairdc | courses:cs211:winter2018:journals:bairdc:chapter1 [2018/01/16 06:19] (current) – [1.1 – A First Problem: Stable Matching] bairdc | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| Basic Sketch of the Gale-Shapley algorithm for stable matching: | Basic Sketch of the Gale-Shapley algorithm for stable matching: | ||
| + | < | ||
| while some man is free and hasn't proposed to every woman | while some man is free and hasn't proposed to every woman | ||
| - | Choose such a man m | + | |
| - | w = 1st woman on m's list to whom m has not yet proposed | + | w = 1st woman on m's list to whom m has not yet proposed |
| - | if w is free | + | if w is free |
| - | assign m and w to be engaged | + | |
| - | else if w prefers m to her fiancé m' | + | else if w prefers m to her fiancé m' |
| - | assign m and w to be engaged and m' to be free | + | |
| - | | + | else |
| - | w rejects m | + | |
| - | + | </ | |
| After reading the section, all the proofs make much more sense now. The only one that still is a little confusing to me is (1.8) that each woman in a stable matching is paired with her worst valid partner. It makes some sense, but I have to read over it a few times to make it make sense in my head. I'm sure it will make more sense over time. This section is a 8/10 in terms of readability and being interesting to me. | After reading the section, all the proofs make much more sense now. The only one that still is a little confusing to me is (1.8) that each woman in a stable matching is paired with her worst valid partner. It makes some sense, but I have to read over it a few times to make it make sense in my head. I'm sure it will make more sense over time. This section is a 8/10 in terms of readability and being interesting to me. | ||
