Ma/CS 6b Class 3: Stable Matchings

Size: px
Start display at page:

Download "Ma/CS 6b Class 3: Stable Matchings"

Transcription

1 Ma/CS 6b Class 3: Stable Matchings α p 5 p 12 p 15 q 1 q 7 q 12 By Adam Sheffer Reminder: Alternating Paths Let G = V 1 V 2, E be a bipartite graph, and let M be a matching of G. A path is alternating for M if it starts with an unmatched vertex of V 1 and every other edge of it is in M. p 0 q 1 p 5 q 7 * Notice that this is definition is different than the one from 6a. p 12 p 15 q 12 q 17 1

2 Reminder: Augmenting Paths Let G = V 1 V 2, E be a bipartite graph, and let M be a matching of G. A path is augmenting for M if it is an alternating path of M, and it ends in an unmatched vertex. p 0 p 5 p 12 p 15 q 1 q 7 q 12 q 17 Neighbor Sets Let G = V 1 V 2, E be a bipartite graph. For any vertex a V 1, we define the neighbor set of a as N a = u V 2 a, u E. N a N b = *u, v+ = *v, w+ a b V 1 V 2 u v w x 2

3 More Neighbor Sets Let G = V 1 V 2, E be a bipartite graph. For any subset A V 1, we define N A = y V 2 x, y E for some x A. N b, c, d = *u, v, w+ N a, e = *u, w, x+ a b c d e V 1 V 2 u v w x Hall's Marriage Theorem Theorem. Let G = V 1 V 2, E be a bipartite graph. There exists a matching of size V 1 in G if and only if for every A V 1, we have A N A. We say that G satisfies Hall s condition if for every A V 1, we have A N A. Philip Hall 3

4 Neighbor Sets and Perfect Matchings Explain why there s no perfect matching in this graph: a b c d u v w x N b, c, d = v, w, so we cannot find a match for all three vertices b, c, d. Proving Hall s Theorem Easy direction. If there exists a subset A V 1 such that A > N A, then there is no matching of size V 1 in G. It remains to prove. If every subset A V 1 satisfies A N A, then there is a matching of size V 1 in G. We now present two different proofs. 4

5 Proof by Contradiction M a maximum matching of G. Assume, for contradiction, that there is a vertex α V 1 that is not matched in M. A the set of vertices a V 1 α such that there is an alternating path from α to a. B V 2 the set of penultimate vertices of an alternating path from α to a vertex of V 1. By definition, every last edge in such a path is in M. Thus, the edges of M contain a matching between A and B, and A = B. An Illustration A V 1 last vertices in alternating path from α. B V 2 the penultimate vertices in these paths. The two last vertices of every path are connected by an edge of M. Thus, A = B. α q 1 p 5 q 7 A = p 5, p 12, p 15 B = q 1, q 7, q 12 p 12 p 15 q 12 q 17 5

6 Proof by Contradiction (cont.) By Hall s condition N A α > A. Thus, there is a vertex B that is adjacent to a vertex of α A α. The vertex is either matched or not. We now show that both cases lead to a contradiction. α q 1 p 5 q 7 A = p 5, p 12, p 15 B = q 1, q 7, q 12 p 12 p 15 q 12 The Case Where is Unmatched If is unmatched, then is not on the alternating path P from α to α. The path P + α, is an augmenting path, contradicting the maximality of M. α q 1 p 5 q 7 p 12 α q 12 6

7 The Case Where is Matched Assume that is matched. Then is the penultimate vertex on an alternating path from α to α contradicting B. α q 1 p 5 α p 15 q 12 q 7 Proof by Induction We prove by induction on V 1 that If every subset A V 1 satisfies A N A, then there is a matching of size V 1 in G. Induction basis. When V 1 obviously holds. = 1 the claim Induction step. We consider two cases: Every nonempty A V 1 satisfies A < N A. There exists A V 1 such that A = N A. 7

8 The First Case Assume that every nonempty A V 1 satisfies A < N(A). Consider an edge a, b E. Remove a and b from G to obtain a graph G = V 1 V 2, E. Every nonempty A V 1 satisfies A N(A). By the induction hypothesis, G contains a matching of size V 1 = V 1 1. Adding the edge a, b to the matching yields a matching of size V 1 in G. The Second Case Assume that there exists a non-empty A V 1 such that A = N A. By the hypothesis, the induced subgraph on A N A contains a matching of size A. Consider the induced subgraph G on V 1 A and V 2 N A. For any subset A V 1 A, since in G A A N(A) N A, then in G A N A. By the hypothesis, G contains a matching of size V 1 A. Thus, G contains a matching of size V 1. 8

9 Illustration: The Induction Step The red vertices in V 1 form a subset A such that A = N a. We find a matching between the red vertices and another between the blue vertices. V 1 V 2 V 1 V 2 Reminder: National Resident Matching Program Every medical student who is about to graduate ranks hospitals in which she wants to do her residency. Every hospital ranks students that it is interested in. Every year, over 20,000 applicants apply to about 1,800 programs. How can we handle this? 9

