CSC2556 Lecture 5 Matching
- Stable Matching
- Kidney Exchange
[Slides: Ariel Procaccia]
CSC2556 - Nisarg Shah 1
CSC2556 Lecture 5 Matching - Stable Matching - Kidney Exchange - - PowerPoint PPT Presentation
CSC2556 Lecture 5 Matching - Stable Matching - Kidney Exchange [Slides: Ariel Procaccia] CSC2556 - Nisarg Shah 1 Announcements Project proposal Due: Mar 03 by 11:59PM I have put up a few sample project ideas on Piazza. If you
[Slides: Ariel Procaccia]
CSC2556 - Nisarg Shah 1
CSC2556 - Nisarg Shah 2
➢ Due: Mar 03 by 11:59PM ➢ I have put up a few sample project ideas on Piazza. ➢ If you have trouble finding a project idea, meet me.
➢ Problem space introduction ➢ High-level research question ➢ Prior work ➢ Detailed goals
CSC2556 - Nisarg Shah 3
➢ That is, each vertex should have at most one incident
➢ A matching is perfect if no vertex is left unmatched.
1, 𝑊 2 such that
1 ∪ 𝑊 2 and 𝐹 ⊆ 𝑊 1 × 𝑊 2
CSC2556 - Nisarg Shah 4
➢ 𝑜 men and 𝑜 women (old school terminology )
➢ E.g., Eden might prefer Alice ≻ Tina ≻ Maya ➢ And Tina might prefer Tony ≻ Alan ≻ Eden
➢ Match each man to a unique woman such that no pair of
CSC2556 - Nisarg Shah 5
Albert Diane Emily Fergie Bradley Emily Diane Fergie Charles Diane Emily Fergie Diane Bradley Albert Charles Emily Albert Bradley Charles Fergie Albert Bradley Charles
CSC2556 - Nisarg Shah 6
Albert Diane Emily Fergie Bradley Emily Diane Fergie Charles Diane Emily Fergie Diane Bradley Albert Charles Emily Albert Bradley Charles Fergie Albert Bradley Charles
CSC2556 - Nisarg Shah 7
Albert Diane Emily Fergie Bradley Emily Diane Fergie Charles Diane Emily Fergie Diane Bradley Albert Charles Emily Albert Bradley Charles Fergie Albert Bradley Charles
CSC2556 - Nisarg Shah 8
Albert Diane Emily Fergie Bradley Emily Diane Fergie Charles Diane Emily Fergie Diane Bradley Albert Charles Emily Albert Bradley Charles Fergie Albert Bradley Charles
CSC2556 - Nisarg Shah 9
Albert Diane Emily Fergie Bradley Emily Diane Fergie Charles Diane Emily Fergie Diane Bradley Albert Charles Emily Albert Bradley Charles Fergie Albert Bradley Charles
CSC2556 - Nisarg Shah 10
CSC2556 - Nisarg Shah 11
➢ 𝑥 ← 𝑛’s most preferred woman to whom 𝑛 has not
proposed yet
➢ 𝑛 proposes to 𝑥 ➢ If 𝑥 is unengaged:
➢ Else if 𝑥 prefers 𝑛 to her current partner 𝑛′
➢ Else: 𝑥 rejects 𝑛
CSC2556 - Nisarg Shah 12
Albert Diane Emily Fergie Bradley Emily Diane Fergie Charles Diane Emily Fergie Diane Bradley Albert Charles Emily Albert Bradley Charles Fergie Albert Bradley Charles = proposed = engaged = rejected
CSC2556 - Nisarg Shah 13
➢ In each iteration, a man proposes to someone to whom
➢ 𝑜 men, 𝑜 women → 𝑜 × 𝑜 possible proposals ➢ Can actually tighten a bit to 𝑜 𝑜 − 1 + 1 iterations
CSC2556 - Nisarg Shah 14
➢ Assume (𝑛, 𝑥) is a blocking pair. ➢ Case 1: 𝑛 never proposed to 𝑥
CSC2556 - Nisarg Shah 15
➢ Assume (𝑛, 𝑥) is a blocking pair. ➢ Case 2: 𝑛 proposed to 𝑥
CSC2556 - Nisarg Shah 16
➢ Denote the best valid partner of 𝑛 by 𝑐𝑓𝑡𝑢(𝑛).
CSC2556 - Nisarg Shah 17
➢ Surprising that this is a matching. E.g., it means two men
CSC2556 - Nisarg Shah 18
➢ Let 𝑇 = matching returned by MPDA. ➢ 𝑛 ← first man rejected by 𝑐𝑓𝑡𝑢 𝑛 = 𝑥 ➢ 𝑛′ ← the more preferred man due to which 𝑥 rejected 𝑛 ➢ 𝑥 is valid for 𝑛, so (𝑛, 𝑥) part of stable matching 𝑇′ ➢ 𝑥′ ← woman 𝑛′ is matched to in 𝑇′ ➢ We show that 𝑇′ cannot be stable because (𝑛′, 𝑥) is a
CSC2556 - Nisarg Shah 19
𝑥 𝑛 𝑛′
𝑥 𝑛 𝑛′ 𝑥′
Not yet rejected by a valid partner ⇒ hasn’t proposed to 𝑥′ ⇒ prefers 𝑥 to 𝑥′ First to be rejected by best valid partner (𝑥) Rejects 𝑛 because prefers 𝑛′ to 𝑛 Blocking pair
CSC2556 - Nisarg Shah 20
➢ We’ll skip the proof of this. ➢ Actually, it is group-strategyproof.
CSC2556 - Nisarg Shah 21
➢ Just flip the roles of men and women ➢ Strategyproof for women, not strategyproof for men ➢ Returns the women-optimal and men-pessimal stable
CSC2556 - Nisarg Shah 22
➢ Allow every agent to report a partial ranking ➢ If woman 𝑥 does not include man 𝑛 in her preference
➢ (𝑛, 𝑥) is blocking if each prefers the other over their
➢ Just 𝑛 (or just 𝑥) can also be blocking if they prefer being
CSC2556 - Nisarg Shah 23
➢ 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
➢ Many-to-one matching
➢ Resident-proposing (resp. hospital-proposing) results in
CSC2556 - Nisarg Shah 24
➢ No stable matching algorithm is strategyproof for
CSC2556 - Nisarg Shah 25
➢ Still one-to-one matching ➢ But no partition into men and women
➢ Each of 𝑜 agents submits a ranking over the other 𝑜 − 1
➢ A variant of DA can still find a stable matching if it exists. ➢ Due to Irving [1985]
CSC2556 - Nisarg Shah 26
➢ Markets “unralveled”, offers came earlier and earlier, quality of
matches decreased
(stable matchings may not exist anymore…)
27
Donor 2 Patient 2 Donor 1 Patient 1
CSC2556 - Nisarg Shah
28 CSC2556 - Nisarg Shah
➢ Vertex = donor-patient pair ➢ Edge = compatibility
➢ Possible strategy: hide some vertices (match internally), and
➢ Utility of agent = # its matched vertices (self-matched +
29 CSC2556 - Nisarg Shah
➢ Input: revealed vertices by agents (edges are public) ➢ Output: matching
30 CSC2556 - Nisarg Shah
31 CSC2556 - Nisarg Shah
32 CSC2556 - Nisarg Shah
➢ No perfect matching exists. ➢ Any algorithm must match at most three blue nodes, or at
33 CSC2556 - Nisarg Shah
➢ Suppose the algorithm matches at most three blue nodes
agent has an incentive to hide nodes.
34 CSC2556 - Nisarg Shah
➢ Suppose the algorithm matches at most two gray nodes
agent has an incentive to hide nodes.
35 CSC2556 - Nisarg Shah
6 5 − 𝜗 approximation.
36 CSC2556 - Nisarg Shah
37
➢ Consider matchings that maximize the number of
➢ Among these return, a matching with max overall
CSC2556 - Nisarg Shah
38 CSC2556 - Nisarg Shah
➢ Cannot add more edges to matching ➢ For each edge in optimal matching, one of the two
39 CSC2556 - Nisarg Shah
40
𝑊
1
𝑊
2
𝑁 𝑁 𝑁′ 𝑁′ 𝑁 𝑁′ 𝑁 ∩ 𝑁′ 𝑁 ∩ 𝑁′
CSC2556 - Nisarg Shah
11, 𝑄22, 𝑄 12 containing edges of 𝑄
1, among 𝑊 2, and between 𝑊 1- 𝑊 2
➢ Same for 𝑄′11, 𝑄′22, 𝑄′12
11 ≥ 𝑄 11 ′
➢ Property of the algorithm
41 CSC2556 - Nisarg Shah
11 = 𝑄 11 ′
22 = 𝑄 22 ′
12 ≥ 𝑄 12 ′
11 + 𝑄 12
11 ′
12 ′
42 CSC2556 - Nisarg Shah
11 > 𝑄 11 ′
12 ≥ 𝑄 12 ′
➢ Every sub-path within 𝑊
2 is of even length
➢ Pair up edges of 𝑄
12 and 𝑄 12 ′ ,
11 + 𝑄 12
11 ′
12 ′
43
𝑊
1
𝑊
2
CSC2556 - Nisarg Shah
44 CSC2556 - Nisarg Shah
45
➢ Consider matchings that maximize the number of
➢ Among these return a matching with max cardinality
CSC2556 - Nisarg Shah
46
CSC2556 - Nisarg Shah
➢ Mix: choose a random partition ➢ Match: Execute MATCH
47 CSC2556 - Nisarg Shah
➢ 𝑁′ is max cardinality on each 𝑊
𝑗, and
➢ σ𝑗 𝑁𝑗𝑗
′ + 1 2 σ𝑗≠𝑘 𝑁𝑗𝑘 ′
∗ + 1 2 σ𝑗≠𝑘 |𝑁𝑗𝑘 ∗ |
➢ 𝑁∗∗ = max cardinality on each 𝑊
𝑗
➢ For each path 𝑄 in 𝑁∗Δ𝑁∗∗, add 𝑄 ∩ 𝑁∗∗ to 𝑁′ if 𝑁∗∗ has
➢ For every internal edge 𝑁′ gains relative to 𝑁∗, it loses at
48 CSC2556 - Nisarg Shah
𝑗
Π +
𝑗∈Π1,𝑘∈Π2
Π ≥ 𝑗
′ +
𝑗∈Π1,𝑘∈Π2
′
49 CSC2556 - Nisarg Shah
𝔽 𝑁Π = 1 2𝑜
Π
𝑗
𝑁𝑗𝑗
Π +
𝑗∈Π1,𝑘∈Π2
𝑁𝑗𝑘
Π
≥ 1 2𝑜
Π
𝑗
𝑁𝑗𝑗
′ +
𝑗∈Π1,𝑘∈Π2
𝑁𝑗𝑘
′
=
𝑗
𝑁𝑗𝑗
′ + 1
2𝑜
Π
𝑗∈Π1,𝑘∈Π2
𝑁𝑗𝑘
′
=
𝑗
𝑁𝑗𝑗
′ + 1
2
𝑗≠𝑘
𝑁𝑗𝑘
′
≥
𝑗
𝑁𝑗𝑗
∗ + 1
2
𝑗≠𝑘
𝑁𝑗𝑘
∗
≥ 1 2
𝑗
𝑁𝑗𝑗
∗ + 1
2
𝑗≠𝑘
𝑁𝑗𝑘
∗
= 1 2 𝑁∗ ∎
50 CSC2556 - Nisarg Shah