Stable Matching Lecture 7: Oct 3. Matching 1 2 3 4 5 A B C DE Boys Girls Today’s goal: to “match” the boys and the girls in a “good” way.

Slides:



Advertisements
Similar presentations
The Mathematics Of 1950s Dating: Who wins the battle of the sexes? Great Theoretical Ideas In Computer Science Steven Rudich CS Spring 2003 Lecture.
Advertisements

Piyush Kumar (Lecture 3: Stable Marriage) Welcome to COT5405.
Marriage, Honesty, & Stability N ICOLE I MMORLICA, N ORTHWESTERN U NIVERSITY.
Tutorial 5 of CSCI2110 Eulerian Path & Hamiltonian Cycle Tutor: Zhou Hong ( 周宏 )
Naveen Garg, CSE, IIT Delhi
Matching Theory.
Lecture 2: Greedy Algorithms II Shang-Hua Teng Optimization Problems A problem that may have many feasible solutions. Each solution has a value In maximization.
Great Theoretical Ideas in Computer Science for Some.
Matching problems Toby Walsh NICTA and UNSW. Motivation Agents may express preferences for issues other than a collective decision  Preferences for a.
Social Networks 101 P ROF. J ASON H ARTLINE AND P ROF. N ICOLE I MMORLICA.
1 Discrete Structures & Algorithms Graphs and Trees: IV EECE 320.
Stable Marriage Problem William Kozma Jr ECE 443/543.
CSE 421 Algorithms Richard Anderson Lecture 2. Announcements Office Hours –Richard Anderson, CSE 582 Monday, 10:00 – 11:00 Friday, 11:00 – 12:00 –Yiannis.
Lecture 4 CSE 331 Sep 9, Blog posts for lectures Starts from today See Sep 8 post on the blog.
1 Bipartite Matching Polytope, Stable Matching Polytope x1 x2 x3 Lecture 10: Feb 15.
A Longer Example: Stable Matching UNC Chapel HillZ. Guo.
Lecture 8 CSE 331 Sep 17, HW 1 due today Place Q1 and Q2 in separate piles I will not accept HWs after 1:15pm.
Lecture 6 CSE 331 Sep 10, Homeworks HW 1 posted online: see blog/piazza Pickup graded HW 0 in TA OHs.
Chapter 10: Iterative Improvement Simplex Method The Design and Analysis of Algorithms.
The Stable Marriage Problem
1 Stable Matching Problem Goal. Given n men and n women, find a "suitable" matching. n Participants rate members of opposite sex. n Each man lists women.
Lecture 4 CSE 331 Sep 6, TA change Swapnoneel will leave us for 531 Jiun-Jie Wang will join us.
The Mathematics Of Dating and Marriage: Who wins the battle of the sexes? The Mathematics Of Dating and Marriage: Who wins the battle of the sexes? (adapted.
The Mathematics Of 1950’s Dating: Who wins the battle of the sexes? Adapted from a presentation by Stephen Rudich.
결혼문제로 본 조합론.
The Mathematics Of 1950’s Dating: Who wins the battle of the sexes? Presentation by Shuchi Chawla with some modifications.
Section 2.1 “Matching in bipartite graphs” in Graph Theory Handout for reading seminar.
Advanced Algorithms Piyush Kumar (Lecture 1: Introduction) Welcome to COT5405.
Stable Matchings a.k.a. the Stable Marriage Problem
Lecture 5 CSE 331 Sep 11, Submit the form I’ll need confirmation in writing. No graded material will be handed back till I get this signed form.
Great Theoretical Ideas in Computer Science.
1 The Stable Marriage Problem Algorithms and Networks 2014/2015 Hans L. Bodlaender Johan M. M. van Rooij.
Marriage and Mathematics Lau Ting Sum Samson Suen Wai.
All Pair Shortest Path IOI/ACM ICPC Training June 2004.
Lecture 23: Stable Marriage ( Based on Lectures of Steven Rudich of CMU and Amit Sahai of Princeton) Shang-Hua Teng.
Stable Marriages (Lecture modified from Carnegie Mellon University course Great Theoretical Ideas in Computer Science)
Design & Co-design of Embedded Systems Final Project: “The Match Maker” Second Phase Oral Presentation Safa S. Mahmoodian.
Bipartite Matching. Unweighted Bipartite Matching.
The Stable Marriage Problem
Great Theoretical Ideas in Computer Science for Some.
Matching Lecture 19: Nov 23.
Sep 29, 2014 Lirong Xia Matching. Report your preferences over papers soon! –deadline this Thursday before the class Drop deadline Oct 17 Catalan independence.
Fair Shares.
The Mathematics Of 1950’s Dating: Who wins the battle of the sexes? CS Lecture 2.
Graph Algorithms Maximum Flow - Best algorithms [Adapted from R.Solis-Oba]
Market Design and Analysis Lecture 2 Lecturer: Ning Chen ( 陈宁 )
Market Design and Analysis Lecture 1 Lecturer: Ning Chen ( 陈宁 )
18.1 CompSci 102 Today’s topics 1950s TV Dating1950s TV Dating.
Algorithms used by CDNs Stable Marriage Algorithm Consistent Hashing.
Indian Institute of Technology Kharagpur PALLAB DASGUPTA Graph Theory: Matchings and Factors Pallab Dasgupta, Professor, Dept. of Computer Sc. and Engineering,
Stable marriages Competitive programming and problem solving Yoram Meijaard.
Dating Advice from Mathematics
מתמטיקה בדידה Discrete Math Lecture 12 1 TexPoint fonts used in EMF.
Matching Boys Girls A B C D E
Cybernetica AS & Tartu University
Stable Matching.
Chapter 1 Introduction: Some Representative Problems
Stable Marriage Problem
The Mathematics Of 1950’s Dating: Who wins the battle of the sexes?
The Mathematics Of 1950’s Dating: Who wins The Battle of The Sexes?
The Mathematics Of 1950’s Dating: Who wins the battle of the sexes?
S. Raskhodnikova; based on slides by K. Wayne
Matching Lirong Xia March 8, Matching Lirong Xia March 8, 2016.
Computational Processes II
CSE 421: Introduction to Algorithms
Discrete Math for CS CMPSC 360 LECTURE 9 Last time: Strong induction
Computational Processes II
Computational Processes
Piyush Kumar (Lecture 3: Stable Marriage)
Derived Variables A derived variable v is simply a function
Presentation transcript:

Stable Matching Lecture 7: Oct 3

Matching A B C DE Boys Girls Today’s goal: to “match” the boys and the girls in a “good” way.

Matching Today’s goal: to “match” the boys and the girls in a “good” way. What is a matching? Each boy is matched to at most one girl. Each girl is matched to at most one boy. What is a good matching? A stable matching: They have no incentive to break up… A maximum matching: To maximize the number of pairs matched… Depending on the information we have.

Boys Girls 1: CBEAD A : : ABECD B : : DCBAE C : : ACDBE D : : ABDEC E : Stable Matching The Stable Matching Problem: There are n boys and n girls. For each boy, there is a preference list of the girls. For each girl, there is a preference list of the boys.

Stable Matching Boys Girls 1: CBEAD A : : ABECD B : : DCBAE C : : ACDBE D : : ABDEC E : What is a stable matching? Consider the following matching. It is unstable, why?

Stable Matching Boys Girls 1: CBEAD A : : ABECD B : : DCBAE C : : ACDBE D : : ABDEC E : Boy 4 prefers girl C more than girl B (his current partner). Girl C prefers boy 4 more than boy 1 (her current partner). So they have the incentive to leave their current partners, and switch to each other, we call such a pair an unstable pair.

Stable Matching Boys Girls 1: CBEAD A : : ABECD B : : DCBAE C : : ACDBE D : : ABDEC E : A stable matching is a matching with no unstable pair, and every one is married. What is a stable matching? Can you find a stable matching in this case?

Stable Matching Boys Girls 1: CBEAD A : : ABECD B : : DCBAE C : : ACDBE D : : ABDEC E : Can you find a stable matching in this case? Does a stable matching always exists? Not clear…

Stable Roommate The Stable Roommate Problem: There are 2n people. There are n rooms, each can accommodate 2 people. Each person has a preference list of 2n-1 people. Find a stable matching (match everyone and no unstable pair). Does a stable matching always exist? Not clear… When is it difficult to find a stable matching? Idea: triangle relationship!

Stable Roommate Idea: triangle relationship! a prefers b more than c b prefers c more than a c prefers a more than b no one likes d So let’s say a is matched to b, and c is matched to d. Then b prefers c more than a, and c prefers b more than d. No stable matching exists!

Stable Matching Can you now construct an example where there is no stable matching? Gale,Shapley [1962]: There is always a stable matching in the stable matching problem. not clear… This is more than a solution to a puzzle: College Admissions (original Gale & Shapley paper, 1962) Matching Hospitals & Residents. Shapley received Nobel Prize 2012 in Economics for it! The proof is based on a marriage procedure…

Boys Girls 1: CBEAD A : : ABECD B : : DCBAE C : : ACDBE D : : ABDEC E : Stable Matching Why stable matching is easier than stable roommate? Intuition: It is enough if we only satisfy one side! This intuition leads us to a very natural approach.

The Marrying Procedure Billy Bob Brad Angelina Morning: boy propose to their favourite girl

Afternoon: girl rejects all but favourite Billy Bob Brad Angelina The Marrying Procedure

… Angelina Morning: boy propose to their favourite girl Afternoon: girl rejects all but favourite Evening: rejected boy writes off girl … Billy Bob The Marrying Procedure This procedure is then repeated until all boys propose to a different girl

Boys Girls 1: CBEAD A : : ABECD B : : DCBAE C : : ACDBE D : : ABDEC E : Day 1 Morning: boy propose to their favourite girl Afternoon: girl rejects all but favourite Evening: rejected boy writes off girl

Boys Girls 1: CBEAD A : : ABECD B : : DCBAE C : : ACDBE D : : ABDEC E : Morning: boy propose to their favourite girl Afternoon: girl rejects all but favourite Evening: rejected boy writes off girl Day 2

Boys Girls 1: CBEAD A : : ABECD B : : DCBAE C : : ACDBE D : : ABDEC E : Morning: boy propose to their favourite girl Afternoon: girl rejects all but favourite Evening: rejected boy writes off girl Day 3

Boys Girls 1: CBEAD A : : ABECD B : : DCBAE C : : ACDBE D : : ABDEC E : Morning: boy propose to their favourite girl Afternoon: girl rejects all but favourite Evening: rejected boy writes off girl OKAY, marriage day! Day 4

Gale,Shapley [1962]: This procedure always find a stable matching in the stable marriage problem. Proof of Gale-Shapley Theorem What do we need to check? 1.The procedure will terminate. 2.Everyone is married. 3.No unstable pairs.

Step 1 of the Proof Claim 1. The procedure will terminate in at most n 2 days. 1. If every girl is matched to exactly one boy, then the procedure will terminate. 2. Otherwise, since there are n boys and n girls, there must be a girl receiving more than one proposal. 3. She will reject at least one boy in this case, and those boys will write off that girl from their lists, and propose to their next favourite girl. 4. Since there are n boys and each list has at most n girls, the procedure will last for at most n 2 days.

Claim 2. Every one is married when the procedure stops. Step 2 of the Proof Proof: by contradiction. 1.If B is not married, his list is empty. 2.That is, B was rejected by all girls. 3.A girl only rejects a boy if she already has a more preferable partner. 4.Once a girl has a partner, she will be married at the end. 5.That is, all girls are married (to one boy) at the end, but B is not married. 6.This implies there are more boys than girls, a contradiction.

Claim 3. There is no unstable pair. Step 3 of the Proof Fact. If a girl G rejects a boy B, then G will be married to a boy (she likes) better than B. Case 1. If G is on B’s list, then B is married to be the best one on his list. So B has no incentive to leave. Case 2. If G is not on B’s list, then G is married to a boy she likes better. So G has no incentive to leave. Consider any pair (B,G).

Gale,Shapley [1962]: There is always a stable matching in the stable marriage problem. Proof of Gale-Shapley Theorem Claim 1. The procedure will terminate in at most n 2 days. Claim 2. Every one is married when the procedure stops. Claim 3. There is no unstable pair. So the theorem follows.

More Questions (Optional) Is this marrying procedure better for boys or for girls?? All boys get the best partner simultaneously! All girls get the worst partner simultaneously! Why? Can a boy do better by lying? Can a girl do better by lying? That is, among all possible stable matching, boys get the best possible partners simultaneously. NO! YES! Intuition: It is enough if we only satisfy one side!