CSC2556. Lecture 5. Matching - Stable Matching - Kidney Exchange [Slides : Ariel D. Procaccia]

Similar documents
1. REPRESENTATIVE PROBLEMS

1. REPRESENTATIVE PROBLEMS

1. REPRESENTATIVE PROBLEMS

Bipartite Matchings and Stable Marriage

Analysis of Algorithms Fall Some Representative Problems Stable Matching

1. STABLE MATCHING. stable matching problem Gale Shapley algorithm hospital optimality context

Matchings in Graphs. Definition 3 A matching N in G is said to be stable if it does not contain a blocking pair.

Matching Theory. Mihai Manea. Based on slides by Fuhito Kojima. MIT

Matching: The Theory. Muriel Niederle Stanford and NBER. September 26, 2011

What do you do when you can t use money to solve your problems?

COMP251: Bipartite graphs

COMP251: Bipartite graphs

Two-Sided Matching. Terence Johnson. December 1, University of Notre Dame. Terence Johnson (ND) Two-Sided Matching December 1, / 47

CS320 Algorithms: Theory and Practice. Course Introduction

Matching. Terence Johnson. April 17, University of Notre Dame. Terence Johnson (ND) Matching April 17, / 41

Matching Theory and the Allocation of Kidney Transplantations

Stable matching. Carlos Hurtado. July 5th, Department of Economics University of Illinois at Urbana-Champaign

Ma/CS 6b Class 3: Stable Matchings

Consider a complete bipartite graph with sets A and B, each with n vertices.

We set up the basic model of two-sided, one-to-one matching

1 Definitions and Things You Know

Algorithm Design and Analysis

Strategic Behavior and Manipulation in Gender- Neutral Matching Algorithms

STABLE MARRIAGE PROBLEM WITH TIES AND INCOMPLETE BOUNDED LENGTH PREFERENCE LIST UNDER SOCIAL STABILITY

Stable Marriage with Ties and Bounded Length Preference Lists

Two-Player Kidney Exchange Game

The key is that there are two disjoint populations, and everyone in the market is on either one side or the other

Approximation and Randomized Algorithms (ARA) Lecture 1, September 3, 2012

Algorithm Design and Analysis

Ma/CS 6b Class 3: Stable Matchings

Algorithms. [Knuth, TAOCP] An algorithm is a finite, definite, effective procedure, with some input and some output.

PROBLEMS OF MARRIAGE Eugene Mukhin

An improved 2-agent kidney exchange mechanism

Cheating to Get Better Roommates in a Random Stable Matching

Two-Sided Matching. Terence Johnson. September 1, University of Notre Dame. Terence Johnson (ND) Two-Sided Matching September 1, / 37

Matching: The Theory. Muriel Niederle Stanford and NBER. September 26, 2011

An improved approximation algorithm for the stable marriage problem with one-sided ties

Matching Problems. Roberto Lucchetti. Politecnico di Milano

CS 6901 (Applied Algorithms) Lecture 2

Subramanian s stable matching algorithm

Input. A set of men M, and a set of women W.

Creating new worlds inside the computer. COS 116: 2/10/2011 Sanjeev Arora

Algorithmics of Two-Sided Matching Problems

Weights in stable marriage problems increase manipulation opportunities

Dynamic Matching with a Fall-back Option

1.1 First Problem: Stable Matching. Six medical students and four hospitals. Student Preferences. s6 h3 h1 h4 h2. Stable Matching Problem

COOPERATIVE GAME THEORY: CORE AND SHAPLEY VALUE

Lecture 2: Just married

CS 598RM: Algorithmic Game Theory, Spring Practice Exam Solutions

Math 301: Matchings in Graphs

Stable Matching Existence, Computation, Convergence Correlated Preferences. Stable Matching. Algorithmic Game Theory.

The Man-Exchange Stable Marriage Problem

A (ln 4)-Approximation Algorithm for Maximum Stable Matching with One-Sided Ties and Incomplete Lists

Omega notation. Transitivity etc.

Incentives in Large Random Two-Sided Markets

The Blocking Lemma and Strategy-Proofness in Many-to-Many Matchings

Advanced Algorithms. Lecture Notes for April 5, 2016 Dynamic programming, continued (HMMs); Iterative improvement Bernard Moret

Stable Matching Problems with Exchange Restrictions

Efficient Algorithms for Bipartite Matching Problems with Preferences

Coalition Manipulation of the Gale-Shapley Algorithm

Lecture 5: The Principle of Deferred Decisions. Chernoff Bounds

Dynamic Matching under Preferences

APPROXIMATION ALGORITHMS FOR THE STABLE MATCHING PROBLEM

Game Theory: Lecture #5

