Matching Problems. Roberto Lucchetti. Politecnico di Milano

Similar documents
Matching Problems. Roberto Lucchetti. Politecnico di Milano

Matching Theory and the Allocation of Kidney Transplantations

Ma/CS 6b Class 3: Stable Matchings

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

Ma/CS 6b Class 3: Stable Matchings

Analysis of Algorithms Fall Some Representative Problems Stable Matching

Game Theory: Lecture #5

1. REPRESENTATIVE PROBLEMS

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

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

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

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

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

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

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

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

1. REPRESENTATIVE PROBLEMS

Omega notation. Transitivity etc.

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

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

Assignment 3 Logic and Reasoning KEY

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

PROBLEMS OF MARRIAGE Eugene Mukhin

Algorithm Design and Analysis

Discrete Mathematics and Probability Theory Summer 2014 James Cook Midterm 1 (Version B)

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

Sisterhood in the Gale-Shapley Matching Algorithm

CS711008Z Algorithm Design and Analysis

Algorithms: COMP3121/3821/9101/9801

Strategic Behavior and Manipulation in Gender- Neutral Matching Algorithms

COOPERATIVE GAME THEORY: CORE AND SHAPLEY VALUE

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

AN IMPOSSIBILITY THEOREM IN MATCHING PROBLEMS

Algorithm Design and Analysis

1 Definitions and Things You Know

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

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

Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Midterm 1

COMP251: Bipartite graphs

SEQUENTIAL ENTRY IN ONE-TO-ONE MATCHING MARKETS

Greedy Homework Problems

CS 6901 (Applied Algorithms) Lecture 2

Strategy-Proofness and the Core in House Allocation Problems

Matching and Market Design

arxiv:cond-mat/ v1 [cond-mat.dis-nn] 18 Apr 2001

COMP251: Bipartite graphs

Notes for Recitation 7

CS320 Algorithms: Theory and Practice. Course Introduction

Incentives in Large Random Two-Sided Markets

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

Algorithms and Data Structures (COMP 251) Midterm Solutions

Coalition Manipulation of the Gale-Shapley Algorithm

Practice problems from chapters 2 and 3

Weights in stable marriage problems increase manipulation opportunities

ECO421: Communication

PENGUIN READERS. Five Famous Fairy Tales

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Midterm 1

Cheating to Get Better Roommates in a Random Stable Matching

Marriage Matching: A Conjecture of Donald Knuth

Housing Markets with Indifferences: a Tale of Two Mechanisms

1. REPRESENTATIVE PROBLEMS

Discrete Mathematics and Probability Theory Summer 2014 James Cook Midterm 1

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

Dating and Divorce. Li, Hao and Sergei Severinov Vancouver School of Economics University of British Columbia. August 9, 2018.

Subramanian s stable matching algorithm

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

Computational Thinking

Prob. 1 Prob. 2 Prob. 3 Total

6.2b Homework: Fit a Linear Model to Bivariate Data

Petty Envy When Assigning Objects

ONLINE APPENDIX TO HOW TO CONTROL CONTROLLED SCHOOL CHOICE (NOT FOR PUBLICATION)

Matching with Myopic and Farsighted Players

Dynamic Matching with a Fall-back Option

Market Design: Lecture 1 NICOLE IMMORLICA, NORTHWESTERN UNIVERSITY

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

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

arxiv: v1 [cs.ds] 8 Apr 2019

Lecture 5: The Principle of Deferred Decisions. Chernoff Bounds

MATH 114 Fall 2004 Solutions to practice problems for Final Exam

Two-sided Matching Theory

Bipartite Matchings and Stable Marriage

Combinatorial Optimisation, Problems I, Solutions Term /2015

Manipulability in matching markets: conflict and coincidence of interests

Review. More Review. Things to know about Probability: Let Ω be the sample space for a probability measure P.

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

Recent Advances in Generalized Matching Theory

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

Published: Social Choice and Welfare, 33(1), June 2009, pp doi: /s SEQUENTIAL ENTRY IN MANY-TO-ONE MATCHING MARKETS

