1.1

Why is stable matching important?: so we don’t have a situation that could spiral out of control, with one person/object/etc. throwing off another object which throws off another object, etc.

How should you initially approach complex problems, especially matching ones?: creating a “bare-bones” version of the problem (ex: simplify the recruitment process to only look at ONE company looking to hire ONE candidate from a set of n applicants)

The Stable Matching Problem & Gale-Shapley Algorithm

Defining instability for this problem: when a woman in one marriage prefers a man in a different marriage to her current husband, and the man also prefers that woman over his own wife → infidelity, marriage falling apart, spiraling out of control as the abandoned spouses seek new mates

Matching set = a set in which each member of each group (each male and each female) appear in at most one pair

Perfect matching = when each male and each female appear in exactly one pair

Defining stable for this problem: A matching set is stable if

  1. It is perfect (as defined above)
  2. There is no instability (as defined above)

How the algorithm works:

Analyzing the algorithm: 3 observations

  1. Any woman’s partner = the highest-ranked man who’s proposed to her up to that point (her partner’s will only increase in preference ranking over the execution of the algorithm)
  2. A woman’s state can go from single to engaged, but not back to single (unlike the males)
  3. A man has a higher chance of getting who he wants than a woman since he asks first, but he is also able to be bumped out of his engagement, forcing him to enter one he doesn’t prefer as much (he can only downgrade)

Does the algorithm terminate?: Yes. There are only n^2 possible proposals → O(n^2)

Proving perfection by contradiction

Every execution of the G-S algorithm yields the same matching set S