CSEP 521 Applied Algorithms. Richard Anderson Winter 2013 Lecture 1

Socially stable matchings in the Hospitals/Residents problem

Glasgow eprints Service

Market Design: Lecture 1 NICOLE IMMORLICA, NORTHWESTERN UNIVERSITY

Manipulability in matching markets: conflict and coincidence of interests

Local Search Approaches in Stable Matching Problems

AN IMPOSSIBILITY THEOREM IN MATCHING PROBLEMS

THREE ESSAYS ON GAME THEORY. Demet Yilmazkuday. Dissertation. Submitted to the Faculty of the. Graduate School of Vanderbilt University

1 The Arthur-Merlin Story

Two Sided Matching: An Algorithm with both sides making proposals

CS711008Z Algorithm Design and Analysis

Matching Problems. Roberto Lucchetti. Politecnico di Milano

arxiv: v2 [cs.gt] 25 Jul 2014

Today. Couple of more induction proofs. Stable Marriage.

Combinatorial Optimisation, Problems I, Solutions Term /2015

CS 580: Algorithm Design and Analysis. Jeremiah Blocki Purdue University Spring 2018

SEQUENTIAL ENTRY IN ONE-TO-ONE MATCHING MARKETS

Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Homework 3. This homework is due September 22, 2014, at 12:00 noon.

Optimal Truncation in Matching Markets

The Blocking Lemma and Group Strategy-Proofness in Many-to-Many Matchings

Improving Man-Optimal Stable Matchings by Minimum Change of Preference Lists

Weights in Stable Marriage Problems Increase Manipulation Opportunities

Midterm 1. Your Exam Room: Name of Person Sitting on Your Left: Name of Person Sitting on Your Right: Name of Person Sitting in Front of You:

Deposited on: 30 September 2010

Stable Matching with Uncertain Pairwise Preferences

Glasgow eprints Service

arxiv: v1 [cs.ds] 8 Apr 2019

An Efficient Algorithm for Batch Stability Testing

CSE 421 Algorithms. Richard Anderson Autumn 2015 Lecture 1

Unbalanced Random Matching Markets: The Stark Effect of Competition

cs.washington.edu/417

Online Appendix for Incentives in Landing Slot Problems

Lecture 10. Sublinear Time Algorithms (contd) CSC2420 Allan Borodin & Nisarg Shah 1

Assignment 3 Logic and Reasoning KEY

Equilibria under Deferred Acceptance: Dropping Strategies, Filled Positions, and Welfare

Massachusetts Institute of Technology 6.854J/18.415J: Advanced Algorithms Friday, March 18, 2016 Ankur Moitra. Problem Set 6

Transcription:

CSC2556 Lecture 5 Matching - Stable Matching - Kidney Exchange [Slides : Ariel D. Procaccia] CSC2556 - Nisarg Shah 1

Announcements The assignment is up! It is complete, and no more questions will be added. After today s class, you will be able to attempt all but one question. We will cover material for the last question in next class. Due: March 11 th by 11:59PM (~ 3 weeks from now) Project proposal Due: March 1 st by 12:59PM (i.e., before the class) Will put up sample project ideas this weekend on Piazza. If you have trouble finding a project idea, meet me. CSC2556 - Nisarg Shah 2

Stable Matching Recap Graph Theory: In graph G = (V, E), a matching M E 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. G is a bipartite graph if there exist V 1, V 2 such that V = V 1 V 2 and E V 1 V 2 CSC2556 - Nisarg Shah 3

Stable Marriage Problem Bipartite graph, two sides with equal vertices n men and n 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 m and woman w prefer each other to their current matches (such a pair is called a blocking pair ) CSC2556 - Nisarg Shah 4

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 CSC2556 - Nisarg Shah 5

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? CSC2556 - Nisarg Shah 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 No, Albert and Emily form a blocking pair. CSC2556 - Nisarg Shah 7

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: How about this matching? CSC2556 - Nisarg Shah 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 Yes! (Charles and Fergie are unhappy, but helpless.) CSC2556 - Nisarg Shah 9

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

Gale-Shapley 1962 Men-Proposing Deferred Acceptance (MPDA): 1. Initially, no one has proposed, no one is matched. 2. While some man m is unengaged: w m s most preferred woman to whom m has not proposed yet m proposes to w If w is unengaged: o m and w are engaged Else if w prefers m to her current partner m o m and w are engaged, m becomes unengaged Else: w rejects m 3. Match all engaged pairs. CSC2556 - Nisarg Shah 11

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 = proposed = engaged = rejected CSC2556 - Nisarg Shah 12