TRUE OR FALSE: 1. "...He entered a certain village; and a certain woman named Martha welcomed Him into her house." LUKE 10:38 TRUE OR FALSE

A : a b c d a : B C A E B : d b c a b : C A B D E C : d c a c : E D B C D : a d b d : A D E B C E : a b d. A : a b c d a : B C A D E

Stable Marriage with Ties and Bounded Length Preference Lists

A new dynamic mechanism to the marriage problem with a variant

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:

Weights in Stable Marriage Problems Increase Manipulation Opportunities

The Man-Exchange Stable Marriage Problem

Problem Set 6 Solutions

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

Matching and Stable Matching

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

Transcription:

Politecnico di Milano

Background setting Problems introduced in 1962 by Gale and Shapley for the study of two sided markets: 1) workers & employers 2) interns & hospitals 3) students & universities 4) women & men 5) pairs of donor patients in a kidney transplant program 6) First basic question: what does mean find a (efficient) solution in this case? 2/24

First basic version WOMEN & MEN Basic ingredients Two groups: W and M Each element of W (M) has a ranking on the elements of M (W) Goal: forming efficient pairs This is called one to one matching Further assumptions The two groups have the same number of elements All elements rank all elements of the other group Typical example: matching women and men, with the same number of women and men, and better to be matched in any case than being alone 3/24

More definitions Definition A matching problem is given by: 1) a pair of sets W and M with the same cardinality 2) a pair preference profiles ({ w } w W, { m } m M ), with m defined on W and conversely w defined on M Definition A matching is a bijection b : W M 4/24

An example From now on men small letters in blue, women capital letters in red W = {Anna, Giulia, Maria} M = {Bob, Frank, Emanuele} The following is a matching [(Anna, Emanuele), (Giulia, Bob), (Maria, Frank)]. 5/24

Stable matching Definition A pair W m objects to the matching Λ if m and W both prefer each other to the person paired to them in the matching Λ. For instance: Λ = {(m, Z), (b, W ),... } and m W b W m Z. Definition A matching Λ is called stable provided there is no pair woman man objecting to Λ 6/24

Example M = {a, b, c, d}, W = {A, B, C, D} Preferences men: D a C a B a A, B b A b C b D D c A c C c B, A d D d C d B. Preferences women: b A a A c A d, b B d B a B c b C d C c C a, b D c D d D a. Two matchings: Λ = {(a, A), (b, C), (c, B), (d, D)} Ω = {(a, C), (b, B), (c, D), (d, A)} Λ unstable a B Ω stable 7/24

Existence of stable matching Theorem Every matching problem admits a stable matching 8/24

Proof Constructive proof: algorithm night by night 1) Stage 1a) Every woman visits, the first night, her most preferred choice. Stage 1b) Every man chooses among the women he finds in front of his house (if any). If every woman is matched, the algorithm ends, otherwise go to stage 2 2) Stage 2a) Every woman dismissed at the previous stage visits her second choice. Stage 2b) Every man chooses among the women he finds in front of his house (if any), he dismisses the woman already in the house, if someone at the door is better for him. If every woman is matched, the algorithm ends, otherwise go to stage k 3) Stage ka) Every woman dismissed at the previous stage visits her choice after the man dismissing her. Stage kb) Every man chooses among the women he finds in front of his house (if any), he dismisses the woman already in the house, if someone at the door is better for him. If every woman is matched, the algorithm ends, otherwise go to stage k. Claim. The algorithm ends and the resulting matching is stable 9/24

Preliminary remarks Easy to see The women go down with their preferences along the algorithm The men go up with their preferences along the algorithm If a man is visited at stage r, then from stage r + 1 on he will never be alone The algorithm generically provides two matchings 10/24

Proof: continued Fact 1 The algorithm ends, and every man is matched to a woman. Actually every woman can at most visit n men. Thus a first estimate is that at most n 2 days are needed. An immediate better estimate is available noticing that the first night all women are involved, thus n 2 n + 1 is a better estimate (yet, it is not sharp). Moreover, every man is visited at some stage since every woman likes better to be paired than to remain alone Fact 2 No woman can be part of an objecting pair for the resulting matching Consider the woman W She cannot be part of an objecting pair with a man m she did not visit: she is married to a man preferred to all of them She cannot be part of an objecting pair with a man m she already visited either: dismissed in favor of another woman, by transitivity she cannot be preferred to the woman matched to m The matching built by the algorithm is stable 11/24