10 The Corresponding Graph Bipartite graph a vertex in V 1 for each student. A vertex in V 2 for each hospital. An edge between a student and a hospital that are interested in each other. A matching corresponds to assigning students to hospitals. The Problem Problem. We did not consider the rankings of the students and hospitals. We might have chosen the red matching. A B α However, perhaps student A prefers hospital, student B prefers hospital α, and similarly for the hospitals. 10

11 Unstable Matchings We have a bipartite graph G = V 1 V 2, E such that each vertex has a ranking of the vertices that it would like to be connected to. We say that a matching M of G is unstable if there exists an edge a, b E that is not in M and that both a and b prefer to be matched to each other than to their current match (or are unmatched). Etymology Why is this called unstable? The problem was originally formulated for matching men and women to be married. Man A and woman A are married. Man B and woman B are married. If man A prefers woman B and woman B prefers man A, these are unstable marriages! 11

12 Example: An Unstable Matching Rankings: A: 1. α γ. B: 1. α γ. C: α 3. γ α: 1. A 2. B 3. C : 1. A 2. B 3. C γ: 1. A 2. B 3. C A B C α γ The red edges form an unstable matching since both A and α prefer the edge A, α. Stable Marriage Theorem Theorem. For any bipartite graph G = (V 1 V 2, E) with sets of preferences for each vertex, there exists a stable matching. Proven in 1962 by Gale and Shapley. In 2012, the Nobel Prize in Economics was awarded to Shapley for the theory of stable allocations and the practice of market design. 12

13 A Better Matching We say that a matching M in G is better than a matching M, if every vertex of V 2 prefers its matching vertex in M to its matching vertex in M (or has the same matching vertex in both). The matching on the left is better iff α prefer A to B. A α A α B B C γ C γ Proof Idea We prove the stable marriage theorem by showing that for every unstable matching M i, there exists a better matching M i+1. We start with an empty matching M 0 and repeatedly find a better matching. Starting from an empty matching, a better matching can be found at most V 1 V 2 times, so we eventually obtain a stable matching. 13

14 Acceptable Vertices Given a matching M i, we say that a V 1 is acceptable to b V 2 if a, b E M i, and b prefers a to its current match in M. In the figure, B is acceptable to if prefers B to C. A A student S is acceptable to a hospital if it likes S better than its current student. B C α γ Happy Vertices We say that a vertex a V 1 is happy with a matching M i if either a is unmatched in M i, or M i contains the edge a, b, and a prefers b to all of the vertices of V 2 that finds a acceptable. Intuitively, a student is happy if she is assigned to her favorite hospital out of the ones that like her better than their current choice (or is unmatched). 14

15 Building Happy Matchings We only consider matchings where every vertex of V 1 is happy. This is the case for the empty M 0. Given a matching M i : Consider an unmatched vertex a V 1 and let b denote a s favorite among the vertices of V 2 for which a is acceptable. We set M i+1 as M i a, b (possibly also removing an edge a, b M i ). Notice that M i+1 is better than M i and that every vertex of V 1 is happy. Final Details Given a matching M i : What if every unmatched vertex a V 1 has no vertex in V 2 for which a is acceptable. Then M i is a stable matching! What if there are no unmatched vertices in M i? Since every vertex of V 1 is happy, this again means that M i is stable. 15

16 Finding a Stable Matching The proof of the stable marriage theorem presents us with an algorithm for finding a stable matching: Build a sequence of matchings M i such that each is better than the previous one, until we obtain a stable matching. At each step the algorithm picks an unmatched element of V 1 and finds the best match for it (not paying much attention to the preferences of the vertices of V 2 ). The End 16

Ma/CS 6b Class 3: Stable Matchings

Ma/CS 6b Class 3: Stable Matchings Ma/CS 6b Class 3: Stable Matchings α p 5 p 12 p 15 q 1 q 7 q 12 β By Adam Sheffer Neighbor Sets Let G = V 1 V 2, E be a bipartite graph. For any vertex a V 1, we define the neighbor set of a as N a = u

More information

Bipartite Matchings and Stable Marriage

Bipartite Matchings and Stable Marriage Bipartite Matchings and Stable Marriage Meghana Nasre Department of Computer Science and Engineering Indian Institute of Technology, Madras Faculty Development Program SSN College of Engineering, Chennai

More information

Ma/CS 6a Class 28: Latin Squares

Ma/CS 6a Class 28: Latin Squares Ma/CS 6a Class 28: Latin Squares By Adam Sheffer Latin Squares A Latin square is an n n array filled with n different symbols, each occurring exactly once in each row and exactly once in each column. 1

More information

Math 301: Matchings in Graphs

Math 301: Matchings in Graphs Math 301: Matchings in Graphs Mary Radcliffe 1 Definitions and Basics We begin by first recalling some basic definitions about matchings. A matching in a graph G is a set M = {e 1, e 2,..., e k } of edges

More information

Ma/CS 6a Class 28: Latin Squares

Ma/CS 6a Class 28: Latin Squares Ma/CS 6a Class 28: Latin Squares By Adam Sheffer Latin Squares A Latin square is an n n array filled with n different symbols, each occurring exactly once in each row and exactly once in each column. 1

More information

1. REPRESENTATIVE PROBLEMS

1. REPRESENTATIVE PROBLEMS 1. REPRESENTATIVE PROBLEMS stable matching five representative problems Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley Copyright 2013 Kevin Wayne http://www.cs.princeton.edu/~wayne/kleinberg-tardos

