El Problema del Matrimonio Estable El Problema del Matrimonio Estable Roger Z. Ríos Programa de Posgrado en Ing. de Sistemas Facultad de Ing. Mecánica.

Slides:



Advertisements
Similar presentations
1 Stable Matching A Special Case of Stable Marriage.
Advertisements

Strong Stability in the Hospitals/Residents Problem Robert W. Irving, David F. Manlove and Sandy Scott University of Glasgow Department of Computing Science.
Modelling and Solving the Stable Marriage problem using Constraint Programming David Manlove and Gregg OMalley University Of Glasgow Department of Computing.
Stable Matching Problems with Constant Length Preference Lists Rob Irving, David Manlove, Gregg OMalley University Of Glasgow Department of Computing Science.
Blah blah blah. Zoes shark Thanks to the conference artist Phoebe.
LAW February A 5/3 approximation algorithm for a hard case of stable marriage Rob Irving Computing Science Department University of Glasgow (joint.
Piyush Kumar (Lecture 3: Stable Marriage) Welcome to COT5405.
Prof. Swarat Chaudhuri COMP 482: Design and Analysis of Algorithms Spring 2013 Lecture 2.
1 Overview of Graph Theory Addendum “The Stable Marriage Problem” Instructor: Carlos Pomalaza-Ráez Fall 2003 University of Oulu, Finland.
Naveen Garg, CSE, IIT Delhi
Matching problems Toby Walsh NICTA and UNSW. Motivation Agents may express preferences for issues other than a collective decision  Preferences for a.
Joint work with Rob Irving
Stabile Marriage Thanks to Mohammad Mahdian Lab for Computer Science, MIT.
Lecture 6 CSE 331 Sep 14. A run of the GS algorithm Mal Wash Simon Inara Zoe Kaylee.
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.
Lecture 5 CSE 331 Sep 11, HW 1 out today Will be handed out at the END of the lecture Read the homework policy document carefully START EARLY! ©ehow.com.
Lecture 8 CSE 331 Sep 18, Homeworks Hand in your HW 1 HW 2 and solutions to HW 1 out at the end of class Not naming your collaborators is same as.
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.
Strong Stability in the Hospitals/Residents Problem Robert W. Irving, David F. Manlove and Sandy Scott University of Glasgow Department of Computing Science.
Lecture 6 CSE 331 Sep 10, Homeworks HW 1 posted online: see blog/piazza Pickup graded HW 0 in TA OHs.
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.
L3 #1 The Hospitals / Residents Problem and Some Extensions David Manlove University of Glasgow Department of Computing Science Supported by EPSRC grant.
Lecture 4 CSE 331 Sep 6, TA change Swapnoneel will leave us for 531 Jiun-Jie Wang will join us.
Lecture 3 CSE 331. Stable Matching Problem Problem Statement Algorithm Problem Definition Implementation Analysis.
Lecture 2 CSE 331. Day 1 Survey On UBlearns Day 1 Survey (talking points) Security MS PhD for research Building PC’s for 442 It’s ok to play games –
Stable Matchings a.k.a. the Stable Marriage Problem
1 The Stable Marriage Problem Algorithms and Networks 2014/2015 Hans L. Bodlaender Johan M. M. van Rooij.
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.
Bipartite Matching. Unweighted Bipartite Matching.
The Stable Marriage Problem
Matching Lecture 19: Nov 23.
CSCI 256 Data Structures and Algorithm Analysis lecture 1 Some slides by Kevin Wayne copyright 2005, Pearson Addison Wesley all rights reserved, and some.
Fair Shares.
Graph Algorithms Maximum Flow - Best algorithms [Adapted from R.Solis-Oba]
CSCI 256 Data Structures and Algorithm Analysis Lecture 2 Some slides by Kevin Wayne copyright 2005, Pearson Addison Wesley all rights reserved, and some.
Market Design and Analysis Lecture 1 Lecturer: Ning Chen ( 陈宁 )
Stable Matching Beyond Bipartite Graphs Jie Wu Dept. of Computer and Info. Sciences Temple University.
Matching Boys Girls A B C D E
Stable Matching.
Chapter 1 Introduction: Some Representative Problems
Stable Marriage Problem
Introduction to the Design and Analysis of Algorithms
Chapter 10 Iterative Improvement
Lecture 5 CSE 331 Sep 8, 2017.
Lecture 6 CSE 331 Sep 9, 2013.
CSE 421: Introduction to Algorithms
Lecture 5 CSE 331 Sep 10, 2010.
Lecture 7 CSE 331 Sep 15, 2010.
Lecture 6 CSE 331 Sep 11, 2017.
Lecture 6 CSE 331 Sep 13, 2010.
S. Raskhodnikova; based on slides by K. Wayne
Lecture 9 CSE 331 Sep 19, 2012.
CSE 421: Introduction to Algorithms
1.1 A First Problem: Stable Matching
Discrete Math for CS CMPSC 360 LECTURE 9 Last time: Strong induction
Blah blah blah.
Chapter 1 Introduction: Some Representative Problems
Lecture 10 CSE 331 Sep 21, 2012.
Lecture 6 CSE 331 Sep 12, 2011.
Lecture 8 CSE 331 Sep 15, 2011.
Lecture 6 CSE 331 Sep 12, 2016.
Lecture 7 CSE 331 Sep 10, 2014.
Richard Anderson Winter 2019 Lecture 1
Stable Matchings.
Piyush Kumar (Lecture 3: Stable Marriage)
Lecture 5 CSE 331 Sep 9, 2011.
Lecture 7 CSE 331 Sep 11, 2013.
Lecture 5 CSE 331 Sep 9, 2016.
Presentation transcript:

El Problema del Matrimonio Estable El Problema del Matrimonio Estable Roger Z. Ríos Programa de Posgrado en Ing. de Sistemas Facultad de Ing. Mecánica y Eléctrica Universidad Autónoma de Nuevo León Seminario de Clase “Optimización de Flujo en Redes” PISIS – FIME - UANL Cd. Universitaria24 Agosto 2007

Agenda  Problem definition  Solution algorithm  Variations and extensions  Real-world application

Problem Definition  2 disjoint sets of size n (women, men) Men’s preferencesWomen’s preferences Matching M ={(1,1), (2,3), (3,2), (4,4)} Blocking pair (4,1)

Problem Definition  2 disjoint sets of size n (women, men) Men’s preferencesWomen’s preferences Matching M ={(1,1), (2,3), (3,2), (4,4)} Blocking pair (4,1)

Problem Definition  2 disjoint sets of size n (women, men) Men’s preferencesWomen’s preferences Matching M ={(1,1), (2,3), (3,2), (4,4)} Blocking pair (4,1)

Problem Definition (SMP)  Instance of size n (n women, n men) and strictly ordered preference list  Matching: 1-1 correspondence between men and women  If woman w and man m matched in M  w and m are partners, w=p M (m), m=p M (w)  (w,m) block a match M if w and m are not partners, but w prefers m to p M (w) and m prefers w to p M (m)  A match for which there is at least one blocking pair is unstable

Solution: Properties  Stability checking (for a given matching M) is easy  Stable matching existence (not obvious) due to Gale and Shapley (1962)

Solution: Stability for (m:=1 to n) do for (each w such that m prefers w to p M (m)) do if (w prefers m to p M (w)) then report matching unstable stop endif Report matching stable for (m:=1 to n) do for (each w such that m prefers w to p M (m)) do if (w prefers m to p M (w)) then report matching unstable stop endif Report matching stable Simple stability checking algorithm O(n 2 )

Solution assign each person to be free while (some man m is free) do { w:=first woman on m’s list to whom m has not yet proposed if (w is free) then assign m and w to be engaged {to each other} else if (w prefers m to her fiance m’) then assign m and w to be engaged and m’ to be free else w rejects m {and m remains free} } end while assign each person to be free while (some man m is free) do { w:=first woman on m’s list to whom m has not yet proposed if (w is free) then assign m and w to be engaged {to each other} else if (w prefers m to her fiance m’) then assign m and w to be engaged and m’ to be free else w rejects m {and m remains free} } end while Basic Gale-Shapley man-oriented algorithm

Solution: Proof  Theorem: For any given SMP instance the G-S algorithm terminates with a stable matching  Proof:  No man can be rejected by all woman  Termination in O(n 2 )  No blocking pairs  If m prefers w to p M (m), w must have rejected m at some point for a man she prefers better  Theorem: For any given SMP instance the G-S algorithm terminates with a stable matching  Proof:  No man can be rejected by all woman  Termination in O(n 2 )  No blocking pairs  If m prefers w to p M (m), w must have rejected m at some point for a man she prefers better

Solution: Example Men’s preferencesWomen’s preferences Man 1 proposes to woman 4 (accepted) Partial matching M ={(4,1)}

Solution: Example Men’s preferencesWomen’s preferences Man 1 proposes to woman 4 (accepted) Partial matching M ={(4,1)} Man 2 proposes to woman 2 (accepted) Partial matching M ={(2,2), (4,1)}

Solution: Example Men’s preferencesWomen’s preferences Man 1 proposes to woman 4 (accepted) Partial matching M ={(4,1)} Man 2 proposes to woman 2 (accepted) Partial matching M ={(2,2), (4,1)}

Solution: Example Men’s preferencesWomen’s preferences Man 3 proposes to woman 2 (accepted and women 2 rejects man 2) Partial matching M ={(2,3), (4,1)}

Solution: Example Men’s preferencesWomen’s preferences Man 3 proposes to woman 2 (accepted and women 2 rejects man 2) Partial matching M ={(2,3), (4,1)} Man 2 proposes to woman 3 (accepted) Partial matching M ={(2,3), (3,2), (4,1)}

Solution: Example Men’s preferencesWomen’s preferences Man 3 proposes to woman 2 (accepted and women 2 rejects man 2) Partial matching M ={(2,3), (4,1)} Man 2 proposes to woman 3 (accepted) Partial matching M ={(2,3), (3,2), (4,1)}

Solution: Example Men’s preferencesWomen’s preferences Man 4 proposes to woman 3 (rejected, woman 3 prefers man 2) Partial matching M ={(2,3), (3,2), (4,1)}

Solution: Example Men’s preferencesWomen’s preferences Man 4 proposes to woman 3 (rejected, woman 3 prefers man 2) Partial matching M ={(2,3), (3,2), (4,1)} Man 4 proposes to woman 1 (accepted) Final Matching M ={(1,4), (2,3), (3,2), (4,1)} (Stable matching)

Solution: Example Men’s preferencesWomen’s preferences Man 4 proposes to woman 3 (rejected, woman 3 prefers man 2) Partial matching M ={(2,3), (3,2), (4,1)} Man 4 proposes to woman 1 (accepted) Final Matching M ={(1,4), (2,3), (3,2), (4,1)} (Stable matching)

Extensions/Variations  Stable Marriage Problem  Sets of unequal size  Unnacceptable partners  Indifference  Stable Roommate Problem  Stable Resident/Hospital Problem

Real-World Application Stable Resident/Hospital Problem (SRHP) Largest and best-known application of SMP Used by the National Resident Matching Program (NRMP)

SRHP Application  R (residents), H (hospitals), q i := # of available spots in hospital i  (r,h) is a blocking pair if r prefers h to his/her current hospital and h prefers r to at least one of its assigned residents  Solution:  Transformation into a SMP  Specialized algorithm

SRHP Application History 1 st dilemma: Early proposals 2 nd dilemma: Tight acceptance start -2

SRHP Application  Solution:  Transformation into a SMP  Specialized algorithm SRHP Instance Residents r 1  (h 1, h 2, h 3, …) … Hospitals h 1  (r 1, r 2, r 3, …), q 1 =3 … SMP Instance Residents r 1  (h 11, h 12, h 13, h 2, h 3, …) … Hospitals h 11  (r 1, r 2, r 3, …) h 12  (r 1, r 2, r 3, …) h 13  (r 1, r 2, r 3, …) …

Related Hard Problems  Finding all different stable matchings  Maximum number of stable matchings  Parallelization

Conclusions Stable matchings Gale-Shapley algorithm Math/Computer Science/Economics Scientific support to decision-making

Questions? Acknowledgements: Racing - Barça El Sardinero This Sunday 12:00 CDT