Running Time Theorem: DA terminates in polynomial time (at most n 2 iterations of the outer loop) Proof: In each iteration, a man proposes to someone to whom he has never proposed before. n men, n women n n possible proposals Can actually tighten a bit to n n 1 + 1 iterations At termination, it must return a perfect matching. CSC2556 - Nisarg Shah 13

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

Stable Matching Theorem: DA always returns a stable matching. Proof by contradiction: Assume (m, w) is a blocking pair. Case 2: m proposed to w o w must have rejected m at some point o Women only reject to get better partners o w must be matched at the end, with a partner she prefers to m o (m, w) is not a blocking pair CSC2556 - Nisarg Shah 15

Men-Optimal Stable Matching The stable matching found by MPDA is special. Valid partner: For a man m, call a woman w a valid partner if (m, w) is in some stable matching. Best valid partner: For a man m, a woman w is the best valid partner if she is a valid partner, and m prefers her to every other valid partner. Denote the best valid partner of m by best(m). CSC2556 - Nisarg Shah 16

Men-Optimal Stable Matching Theorem: Every execution of MPDA returns the menoptimal stable matching: every man is matched to his best valid partner. Surprising that this is a matching. E.g., it means two men cannot have the same best valid partner! Theorem: Every execution of MPDA produces the womenpessimal stable matching: every woman is matched to her worst valid partner. CSC2556 - Nisarg Shah 17

Men-Optimal Stable Matching Theorem: Every execution of MPDA returns the menoptimal stable matching. Proof by contradiction: Let S = matching returned by MPDA. m first man rejected by best m = w m the more preferred man due to which w rejected m w is valid for m, so (m, w) part of stable matching S w woman m is matched to in S We show that S cannot be stable because (m, w) is a blocking pair. CSC2556 - Nisarg Shah 18

Men-Optimal Stable Matching Theorem: Every execution of MPDA returns the menoptimal stable matching. Proof by contradiction: Blocking pair Not yet rejected by a valid partner hasn t proposed to w prefers w to w m m X w m m w w First to be rejected by best valid partner (w) S Rejects m because prefers m to m S CSC2556 - Nisarg Shah 19

Strategyproofness Theorem: MPDA is strategyproof for men. We ll skip the proof of this. Actually, it is group-strategyproof. But the women might gain by misreporting. Theorem: No algorithm for the stable matching problem is strategyproof for both men and women. CSC2556 - Nisarg Shah 20

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 CSC2556 - Nisarg Shah 21

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

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) q can accept c q > 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 CSC2556 - Nisarg Shah 23

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 is strategyproof for hospitals (or colleges). CSC2556 - Nisarg Shah 24

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 n agents submits a ranking over the other n 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] CSC2556 - Nisarg Shah 25

NRMP: Matching in Practice 1940s: Decentralized resident-hospital matching Markets unralveled, offers came earlier and earlier, quality of matches decreased 1950s: NRMP introduces centralized clearinghouse 1960s: Gale-Shapley introduce DA 1984: Al Roth studies NRMP algorithm, finds it is really a version of DA! 1970s: Couples increasingly don t use NRMP 1998: NRMP implements matching with couple constraints (stable matchings may not exist anymore ) More recently, DA applied to college admissions CSC2556 - Nisarg Shah 26

Kidney Exchange Donor 2 Donor 1 Patient 2 Patient 1 CSC2556 - Nisarg Shah 27

Incentives A decade ago kidney exchanges were carried out by individual hospitals Today there are nationally organized exchanges; participating hospitals have little other interaction It was observed that hospitals match easy-tomatch pairs internally, and enroll only hard-tomatch pairs into larger exchanges Goal: incentivize hospitals to enroll all their pairs CSC2556 - Nisarg Shah 28

The strategic model Undirected graph, only pairwise matches Vertex = donor-patient pair Edge = compatibility Each agent controls a subset of vertices Possible strategy: hide some vertices (match internally), and only reveal others Utility of agent = # its matched vertices (self-matched + matched by mechanism) CSC2556 - Nisarg Shah 29

The strategic model Mechanism: Input: revealed vertices by agents (edges are public) Output: matching Target: # matched vertices Strategyproof (SP): If no agent benefits from hiding vertices irrespective of what other agents do. CSC2556 - Nisarg Shah 30

OPT is manipulable CSC2556 - Nisarg Shah 31

OPT is manipulable CSC2556 - Nisarg Shah 32

Approximating SW Theorem [Ashlagi et al. 2010]: No deterministic SP mechanism can give a 2 ε approximation Proof: No perfect matching exists. Any algorithm must match at most three blue nodes, or at most two gray nodes. CSC2556 - Nisarg Shah 33