More information

Analysis of Algorithms Fall Some Representative Problems Stable Matching

Analysis of Algorithms Fall Some Representative Problems Stable Matching Analysis of Algorithms Fall 2017 Some Representative Problems Stable Matching Mohammad Ashiqur Rahman Department of Computer Science College of Engineering Tennessee Tech University Matching Med-school

More information

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

Consider a complete bipartite graph with sets A and B, each with n vertices. When DFS discovers a non-tree edge, check if its two vertices have the same color (red or black). If all non-tree edges join vertices of different color then the graph is bipartite. (Note that all tree

More information

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

An improved approximation algorithm for the stable marriage problem with one-sided ties Noname manuscript No. (will be inserted by the editor) An improved approximation algorithm for the stable marriage problem with one-sided ties Chien-Chung Huang Telikepalli Kavitha Received: date / Accepted:

More information

1. REPRESENTATIVE PROBLEMS

1. REPRESENTATIVE PROBLEMS 1. REPRESENTATIVE PROBLEMS stable matching five representative problems Special thanks to Kevin Wayne for sharing the slides Copyright 2005 Pearson-Addison Wesley Last updated on 15/9/12 下午 10:33 1. REPRESENTATIVE

More information

Bipartite Matchings. Andreas Klappenecker

Bipartite Matchings. Andreas Klappenecker Bipartite Matchings Andreas Klappenecker Matching Number m(g) = number of edges in a maximally large matching. Why is m(g) < 4? m(g) = W iff A

More information

Matching Problems. Roberto Lucchetti. Politecnico di Milano

Matching Problems. Roberto Lucchetti. Politecnico di Milano 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;

More information

Omega notation. Transitivity etc.

Omega notation. Transitivity etc. Omega notation Big-Omega: Lecture 2, Sept. 25, 2014 f () n (()) g n const cn, s.t. n n : cg() n f () n Small-omega: 0 0 0 f () n (()) g n const c, n s.t. n n : cg() n f () n 0 0 0 Intuition (works most

More information

Matching Problems. Roberto Lucchetti. Politecnico di Milano

Matching Problems. Roberto Lucchetti. Politecnico di Milano 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)

More information

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

Stable matching. Carlos Hurtado. July 5th, Department of Economics University of Illinois at Urbana-Champaign Stable matching Carlos Hurtado Department of Economics University of Illinois at Urbana-Champaign hrtdmrt2@illinois.edu July 5th, 2017 C. Hurtado (UIUC - Economics) Game Theory On the Agenda 1 Introduction

More information

1 Definitions and Things You Know

1 Definitions and Things You Know We will discuss an algorithm for finding stable matchings (not the one you re probably familiar with). The Instability Chaining Algorithm is the most similar algorithm in the literature to the one actually

More information

Chapter 7 Matchings and r-factors

Chapter 7 Matchings and r-factors Chapter 7 Matchings and r-factors Section 7.0 Introduction Suppose you have your own company and you have several job openings to fill. Further, suppose you have several candidates to fill these jobs and

More information

Combinatorial Optimisation, Problems I, Solutions Term /2015

Combinatorial Optimisation, Problems I, Solutions Term /2015 /0/205 Combinatorial Optimisation, Problems I, Solutions Term 2 204/205 Tomasz Tkocz, t (dot) tkocz (at) warwick (dot) ac (dot) uk 3. By Problem 2, any tree which is not a single vertex has at least 2

More information

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

Matchings in Graphs. Definition 3 A matching N in G is said to be stable if it does not contain a blocking pair. Matchings in Graphs Lecturer: Scribe: Prajakta Jose Mathew Meeting: 6 11th February 2010 We will be considering finite bipartite graphs. Think of one part of the vertex partition as representing men M,

More information

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

Input. A set of men M, and a set of women W. Input. A set of men M, and a set of women W. Input. A set of men M, and a set of women W. Every agent has a set of acceptable partners. Input. A set of men M, and a set of women W. Every agent has a set

More information

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

CSC2556. Lecture 5. Matching - Stable Matching - Kidney Exchange [Slides : Ariel D. Procaccia] 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.

More information

PROBLEMS OF MARRIAGE Eugene Mukhin

PROBLEMS OF MARRIAGE Eugene Mukhin PROBLEMS OF MARRIAGE Eugene Mukhin 1. The best strategy to find the best spouse. A person A is looking for a spouse, so A starts dating. After A dates the person B, A decides whether s/he wants to marry

More information

Stable Marriage with Ties and Bounded Length Preference Lists

Stable Marriage with Ties and Bounded Length Preference Lists Stable Marriage with Ties and Bounded Length Preference Lists Robert W. Irving, David F. Manlove, and Gregg O Malley Department of Computing Science, University of Glasgow, Glasgow G12 8QQ, UK. Email:

More information

Introduction to Graph Theory

Introduction to Graph Theory Introduction to Graph Theory George Voutsadakis 1 1 Mathematics and Computer Science Lake Superior State University LSSU Math 351 George Voutsadakis (LSSU) Introduction to Graph Theory August 2018 1 /

More information

Algorithm Design and Analysis

Algorithm Design and Analysis Algorithm Design and Analysis LECTURE 2 Analysis of Stable Matching Asymptotic Notation Adam Smith Stable Matching Problem Goal: Given n men and n women, find a "suitable" matching. Participants rate members

More information

6.046 Recitation 11 Handout

6.046 Recitation 11 Handout 6.046 Recitation 11 Handout May 2, 2008 1 Max Flow as a Linear Program As a reminder, a linear program is a problem that can be written as that of fulfilling an objective function and a set of constraints

More information

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

STABLE MARRIAGE PROBLEM WITH TIES AND INCOMPLETE BOUNDED LENGTH PREFERENCE LIST UNDER SOCIAL STABILITY STABLE MARRIAGE PROBLEM WITH TIES AND INCOMPLETE BOUNDED LENGTH PREFERENCE LIST UNDER SOCIAL STABILITY Ashish Shrivastava and C. Pandu Rangan Department of Computer Science and Engineering, Indian Institute

More information

COMP251: Bipartite graphs

COMP251: Bipartite graphs COMP251: Bipartite graphs Jérôme Waldispühl School of Computer Science McGill University Based on slides fom M. Langer (McGill) & P. Beame (UofW) Recap: Dijkstra s algorithm DIJKSTRA(V, E,w,s) INIT-SINGLE-SOURCE(V,s)

More information

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

Advanced Algorithms. Lecture Notes for April 5, 2016 Dynamic programming, continued (HMMs); Iterative improvement Bernard Moret Advanced Algorithms Lecture Notes for April 5, 2016 Dynamic programming, continued (HMMs); Iterative improvement Bernard Moret Dynamic Programming (continued) Finite Markov models A finite Markov model

More information

Subramanian s stable matching algorithm

Subramanian s stable matching algorithm Subramanian s stable matching algorithm Yuval Filmus November 2011 Abstract Gale and Shapley introduced the well-known stable matching problem in 1962, giving an algorithm for the problem. Subramanian

More information

1. REPRESENTATIVE PROBLEMS

1. REPRESENTATIVE PROBLEMS 1. REPRESENTATIVE PROBLEMS stable matching five representative problems Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley http://www.cs.princeton.edu/~wayne/kleinberg-tardos Last updated

More information

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

Approximation and Randomized Algorithms (ARA) Lecture 1, September 3, 2012 Approximation and Randomized Algorithms (ARA) Lecture 1, September 3, 2012 Practicalities Code: 456314.0 intermediate and optional course Previous knowledge 456305.0 Datastrukturer II (Algoritmer) Period

More information

COOPERATIVE GAME THEORY: CORE AND SHAPLEY VALUE

COOPERATIVE GAME THEORY: CORE AND SHAPLEY VALUE 1 / 54 COOPERATIVE GAME THEORY: CORE AND SHAPLEY VALUE Heinrich H. Nax hnax@ethz.ch & Bary S. R. Pradelski bpradelski@ethz.ch February 26, 2018: Lecture 2 2 / 54 What you did last week... There appear

More information

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

Matching Theory. Mihai Manea. Based on slides by Fuhito Kojima. MIT Matching Theory Mihai Manea MIT Based on slides by Fuhito Kojima. Market Design Traditional economics focuses mostly on decentralized markets. Recently, economists are helping to design economic institutions

More information

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

Two-Sided Matching. Terence Johnson. September 1, University of Notre Dame. Terence Johnson (ND) Two-Sided Matching September 1, / 37 Two-Sided Matching Terence Johnson University of Notre Dame September 1, 2011 Terence Johnson (ND) Two-Sided Matching September 1, 2011 1 / 37 One-to-One Matching: Gale-Shapley (1962) There are two finite

More information

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

CS 598RM: Algorithmic Game Theory, Spring Practice Exam Solutions CS 598RM: Algorithmic Game Theory, Spring 2017 1. Answer the following. Practice Exam Solutions Agents 1 and 2 are bargaining over how to split a dollar. Each agent simultaneously demands share he would

More information

Weights in stable marriage problems increase manipulation opportunities

Weights in stable marriage problems increase manipulation opportunities Weights in stable marriage problems increase manipulation opportunities Maria Silvia Pini 1, Francesca Rossi 1, Kristen Brent Venable 1, Toby Walsh 2 1 : Department of Pure and Applied Mathematics, University

More information

COMP251: Bipartite graphs

COMP251: Bipartite graphs COMP251: Bipartite graphs Jérôme Waldispühl School of Computer Science McGill University Based on slides fom M. Langer (McGill) & P. Beame (UofW) Recap: Dijkstra s algorithm DIJKSTRA(V, E,w,s) INIT-SINGLE-SOURCE(V,s)

More information

The Complexity of the Comparator Circuit Value Problem

The Complexity of the Comparator Circuit Value Problem The Complexity of the Comparator Circuit Value Problem Stephen Cook Joint work with Yuval Filmus and Dai Tri Man Lê Department of Computer Science University of Toronto Canada Banff 2013 1 / 28 Outline

More information

Algorithms and Data Structures (COMP 251) Midterm Solutions

Algorithms and Data Structures (COMP 251) Midterm Solutions Algorithms and Data Structures COMP 251) Midterm Solutions March 11, 2012 1. Stable Matching Problem a) Describe the input for the stable matching problem. Input: n men and n women. For each man, there

