csc304 lecture 13
play

CSC304 Lecture 13 Mechanism Design w/o Money 2: Stable Matching - PowerPoint PPT Presentation

CSC304 Lecture 13 Mechanism Design w/o Money 2: Stable Matching Gale-Shapley Algorithm CSC304 - Nisarg Shah 1 Stable Matching Recap Graph Theory: In graph = (, ) , a matching is a set of edges with no common


  1. CSC304 Lecture 13 Mechanism Design w/o Money 2: Stable Matching Gale-Shapley Algorithm CSC304 - Nisarg Shah 1

  2. Stable Matching β€’ Recap Graph Theory: β€’ In graph 𝐻 = (π‘Š, 𝐹) , a matching 𝑁 βŠ† 𝐹 is a set of edges with no common vertices ➒ That is, each vertex should have at most one incident edge ➒ A matching is perfect if no vertex is left unmatched. β€’ 𝐻 is a bipartite graph if there exist π‘Š 1 , π‘Š 2 such that π‘Š = π‘Š 1 βˆͺ π‘Š 2 and 𝐹 βŠ† π‘Š 1 Γ— π‘Š 2 CSC304 - Nisarg Shah 2

  3. Stable Marriage Problem β€’ Bipartite graph, two sides with equal vertices ➒ π‘œ men and π‘œ women (old school terminology  ) β€’ Each man has a ranking over women & vice versa ➒ E.g., Eden might prefer Alice ≻ Tina ≻ Maya ➒ And Tina might prefer Tony ≻ Alan ≻ Eden β€’ Want: a perfect, stable matching ➒ Match each man to a unique woman such that no pair of man 𝑛 and woman π‘₯ prefer each other to their current matches (such a pair is called a β€œblocking pair”) CSC304 - Nisarg Shah 3

  4. Why ranked preferences? β€’ Until now, we dealt with cardinal values. ➒ Our goal was welfare maximization. ➒ This was sensitive to the exact numerical values. β€’ Our goal here is stability. ➒ Stability is a property of the ranked preference. ➒ That is, you can check whether a matching is stable or not using only the ranked preferences. ➒ So ranked information suffices. CSC304 - Nisarg Shah 4

  5. Example: Preferences Albert Diane Emily Fergie Bradley Emily Diane Fergie Charles Diane Emily Fergie Diane Bradley Albert Charles Emily Albert Bradley Charles Fergie Albert Bradley Charles ≻ ≻ CSC304 - Nisarg Shah 5

  6. Example: Matching 1 Albert Diane Emily Fergie Bradley Emily Diane Fergie Charles Diane Emily Fergie Diane Bradley Albert Charles Emily Albert Bradley Charles Fergie Albert Bradley Charles Question: Is this a stable matching? CSC304 - Nisarg Shah 6

  7. Example: Matching 1 Albert Diane Emily Fergie Bradley Emily Diane Fergie Charles Diane Emily Fergie Diane Bradley Albert Charles Emily Albert Bradley Charles Fergie Albert Bradley Charles No, Albert and Emily form a blocking pair . CSC304 - Nisarg Shah 7

  8. Example: Matching 2 Albert Diane Emily Fergie Bradley Emily Diane Fergie Charles Diane Emily Fergie Diane Bradley Albert Charles Emily Albert Bradley Charles Fergie Albert Bradley Charles Question: What about this matching? CSC304 - Nisarg Shah 8

  9. Example: Matching 2 Albert Diane Emily Fergie Bradley Emily Diane Fergie Charles Diane Emily Fergie Diane Bradley Albert Charles Emily Albert Bradley Charles Fergie Albert Bradley Charles Yes! (Charles and Fergie are unhappy, but helpless.) CSC304 - Nisarg Shah 9

  10. Does a stable matching always exist in the marriage problem? Can we compute it in a strategyproof way? Can we compute it efficiently? CSC304 - Nisarg Shah 10

  11. Gale-Shapley 1962 β€’ Men-Proposing Deferred Acceptance (MPDA): 1. Initially, no one has proposed, no one is engaged, and no one is matched. 2. While some man 𝑛 is unengaged: ➒ π‘₯ ← 𝑛 ’s most preferred woman to whom 𝑛 has not proposed yet ➒ 𝑛 proposes to π‘₯ ➒ If π‘₯ is unengaged: o 𝑛 and π‘₯ are engaged ➒ Else if π‘₯ prefers 𝑛 to her current partner 𝑛′ o 𝑛 and π‘₯ are engaged, 𝑛′ becomes unengaged ➒ Else: π‘₯ rejects 𝑛 3. Match all engaged pairs. CSC304 - Nisarg Shah 11

  12. Example: MPDA Albert Diane Emily Fergie Bradley Emily Diane Fergie Charles Diane Emily Fergie Diane Bradley Albert Charles Emily Albert Bradley Charles Fergie Albert Bradley Charles = engaged = proposed = rejected CSC304 - Nisarg Shah 12

  13. Running Time β€’ Theorem: DA terminates in polynomial time (at most π‘œ 2 iterations of the outer loop) β€’ Proof: ➒ In each iteration, a man proposes to someone to whom he has never proposed before. ➒ π‘œ men, π‘œ women β†’ π‘œ Γ— π‘œ possible proposals ➒ Can actually tighten a bit to π‘œ π‘œ βˆ’ 1 + 1 iterations β€’ At termination, it must return a perfect matching. CSC304 - Nisarg Shah 13

  14. Stable Matching β€’ Theorem: DA always returns a stable matching. β€’ Proof by contradiction: ➒ Assume (𝑛, π‘₯) is a blocking pair. ➒ Case 1: 𝑛 never proposed to π‘₯ o 𝑛 cannot be unmatched o/w algorithm would not terminate. o Men propose in the order of preference. o Hence, 𝑛 must be matched with a woman he prefers to π‘₯ o (𝑛, π‘₯) is not a blocking pair CSC304 - Nisarg Shah 14

  15. Stable Matching β€’ Theorem: DA always returns a stable matching. β€’ Proof by contradiction: ➒ Assume (𝑛, π‘₯) is a blocking pair. ➒ Case 2: 𝑛 proposed to π‘₯ o π‘₯ must have rejected 𝑛 at some point o Women only reject to get better partners o π‘₯ must be matched at the end, with a partner she prefers to 𝑛 o (𝑛, π‘₯) is not a blocking pair CSC304 - Nisarg Shah 15

  16. Men-Optimal Stable Matching β€’ The stable matching found by MPDA is special. β€’ Valid partner: For a man 𝑛 , call a woman π‘₯ a valid partner if (𝑛, π‘₯) is in some stable matching. β€’ Best valid partner: For a man 𝑛 , a woman π‘₯ is the best valid partner if she is a valid partner, and 𝑛 prefers her to every other valid partner. ➒ Denote the best valid partner of 𝑛 by 𝑐𝑓𝑑𝑒(𝑛) . CSC304 - Nisarg Shah 16

  17. Men-Optimal Stable Matching β€’ Theorem: Every execution of MPDA returns the men- optimal stable matching in which every man is matched to his best valid partner 𝑐𝑓𝑑𝑒 𝑛 . ➒ Surprising that this is even a matching. E.g., why can’t two men have the same best valid partner? ➒ Every man is simultaneously matched with his best possible partner across all stable matchings β€’ Theorem: Every execution of MPDA produces the women- pessimal stable matching in which every woman is matched to her worst valid partner. CSC304 - Nisarg Shah 17

  18. Men-Optimal Stable Matching β€’ Theorem: Every execution of MPDA returns the men- optimal stable matching. β€’ Proof by contradiction: ➒ Let 𝑇 = matching returned by MPDA. ➒ 𝑛 ← first man rejected by 𝑐𝑓𝑑𝑒 𝑛 = π‘₯ ➒ 𝑛 β€² ← the man π‘₯ preferred more and rejected 𝑛 ➒ π‘₯ is valid for 𝑛 , so (𝑛, π‘₯) part of stable matching 𝑇′ ➒ π‘₯β€² ← woman 𝑛′ is matched to in 𝑇′ ➒ Mic drop: 𝑇′ cannot be stable because (𝑛 β€² , π‘₯) is a blocking pair. CSC304 - Nisarg Shah 18

  19. Men-Optimal Stable Matching β€’ Theorem: Every execution of MPDA returns the men- optimal stable matching. β€’ Proof by contradiction: Blocking pair 𝑛′ 𝑛′ Not yet rejected by a valid partner β‡’ X hasn’t proposed to π‘₯β€² 𝑛 π‘₯ 𝑛 π‘₯ β‡’ prefers π‘₯ to π‘₯β€² π‘₯β€² 𝑇 𝑇′ First to be rejected by Rejects 𝑛 because best valid partner ( π‘₯ ) prefers 𝑛′ to 𝑛 CSC304 - Nisarg Shah 19

  20. Strategyproofness β€’ Theorem: MPDA is strategyproof for men, i.e., reporting the true ranking is a weakly dominant strategy for every man. ➒ We’ll skip the proof of this. ➒ Actually, it is group-strategyproof. β€’ But the women might want to misreport. β€’ Theorem: No algorithm for the stable matching problem is strategyproof for both men and women. CSC304 - Nisarg Shah 20

  21. Women-Proposing Version β€’ Women-Proposing Deferred Acceptance (WPDA) ➒ Just flip the roles of men and women β€’ Strategyproof for women, not strategyproof for men β€’ Returns the women-optimal and men-pessimal stable matching CSC304 - Nisarg Shah 21

  22. Extensions β€’ Unacceptable matches ➒ Allow every agent to report a partial ranking ➒ If woman π‘₯ does not include man 𝑛 in her preference list, it means she would rather be unmatched than matched with 𝑛 . And vice versa. ➒ (𝑛, π‘₯) is blocking if each prefers the other over their current state (matched with another partner or unmatched) ➒ Just 𝑛 (or just π‘₯ ) can also be blocking if they prefer being unmatched than be matched to their current partner β€’ Magically, DA still produces a stable matching. CSC304 - Nisarg Shah 22

  23. Extensions β€’ Resident Matching (or College Admission) ➒ Men β†’ residents (or students) ➒ Women β†’ hospitals (or colleges) ➒ Each side has a ranked preference over the other side ➒ But each hospital (or college) π‘Ÿ can accept 𝑑 π‘Ÿ > 1 residents (or students) ➒ Many-to-one matching β€’ An extension of Deferred Acceptance works ➒ Resident-proposing (resp. hospital-proposing) results in resident-optimal (resp. hospital-optimal) stable matching CSC304 - Nisarg Shah 23

  24. Extensions β€’ For ~20 years, most people thought that these problems are very similar to the stable marriage problem β€’ Roth [1985] shows: ➒ No stable matching algorithm exists such that truth- telling is a weakly dominant strategy for hospitals (or colleges). CSC304 - Nisarg Shah 24

  25. Extensions β€’ Roommate Matching ➒ Still one-to-one matching ➒ But no partition into men and women o β€œGeneralizing from bipartite graphs to general graphs” ➒ Each of π‘œ agents submits a ranking over the other π‘œ βˆ’ 1 agents β€’ Unfortunately, there are instances where no stable matching exist. ➒ A variant of DA can still find a stable matching if it exists. ➒ Due to Irving [1985] CSC304 - Nisarg Shah 25

Recommend


More recommend