1 Bipartite Matching Polytope, Stable Matching Polytope x1 x2 x3 Lecture 10: Feb 15.

Slides:



Advertisements
Similar presentations
Iterative Rounding and Iterative Relaxation
Advertisements

The Primal-Dual Method: Steiner Forest TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A A AA A A A AA A A.
Piyush Kumar (Lecture 3: Stable Marriage) Welcome to COT5405.
Great Theoretical Ideas in Computer Science
Min-Max Relations, Hall’s Theorem, and Matching-Algorithms Graphs & Algorithms Lecture 5 TexPoint fonts used in EMF. Read the TexPoint manual before you.
Tutorial 5 of CSCI2110 Eulerian Path & Hamiltonian Cycle Tutor: Zhou Hong ( 周宏 )
C&O 355 Lecture 23 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A A A A A A A A.
1 LP Duality Lecture 13: Feb Min-Max Theorems In bipartite graph, Maximum matching = Minimum Vertex Cover In every graph, Maximum Flow = Minimum.
1 Matching Polytope x1 x2 x3 Lecture 12: Feb 22 x1 x2 x3.
Bipartite Matching, Extremal Problems, Matrix Tree Theorem.
Approximation Algorithms Chapter 14: Rounding Applied to Set Cover.
C&O 355 Mathematical Programming Fall 2010 Lecture 22 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A.
Totally Unimodular Matrices
Great Theoretical Ideas in Computer Science for Some.
Approximation, Chance and Networks Lecture Notes BISS 2005, Bertinoro March Alessandro Panconesi University La Sapienza of Rome.
C&O 355 Lecture 20 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A A A A A A A A.
Great Theoretical Ideas in Computer Science.
1 Discrete Structures & Algorithms Graphs and Trees: II EECE 320.
Introduction to Approximation Algorithms Lecture 12: Mar 1.
Totally Unimodular Matrices Lecture 11: Feb 23 Simplex Algorithm Elliposid Algorithm.
1 Introduction to Linear and Integer Programming Lecture 9: Feb 14.
Introduction to Linear and Integer Programming Lecture 7: Feb 1.
Approximation Algorithm: Iterative Rounding Lecture 15: March 9.
Perfect Graphs Lecture 23: Apr 17. Hard Optimization Problems Independent set Clique Colouring Clique cover Hard to approximate within a factor of coding.
Lecture 4 CSE 331 Sep 9, Blog posts for lectures Starts from today See Sep 8 post on the blog.
Approximation Algorithms
Matching Polytope, Stable Matching Polytope Lecture 8: Feb 2 x1 x2 x3 x1 x2 x3.
Job Scheduling Lecture 19: March 19. Job Scheduling: Unrelated Multiple Machines There are n jobs, each job has: a processing time p(i,j) (the time to.
1 Introduction to Approximation Algorithms Lecture 15: Mar 5.
1 Spanning Tree Polytope x1 x2 x3 Lecture 11: Feb 21.
C&O 355 Mathematical Programming Fall 2010 Lecture 17 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A.
Chapter 10: Iterative Improvement Simplex Method The Design and Analysis of Algorithms.
C&O 355 Lecture 2 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A.
The Stable Marriage Problem
CSE, IIT KGP Matchings and Factors. CSE, IIT KGP Matchings A matching of size k in a graph G is a set of k pairwise disjoint edges.A matching of size.
C&O 355 Mathematical Programming Fall 2010 Lecture 19 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A.
Approximating Minimum Bounded Degree Spanning Tree (MBDST) Mohit Singh and Lap Chi Lau “Approximating Minimum Bounded DegreeApproximating Minimum Bounded.
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
Theory of Computing Lecture 13 MAS 714 Hartmut Klauck.
Great Theoretical Ideas in Computer Science.
All Pair Shortest Path IOI/ACM ICPC Training June 2004.
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.
CPSC 536N Sparse Approximations Winter 2013 Lecture 1 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAAAAAAA.
Matching Lecture 19: Nov 23.
Graph Algorithms Maximum Flow - Best algorithms [Adapted from R.Solis-Oba]
Introduction to Graph Theory
Iterative Rounding in Graph Connectivity Problems Kamal Jain ex- Georgia Techie Microsoft Research Some slides borrowed from Lap Chi Lau.
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 ( 陈宁 )
C&O 355 Lecture 19 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A A A A A A A A.
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,
Approximation Algorithms based on linear programming.
מתמטיקה בדידה Discrete Math Lecture 12 1 TexPoint fonts used in EMF.
IOI/ACM ICPC Training 4 June 2005.
Matching Boys Girls A B C D E
Lap Chi Lau we will only use slides 4 to 19
Bipartite Matching Lecture 8: Oct 7.
Topics in Algorithms Lap Chi Lau.
Great Theoretical Ideas in Computer Science
Chapter 5. Optimal Matchings
Discrete Mathematics for Computer Science
S. Raskhodnikova; based on slides by K. Wayne
Computational Processes II
Problem Solving 4.
Computational Processes II
Computational Processes
Derived Variables A derived variable v is simply a function
Week 10 - Wednesday CS221.
Presentation transcript:

1 Bipartite Matching Polytope, Stable Matching Polytope x1 x2 x3 Lecture 10: Feb 15

2 Perfect Matching

3 x1 x3x2 x1 x2 x3 (0.5,0.5,0.5) Integrality Gap Example

4 Good Relaxation Every vertex could be the unique optimal solution for some objective function. So, we need every vertex to be integral. For every objective function, there is a vertex achieving optimal value. So, it suffices if every vertex is integral. Goal: Every vertex is integral!

5 Black Box LP-solver Problem LP-formulationVertex solution Solution Polynomial time integral

6 Vertex Solutions An optimal vertex solution can be found in polynomial time.

7 Prove: for a bipartite graph, a vertex solution corresponds to an integral solution. Bipartite Perfect Matching

8 Pick a fractional edge and keep walking. Prove: a vertex solution corresponds to an integral solution. Because of degree constraints, every edge in the cycle is fractional. Partition into two matchings because the cycle is even. Bipartite Perfect Matching

9 Since every edge in the cycle is fractional, we can increase every edge a little bit, or decrease every edge a little bit. Degree constraints are still satisfied in two new matchings. Original matching is the average! Fact: A vertex solution is not a convex combination of some other points. CONTRADICTION! Bipartite Perfect Matching

10 Boys Girls 1: CBEAD A : : ABECD B : : DCBAE C : : ACDBE D : : ABDEC E : Stable Matching The Stable Marriage 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.

11 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?

12 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.

13 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? Does a stable matching always exists?

14 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

15 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

16 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

17 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 A stable matching! Day 4

18 Gale,Shapley [1962]: This procedure always find a stable matching in the stable marriage problem. Proof of Gale-Shapley Theorem 1.The procedure will terminate. 2.Everyone is married. 3.No unstable pairs. The stable matching algorithm is boy-optimal That is, among all possible stable matching, boys get the best possible partners simultaneously.

19 Bipartite Stable Matching Input: N men, N women, each has a preference list. Goal: Find a matching with no unstable pair. How to formulate into linear program?

20 Bipartite Stable Matching Write if v prefers f to e. Write iffor some v

21 Bipartite Stable Matching CLAIM: Proof:

22 Bipartite Stable Matching Focus on the edges with positive value, call them E +. For each vertex, let e(v) be the maximum element of CLAIM: Let e(v) = v,w e(v) is the minimum element of

23 Bipartite Stable Matching For each vertex, let e(v) be the maximum element of U W e(v) defines a matching for v in U e(w) defines a matching for w in W CLAIM: Let e(v) = v,w e(v) is the minimum element of

24 Bipartite Stable Matching U W At bottom, blue is maximum, red is minimum. At top, blue is minimum, red is maximum. U W construct convex combination.

25 Bipartite Stable Matching At bottom, blue is maximum, red is minimum. At top, blue is minimum, red is maximum. U W Degree constraints still satisfied. Bottom decreases, top increases, equal! construct convex combination!

26 Weighted Stable Matching Polynomial time algorithm from LP. Can work on incomplete graph. Can determine if certain combination is possible. [Vande Vate][Rothblum]

27 Basic Solution Tight inequalities: inequalities achieved as equalities Basic solution: unique solution of n linearly independent tight inequalities

28 Bipartite Perfect Matching Goal: show that any basic solution is an integral solution. Bipartite perfect matching, 2n vertices.Minimal counterexample.

29 Maximum Bipartite Matchings An edge of 0, delete it. An edge of 1, reduce it. So, each vertex has degree 2, and there are at least 2n edges. How many tight inequalities?At most 2n How many linearly independent tight inequalities?At most 2n-1 Basic solution: unique solution of 2n linearly independent tight inequalities CONTRA!