More information

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

The key is that there are two disjoint populations, and everyone in the market is on either one side or the other Econ 805 Advanced Micro Theory I Dan Quint Fall 2009 Lecture 17 So... two-sided matching markets. First off, sources. I ve updated the syllabus for the next few lectures. As always, most of the papers

More information

Ma/CS 6b Class 12: Graphs and Matrices

Ma/CS 6b Class 12: Graphs and Matrices Ma/CS 6b Class 2: Graphs and Matrices 3 3 v 5 v 4 v By Adam Sheffer Non-simple Graphs In this class we allow graphs to be nonsimple. We allow parallel edges, but not loops. Incidence Matrix Consider a

More information

Lecture 5: The Principle of Deferred Decisions. Chernoff Bounds

Lecture 5: The Principle of Deferred Decisions. Chernoff Bounds Randomized Algorithms Lecture 5: The Principle of Deferred Decisions. Chernoff Bounds Sotiris Nikoletseas Associate Professor CEID - ETY Course 2013-2014 Sotiris Nikoletseas, Associate Professor Randomized

More information

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

We set up the basic model of two-sided, one-to-one matching Econ 805 Advanced Micro Theory I Dan Quint Fall 2009 Lecture 18 To recap Tuesday: We set up the basic model of two-sided, one-to-one matching Two finite populations, call them Men and Women, who want to