Approximating SW Theorem [Ashlagi et al. 2010]: No deterministic SP mechanism can give a 2 ε approximation Proof: Suppose the algorithm matches at most three blue nodes o Cannot match both blue nodes in the following graph, otherwise blue agent has an incentive to hide nodes. o Must return a matching of size 1 when a matching of size 2 exists. CSC2556 - Nisarg Shah 34

Approximating SW Theorem [Ashlagi et al. 2010]: No deterministic SP mechanism can give a 2 ε approximation Proof: Suppose the algorithm matches at most two gray nodes o Cannot match the gray node in the following graph, otherwise the gray agent has an incentive to hide nodes. o Must return a matching of size 1 when a matching of size 2 exists. CSC2556 - Nisarg Shah 35

Approximating SW Theorem [Kroer and Kurokawa 2013]: No randomized SP mechanism can give a 6 ε approximation. 5 Proof: Homework! CSC2556 - Nisarg Shah 36

SP mechanism: Take 1 Assume two agents MATCH {{1},{2}} mechanism: Consider matchings that maximize the number of internal edges for each agent. Among these return, a matching with max overall cardinality. CSC2556 - Nisarg Shah 37

Another example CSC2556 - Nisarg Shah 38

Guarantees MATCH {{1},{2}} gives a 2-approximation Cannot add more edges to matching For each edge in optimal matching, one of the two vertices is in mechanism s matching Theorem (special case): MATCH {{1},{2}} is strategyproof for two agents. CSC2556 - Nisarg Shah 39

Proof M = matching when player 1 is honest, M = matching when player 1 hides vertices MΔM consists of paths and evenlength cycles, each consisting of alternating M, M edges What s wrong with the illustration on the right? M M V 1 V 2 M M M M M M M M CSC2556 - Nisarg Shah 40

Proof Consider a path in MΔM, denote its edges in M by P and its edges in M by P Consider sets P 11, P 22, P 12 containing edges of P among V 1, among V 2, and between V 1 - V 2 Same for P 11, P 22, P 12 Note that P 11 P 11 Property of the algorithm CSC2556 - Nisarg Shah 41

Proof Case 1: P 11 = P 11 Agent 2 s vertices don t change, so P 22 = P 22 M is max cardinality P 12 P 12 U 1 P = 2 P 11 + P 12 2 P 11 + P 12 = U 1 (P ) CSC2556 - Nisarg Shah 42

Proof Case 2: P 11 > P 11 P 12 P 12 2 Every sub-path within V 2 is of even length V 1 V 2 Pair up edges of P 12 and P 12, except maybe the first and the last U 1 P = 2 P 11 + P 12 2 P 11 + 1 + P 12 2 = U 1 P CSC2556 - Nisarg Shah 43

The case of 3 players CSC2556 - Nisarg Shah 44

SP Mechanism: Take 2 Let Π = Π 1, Π 2 be a bipartition of the players MATCH mechanism: Consider matchings that maximize the number of internal edges and do not have any edges between different players on the same side of the partition Among these return a matching with max cardinality (need tie breaking) CSC2556 - Nisarg Shah 45

Eureka? Theorem [Ashlagi et al. 2010]: MATCH is strategyproof for any number of agents and any partition Π. Recall: For n = 2, MATCH {{1},{2}} is a 2-approximation Question: n = 3, MATCH {{1},{2,3}} approximation? 1. 2 2. 3 3. 4 4. More than 4 CSC2556 - Nisarg Shah 46

The Mechanism The MIX-AND-MATCH mechanism: Mix: choose a random partition Match: Execute MATCH Theorem [Ashlagi et al. 2010]: MIX-AND-MATCH is strategyproof and a 2-approximation. We only prove the approximation ratio. CSC2556 - Nisarg Shah 47

Proof M = optimal matching Claim: I can create a matching M such that M is max cardinality on each V i, and σ i M ii + 1 σ 2 i j M ij σ i M ii + 1 2 σ i j M ij M = max cardinality on each V i For each path P in M ΔM, add P M to M if M has more internal edges than M, otherwise add P M to M For every internal edge M gains relative to M, it loses at most one edge overall CSC2556 - Nisarg Shah 48

Proof Fix Π and let M Π be the output of MATCH The mechanism returns max cardinality across Π subject to being max cardinality internally, therefore i M Π ii + M Π ij i Π 1,j Π 2 i M ii + M ij i Π 1,j Π 2 CSC2556 - Nisarg Shah 49

Proof E M Π = 1 2 n Π i M Π Π ii + M ij i Π 1,j Π 2 1 2 n Π i M ii + M ij i Π 1,j Π 2 = i M ii + 1 2 n Π M ij i Π 1,j Π 2 = M ii + 1 2 M ij i j M ii + 1 2 i j M ij i i 1 2 i M ii + 1 2 i j M ij = 1 2 M CSC2556 - Nisarg Shah 50