Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
courses:cs211:winter2014:journals:deirdre:chapter1 [2014/01/15 01:53] – tobind | courses:cs211:winter2014:journals:deirdre:chapter1 [2014/01/16 15:59] (current) – tobind | ||
---|---|---|---|
Line 34: | Line 34: | ||
| | ||
- | From looking into the algorithm, we can see teh following things. | + | From looking into the algorithm, we can prove the following things. |
- w remains engaged from the point at which she receives her first proposal; and the sequence of partners to which she is engaged gets better and better (in terms of her preference list) | - w remains engaged from the point at which she receives her first proposal; and the sequence of partners to which she is engaged gets better and better (in terms of her preference list) | ||
- The sequence of women to whom m proposes gets worse and worse (in terms of his preference list) | - The sequence of women to whom m proposes gets worse and worse (in terms of his preference list) | ||
Line 40: | Line 40: | ||
- There are only n^2 possible pairs of men and women in total | - There are only n^2 possible pairs of men and women in total | ||
- If m is free at some point in the execution of the algorithm, then there is a woman to whom he has not yet proposed. | - If m is free at some point in the execution of the algorithm, then there is a woman to whom he has not yet proposed. | ||
+ | - The set S returned at termination is a perfect matching. | ||
+ | - A set of pairs S returned at termination is a stable matching. | ||
+ | The algorithm shows a certain degree of " | ||
- | + | **All executions yield the same matching.** First, we will say that a woman is a valid partner of a man if there is a stable matching that contains the pair (//m,w//). //w// is the //best valid partner// of //m// if //w// is a valid partner of //m// and no woman whom //m// ranks higher than //w// is a valid partner of his. We will use //best(m)// to denote this. | |
+ | If we let //S*// denote the set of pairs {(//m, best(m)) : m ∈ M//}, we can prove that every execution of the G-S algorithm results in the set //S*//. | ||
+ | So, for men, the G-S algorithm is ideal (but not ideal for women!). We say that //m// is a valid partner for a woman //w// if there is a stable matching that contains the pair (//m,w//) and that //m// is the //worst valid partner// of //w/ if //m// is a valid partner of //w// and no man whom //w// ranks lower than //m// is a valid partner of hers. So, we can then prove that in the stable matching //S*//, each woman is paired with her worst valid partner. | ||
+ | |||
+ | I give this a 10 for level of interest. I think the Stable Matching Problem was very cool and also applicable to real-life situations, such as the residents in the hospitals or students looking for internships. There definitely is a very real need for stable matchings to occur. I also realized that an extension of this is most likely what is used by W& | ||
+ |