More information

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

Algorithms. [Knuth, TAOCP] An algorithm is a finite, definite, effective procedure, with some input and some output. Algorithms Algorithm. [webster.com] A procedure for solving a mathematical problem (as of finding the greatest common divisor) in a finite number of steps that frequently involves repetition of an operation.

More information

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

Two-Sided Matching. Terence Johnson. December 1, University of Notre Dame. Terence Johnson (ND) Two-Sided Matching December 1, / 47 Two-Sided Matching Terence Johnson University of Notre Dame December 1, 2017 Terence Johnson (ND) Two-Sided Matching December 1, 2017 1 / 47 Markets without money What do you do when you can t use money

More information

Ma/CS 6b Class 25: Error Correcting Codes 2

Ma/CS 6b Class 25: Error Correcting Codes 2 Ma/CS 6b Class 25: Error Correcting Codes 2 By Adam Sheffer Recall: Codes V n the set of binary sequences of length n. For example, V 3 = 000,001,010,011,100,101,110,111. Codes of length n are subsets

More information

Recent Advances in Generalized Matching Theory

Recent Advances in Generalized Matching Theory Recent Advances in Generalized Matching Theory John William Hatfield Stanford Graduate School of Business Scott Duke Kominers Becker Friedman Institute, University of Chicago Matching Problems: Economics

More information

An Efficient Algorithm for Batch Stability Testing

An Efficient Algorithm for Batch Stability Testing n fficient lgorithm for atch Stability Testing John abney School of omputing lemson University jdabney@cs.clemson.edu rian. ean School of omputing lemson University bcdean@cs.clemson.edu pril 25, 2009

More information

CS320 Algorithms: Theory and Practice. Course Introduction

CS320 Algorithms: Theory and Practice. Course Introduction Course Objectives CS320 Algorithms: Theory and Practice Algorithms: Design strategies for algorithmic problem solving Course Introduction "For me, great algorithms are the poetry of computation. Just like

More information

Algorithm Design and Analysis

Algorithm Design and Analysis Algorithm Design and Analysis LECTURE 2 Analysis of Algorithms Stable matching problem Asymptotic growth Adam Smith Stable Matching Problem Unstable pair: man m and woman w are unstable if m prefers w

More information

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

What do you do when you can t use money to solve your problems? Markets without money What do you do when you can t use money to solve your problems? Matching: heterosexual men and women marrying in a small town, students matching to universities, workers to jobs where

More information

Game Theory: Lecture #5

Game Theory: Lecture #5 Game Theory: Lecture #5 Outline: Stable Matchings The Gale-Shapley Algorithm Optimality Uniqueness Stable Matchings Example: The Roommate Problem Potential Roommates: {A, B, C, D} Goal: Divide into two

More information

APPROXIMATION ALGORITHMS FOR THE STABLE MATCHING PROBLEM

APPROXIMATION ALGORITHMS FOR THE STABLE MATCHING PROBLEM APPROXIMATION ALGORITHMS FOR THE STABLE MATCHING PROBLEM by András Radnai Advisor: Zoltán Király Department of Computer Science Eötvös Loránd University Contents 1 Introduction 3 1.1 Notions and concepts..............................

More information

Matching Theory and the Allocation of Kidney Transplantations

Matching Theory and the Allocation of Kidney Transplantations University of Utrecht Bachelor Thesis Matching Theory and the Allocation of Kidney Transplantations Kim de Bakker Supervised by Dr. M. Ruijgrok 14 June 2016 Introduction Matching Theory has been around

More information

Dynamic Matching under Preferences

Dynamic Matching under Preferences Dynamic Matching under Preferences Martin Hoefer Max-Planck-Institut für Informatik mhoefer@mpi-inf.mpg.de Kolkata, 11 March 2015 How to find a stable relationship? Stable Marriage Set of Women Set of

More information

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