Example revisited Preferences men: D a C a B a A, B b A b C b D D c A c C c B, A d D d C d B. Preferences women: b A a A c A d, b C d C c C a, b B d B a B c b D c D d D a Men visiting: {(a, C), (b, B), (c, D), (d, A)} Women visiting {(a, A), (b, B), (c, D), (d, C)} 12/24

One more example Preferences men A a B a C, C b A b B, B c A c C Preferences women c A a A b, b B a B c, a C b C c Men visiting {(a, A), (b, C), (c, B)} Women visiting {(c, A), (b, B), (a, C)} One more? {(a, B), (b, C), (c, A)} 13/24

Some numbers (matching) =n! (stable matching) =? Usually not many! However there is a method allowing to built many stable matching For instance: n = 8 269, n = 16 195472 n = 32 104310534400 14/24

Comparing matchings Let us consider two matchings and Θ Definition Write m Θ if for every man either he is associated to the same woman in the two matchings or he is associated to a preferred woman in than in Θ Write w Θ interchanging men and women in the above Remark Easy to see m ( w ) reflexivity m ( w )Θ Θ m ( w )Λ m ( w )Λ the two preorder relations are not complete transitivity 15/24

Women versus men Theorem Let and Θ be stable matchings. Then m Θ if and only if Θ w Suppose m Θ, and (a, A), (b, A) Θ. Must show b A a Suppose in (a, F ) Θ. Since m Θ Moreover A a F {(a, F ), (b, A)} Θ b A a 16/24

Ordering stable matching Theorem Let Λ m (Λ w ) be the men (women) visiting matching and let Θ be another stable matching. Then Λ m m Θ m Λ w Λ w w Θ w Λ m Women visiting is the best for the women! 17/24

The proof Proving that a woman cannot be rejected by a man available to her, by induction on the days of visit First day. Suppose A is rejected by a in favor of B and that there is a stable set such that {(a, A), (b, B)} Then, since then B a A b B a Impossible. By assumption B is visiting a the first day, thus a is her preferred man! 18/24

The proof continued Suppose no woman was rejected by an available man the days 1,..., k 1. See that no woman can be refused by an available man the day k. Using the same argument as before By contradiction, suppose A is rejected by a in favor of B in day k and that there is a stable set such that {(a, A), (b, B} Then, since implying B a A b B a Since B is visiting a, but likes better b, then B visited b some day before and was rejected, against the inductive assumption 19/24

Proof finished We must prove that for every stable matching Θ it is Λ w w Θ Let (a, A) Λ w. Must show that if (b, A) Θ then a A b Suppose the contrary. Then A visited b before a and was rejected. Impossible! To conclude, use previous theorem and symmetry between men and women. 20/24

Further result Definition Let, Θ be two matching. Define a new matching w Θ as the matching where each woman is paired to the preferred man between the two paired to her in and Θ Theorem Let, Θ be two stable matching. Then w Θ is stable Mathematically, w provides a lattice structure to the set of stable matchings 21/24

A key issue Is it possible that people lie on their true preferences? Consider the case women visiting It can be shown that women do not have incentive to lie Examples show for a man could be convenient to lie 22/24

An extension Suppose men are more and women and men like better to be paired than staying alone Definition A matching is a function assigning to every man an element of the set W {single}, with every woman associated to a man Definition A pair A a objects to a matching if a is either single or paired to a woman for him worse than A A loves more a than the man paired to her in the matching A matching is stable if there are no objecting pairs Theorem A stable matching always exists. The set of the men which are not married remains the same all stable matchings 23/24

Further extensions 1) Getting married, but not at any cost 2) Polygamous matching 3) Unisexual matching 1) adaptation of the idea of stable matching, the algorithm works 2) adaptation of the idea of stable matching, the algorithm works 3) a stable matching need not to exist 24/24