Stable Matching Existence, Computation, Convergence Correlated Preferences. Stable Matching. Algorithmic Game Theory. Existence, Computation, Convergence Correlated Preferences Existence, Computation, Convergence Correlated Preferences Stable Marriage Set of Women Y Set of Men X Existence, Computation, Convergence Correlated

More information

Algorithmics of Two-Sided Matching Problems

Algorithmics of Two-Sided Matching Problems Algorithmics of Two-Sided Matching Problems David J. Abraham Submitted for the degree of Master of Science, Department of Computing Science, University of Glasgow, October, 2003 c 2003 David J. Abraham

More information

EXAMENSARBETEN I MATEMATIK

EXAMENSARBETEN I MATEMATIK EXAMENSARBETEN I MATEMATIK MATEMATISKA INSTITUTIONEN, STOCKHOLMS UNIVERSITET Hall s Marriage Theorem av Matilda Kapro 2006 - No 9 MATEMATISKA INSTITUTIONEN, STOCKHOLMS UNIVERSITET, 10691 STOCKHOLM Hall

More information

ACO Comprehensive Exam March 17 and 18, Computability, Complexity and Algorithms

ACO Comprehensive Exam March 17 and 18, Computability, Complexity and Algorithms 1. Computability, Complexity and Algorithms (a) Let G(V, E) be an undirected unweighted graph. Let C V be a vertex cover of G. Argue that V \ C is an independent set of G. (b) Minimum cardinality vertex

More information

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

Matching. Terence Johnson. April 17, University of Notre Dame. Terence Johnson (ND) Matching April 17, / 41 Matching Terence Johnson University of Notre Dame April 17, 2018 Terence Johnson (ND) Matching April 17, 2018 1 / 41 Markets without money What do you do when you can t use money to solve your problems?

More information

SEQUENTIAL ENTRY IN ONE-TO-ONE MATCHING MARKETS

SEQUENTIAL ENTRY IN ONE-TO-ONE MATCHING MARKETS REVISTA DE LA UNIÓN MATEMÁTICA ARGENTINA Vol. 54, No. 2, 2013, Pages 1 14 Published online: December 21, 2013 SEQUENTIAL ENTRY IN ONE-TO-ONE MATCHING MARKETS BEATRIZ MILLÁN Abstract. We study in one-to-one

More information

CPSC 320 Sample Solution, Reductions and Resident Matching: A Residentectomy

CPSC 320 Sample Solution, Reductions and Resident Matching: A Residentectomy CPSC 320 Sample Solution, Reductions and Resident Matching: A Residentectomy August 25, 2017 A group of residents each needs a residency in some hospital. A group of hospitals each need some number (one

More information

M-saturated M={ } M-unsaturated. Perfect Matching. Matchings

M-saturated M={ } M-unsaturated. Perfect Matching. Matchings Matchings A matching M of a graph G = (V, E) is a set of edges, no two of which are incident to a common vertex. M-saturated M={ } M-unsaturated Perfect Matching 1 M-alternating path M not M M not M M

More information

CS711008Z Algorithm Design and Analysis

CS711008Z Algorithm Design and Analysis CS711008Z Algorithm Design and Analysis Lecture 1 Introduction and some representative problems 1 Dongbo Bu Institute of Computing Technology Chinese Academy of Sciences, Beijing, China 1 The slides are

More information

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

1. STABLE MATCHING. stable matching problem Gale Shapley algorithm hospital optimality context 1. STABLE MATCHING stable matching problem Gale Shapley algorithm hospital optimality context Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley http://www.cs.princeton.edu/~wayne/kleinberg-tardos

More information

List of Theorems. Mat 416, Introduction to Graph Theory. Theorem 1 The numbers R(p, q) exist and for p, q 2,

List of Theorems. Mat 416, Introduction to Graph Theory. Theorem 1 The numbers R(p, q) exist and for p, q 2, List of Theorems Mat 416, Introduction to Graph Theory 1. Ramsey s Theorem for graphs 8.3.11. Theorem 1 The numbers R(p, q) exist and for p, q 2, R(p, q) R(p 1, q) + R(p, q 1). If both summands on the

More information

Breadth-First Search of Graphs

Breadth-First Search of Graphs Breadth-First Search of Graphs Analysis of Algorithms Prepared by John Reif, Ph.D. Distinguished Professor of Computer Science Duke University Applications of Breadth-First Search of Graphs a) Single Source

More information

Applying Predicate Detection to the Constrained Optimization Problems

Applying Predicate Detection to the Constrained Optimization Problems Applying Predicate Detection to the Constrained Optimization Problems Vijay K. Garg, The University of Texas at Austin, Department of Electrical and Computer Engineering, Austin, TX 78712, USA arxiv:1812.10431v1

More information

1 The Arthur-Merlin Story

1 The Arthur-Merlin Story Comp 260: Advanced Algorithms Tufts University, Spring 2018 Prof. Lenore Cowen Scribe: Elias Marcopoulos Lecture 1a: Bipartite Perfect Matching 1 The Arthur-Merlin Story In the land ruled by the legendary

More information

The Complexity and Proof Complexity of the Comparator Circuit Value Problem

The Complexity and Proof Complexity of the Comparator Circuit Value Problem The Complexity and Proof Complexity of the Comparator Circuit Value Problem Stephen Cook Joint work with Yuval Filmus, Dai Tri Man Lê, and Yuli Ye Department of Computer Science University of Toronto Canada

More information

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:

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: CS70 Discrete Mathematics and Probability Theory, Fall 2018 Midterm 1 8:00-10:00pm, 24 September Your First Name: SIGN Your Name: Your Last Name: Your Exam Room: Name of Person Sitting on Your Left: Name

More information

Marriage Matching: A Conjecture of Donald Knuth

Marriage Matching: A Conjecture of Donald Knuth University of Connecticut DigitalCommons@UConn Economics Working Papers Department of Economics May 007 Marriage Matching: A Conjecture of Donald Knuth Vicki Knoblauch University of Connecticut Follow

More information

Graph Theory. Thomas Bloom. February 6, 2015

Graph Theory. Thomas Bloom. February 6, 2015 Graph Theory Thomas Bloom February 6, 2015 1 Lecture 1 Introduction A graph (for the purposes of these lectures) is a finite set of vertices, some of which are connected by a single edge. Most importantly,

More information

Math 775 Homework 1. Austin Mohr. February 9, 2011

Math 775 Homework 1. Austin Mohr. February 9, 2011 Math 775 Homework 1 Austin Mohr February 9, 2011 Problem 1 Suppose sets S 1, S 2,..., S n contain, respectively, 2, 3,..., n 1 elements. Proposition 1. The number of SDR s is at least 2 n, and this bound

More information

Weights in Stable Marriage Problems Increase Manipulation Opportunities

Weights in Stable Marriage Problems Increase Manipulation Opportunities Weights in Stable Marriage Problems Increase Manipulation Opportunities Maria Silvia Pini mpini@math.unipd.it Francesca Rossi frossi@math.unipd.it Toby Walsh NICTA and UNSW Sydney, Australia toby.walsh@nicta.com.au

More information

A short course on matching theory, ECNU Shanghai, July 2011.

A short course on matching theory, ECNU Shanghai, July 2011. A short course on matching theory, ECNU Shanghai, July 2011. Sergey Norin LECTURE 3 Tight cuts, bricks and braces. 3.1. Outline of Lecture Ear decomposition of bipartite graphs. Tight cut decomposition.

More information

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

The Blocking Lemma and Strategy-Proofness in Many-to-Many Matchings The Blocking Lemma and Strategy-Proofness in Many-to-Many Matchings Zhenhua Jiao Institute for Advanced Research and School of Economics Shanghai University of Finance and Economics Shanghai, 200433, China

More information

What Matchings Can be Stable? Refutability in Matching Theory

What Matchings Can be Stable? Refutability in Matching Theory allis/thomson Conference What Matchings Can be Stable? Refutability in Matching Theory Federico Echenique California Institute of Technology April 21-22, 2006 Motivation Wallis/Thomson Conference Standard

More information

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

A (ln 4)-Approximation Algorithm for Maximum Stable Matching with One-Sided Ties and Incomplete Lists A ln 4)-Approximation Algorithm for Maximum Stable Matching with One-Sided Ties and Incomplete Lists Chi-Kit Lam C. Gregory Plaxton April 2018 Abstract We study the problem of finding large weakly stable

More information

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

1.1 First Problem: Stable Matching. Six medical students and four hospitals. Student Preferences. s6 h3 h1 h4 h2. Stable Matching Problem //0 hapter Introduction: Some Representative Problems Slides by Kevin ayne. opyright 00 Pearson-ddison esley. ll rights reserved.. First Problem: Stable Matching Six medical students and four hospitals

More information

Matching Residents to Hospitals

Matching Residents to Hospitals Midterm Review Matching Residents to Hospitals Goal. Given a set of preferences among hospitals and medical school students, design a self-reinforcing admissions process. Unstable pair: applicant x and

More information

CS 70 Discrete Mathematics and Probability Theory Fall 2016 Seshia and Walrand Midterm 1 Solutions

CS 70 Discrete Mathematics and Probability Theory Fall 2016 Seshia and Walrand Midterm 1 Solutions CS 70 Discrete Mathematics and Probability Theory Fall 2016 Seshia and Walrand Midterm 1 Solutions PRINT Your Name: Answer: Oski Bear SIGN Your Name: PRINT Your Student ID: CIRCLE your exam room: Dwinelle

More information

Efficient Algorithms for Bipartite Matching Problems with Preferences

Efficient Algorithms for Bipartite Matching Problems with Preferences Efficient Algorithms for Bipartite Matching Problems with Preferences by Colin Thiam Soon Sng A thesis submitted to the Faculty of Information and Mathematical Sciences at the University of Glasgow for

More information

Graph G = (V, E). V ={vertices}, E={edges}. V={a,b,c,d,e,f,g,h,k} E={(a,b),(a,g),( a,h),(a,k),(b,c),(b,k),...,(h,k)}

Graph G = (V, E). V ={vertices}, E={edges}. V={a,b,c,d,e,f,g,h,k} E={(a,b),(a,g),( a,h),(a,k),(b,c),(b,k),...,(h,k)} Graph Theory Graph G = (V, E). V ={vertices}, E={edges}. a b c h k d g f e V={a,b,c,d,e,f,g,h,k} E={(a,b),(a,g),( a,h),(a,k),(b,c),(b,k),...,(h,k)} E =16. Digraph D = (V, A). V ={vertices}, E={edges}.

More information

Two-sided Matching Theory

Two-sided Matching Theory Treball nal de grau GRAU DE MATEMÀTIQUES Facultat de Matemàtiques Universitat de Barcelona Two-sided Matching Theory Autor: Helena Fàbregas Vàzquez Director: Dra. Marina Núnez Oliva Realitzat a: Departament

More information

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

Improving Man-Optimal Stable Matchings by Minimum Change of Preference Lists Algorithms 2013, 6, 371-382; doi:10.3390/a6020371 Article OPEN ACCESS algorithms ISSN 1999-4893 www.mdpi.com/journal/algorithms Improving Man-Optimal Stable Matchings by Minimum Change of Preference Lists

More information

arxiv: v1 [cs.gt] 11 Jul 2016

arxiv: v1 [cs.gt] 11 Jul 2016 Stable Matching with Uncertain Linear Preferences Haris Aziz 12, Péter Biró 3, Serge Gaspers 21, Ronald de Haan 4, Nicholas Mattei 12, and Baharak Rastegari 5 arxiv:1607.02917v1 [cs.gt] 11 Jul 2016 1 Data61

More information

Lecture 2: Just married

Lecture 2: Just married COMP36111: Advanced Algorithms I Lecture 2: Just married Ian Pratt-Hartmann Room KB2.38: email: ipratt@cs.man.ac.uk 2017 18 Outline Matching Flow networks Third-year projects The stable marriage problem

More information

A Latin Square of order n is an n n array of n symbols where each symbol occurs once in each row and column. For example,

A Latin Square of order n is an n n array of n symbols where each symbol occurs once in each row and column. For example, 1 Latin Squares A Latin Square of order n is an n n array of n symbols where each symbol occurs once in each row and column. For example, A B C D E B C A E D C D E A B D E B C A E A D B C is a Latin square

More information

Recall: Matchings. Examples. K n,m, K n, Petersen graph, Q k ; graphs without perfect matching

Recall: Matchings. Examples. K n,m, K n, Petersen graph, Q k ; graphs without perfect matching Recall: Matchings A matching is a set of (non-loop) edges with no shared endpoints. The vertices incident to an edge of a matching M are saturated by M, the others are unsaturated. A perfect matching of

More information

Stable Matching Problems with Exchange Restrictions

Stable Matching Problems with Exchange Restrictions Stable Matching Problems with Exchange Restrictions Robert W. Irving Department of Computing Science, University of Glasgow, Glasgow G12 8QQ, UK. email: rwi@dcs.gla.ac.uk telephone: 44-141-330-4478 fax:

More information

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

Matching: The Theory. Muriel Niederle Stanford and NBER. September 26, 2011 Matching: The Theory Muriel Niederle Stanford and NBER September 26, 2011 Studying and doing Market Economics In Jonathan Strange and Mr. Norrel, Susanna Clarke describes an England around 1800, with magic

More information

Algorithm Design and Analysis

Algorithm Design and Analysis Algorithm Design and Analysis LETURE 2 Network Flow Finish bipartite matching apacity-scaling algorithm Adam Smith 0//0 A. Smith; based on slides by E. Demaine,. Leiserson, S. Raskhodnikova, K. Wayne Marriage

More information

Notes on Graph Theory

Notes on Graph Theory Notes on Graph Theory Maris Ozols June 8, 2010 Contents 0.1 Berge s Lemma............................................ 2 0.2 König s Theorem........................................... 3 0.3 Hall s Theorem............................................

More information

Planar Graphs (1) Planar Graphs (3) Planar Graphs (2) Planar Graphs (4)

Planar Graphs (1) Planar Graphs (3) Planar Graphs (2) Planar Graphs (4) S-72.2420/T-79.5203 Planarity; Edges and Cycles 1 Planar Graphs (1) Topological graph theory, broadly conceived, is the study of graph layouts. Contemporary applications include circuit layouts on silicon

More information

Chapter 0: Preliminaries

Chapter 0: Preliminaries Chapter 0: Preliminaries Adam Sheffer March 28, 2016 1 Notation This chapter briefly surveys some basic concepts and tools that we will use in this class. Graduate students and some undergrads would probably

More information

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

Matching: The Theory. Muriel Niederle Stanford and NBER. September 26, 2011 Matching: The Theory Muriel Niederle Stanford and NBER September 26, 2011 Studying and doing Market Economics In Jonathan Strange and Mr. Norrel, Susanna Clarke describes an England around 1800, with magic

More information

Incentives in Large Random Two-Sided Markets

Incentives in Large Random Two-Sided Markets Incentives in Large Random Two-Sided Markets Nicole Immorlica Mohammad Mahdian November 17, 2008 Abstract Many centralized two-sided markets form a matching between participants by running a stable matching

More information

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

THREE ESSAYS ON GAME THEORY. Demet Yilmazkuday. Dissertation. Submitted to the Faculty of the. Graduate School of Vanderbilt University THREE ESSAYS ON GAME THEORY By Demet Yilmazkuday Dissertation Submitted to the Faculty of the Graduate School of Vanderbilt University in partial ful llment of the requirements for the degree of DOCTOR

More information