3/24/03Tucker, Section 4.31 Tucker, Applied Combinatorics, Sec. 4.3, prepared by Jo E-M Bipartite GraphMatching Some Definitions X-Matching Maximal Matching.

Slides:



Advertisements
Similar presentations
Min-Max Relations, Hall’s Theorem, and Matching-Algorithms Graphs & Algorithms Lecture 5 TexPoint fonts used in EMF. Read the TexPoint manual before you.
Advertisements

Connectivity - Menger’s Theorem Graphs & Algorithms Lecture 3.
Bipartite Matching, Extremal Problems, Matrix Tree Theorem.
Max Flow Problem Given network N=(V,A), two nodes s,t of V, and capacities on the arcs: uij is the capacity on arc (i,j). Find non-negative flow fij for.
Totally Unimodular Matrices
3/17/2003Tucker, Applied Combinatorics Section 4.2a 1 Network Flows Michael Duquette & Whitney Sherman Tucker, Applied Combinatorics, Section 4.2a, Group.
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 8 Network models.
3.3 Spanning Trees Tucker, Applied Combinatorics, Section 3.3, by Patti Bodkin and Tamsen Hunter.
Applied Combinatorics, 4th Ed. Alan Tucker
Midterm <  70 3.
MAXIMUM FLOW Max-Flow Min-Cut Theorem (Ford Fukerson’s Algorithm)
4/5/05Tucker, Sec Applied Combinatorics, 4rth Ed. Alan Tucker Section 4.3 Graph Models Prepared by Jo Ellis-Monaghan.
Introduction to Approximation Algorithms Lecture 12: Mar 1.
HW2 Solutions. Problem 1 Construct a bipartite graph where, every family represents a vertex in one partition, and table represents a vertex in another.
04/12/2005Tucker, Sec Applied Combinatorics, 4 th Ed. Alan Tucker Section 4.4 Algorithmic Matching Prepared by Joshua Schoenly and Kathleen McNamara.
CSE 421 Algorithms Richard Anderson Lecture 22 Network Flow.
CS138A Maximum Bipartite Matching Peter Schröder.
Applied Combinatorics, 4th Ed. Alan Tucker
Section 4.2 Network Flows By Christina Touhey. The flow out of a equals the flow into z. Algorithm 1.Make vertex a: (0, ). 2.Scan the first vertex and.
02/01/05Tucker, Sec Applied Combinatorics, 4th Ed. Alan Tucker Section 1.3 Edge Counting Prepared by Joshua Schoenly and Kathleen McNamara.
Tucker, Applied Combinatorics, Section 1.4, prepared by Patti Bodkin
1/25/2005Tucker, Sec Applied Combinatorics, 4th Ed. Alan Tucker Section 1.2 Isomorphism Prepared by Jo Ellis-Monaghan.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 23 Instructor: Paul Beame.
1 Bipartite Matching Lecture 3: Jan Bipartite Matching A graph is bipartite if its vertex set can be partitioned into two subsets A and B so that.
3/29/05Tucker, Sec Applied Combinatorics, 4th Ed. Alan Tucker Section 4.2 Minimal Spanning Trees Prepared by Amanda Dargie and Michele Fretta.
1/13/03Tucker, Applied Combinatorics, Sec Tucker, Applied Combinatorics, Sec. 1.1, Jo E-M A Graph is a set of vertices (dots) with edges (lines)
D1: Matchings.
1/25/05Tucker, Sec.1.11 Applied Combinatorics, 4th Ed. Alan Tucker Section 1.1 Graph Models Prepared by Jo Ellis-Monaghan.
1/22/03Tucker, Applied Combinatorics, Section EDGE COUNTING TUCKER, APPLIED COMBINATORICS, SECTION 1.3, GROUP B Michael Duquette & Amanda Dargie.
 Jim has six children.  Chris fights with Bob,Faye, and Eve all the time; Eve fights (besides with Chris) with Al and Di all the time; and Al and Bob.
Hungarian Algorithm Vida Movahedi Elderlab, York University June 2007.
Theory of Computing Lecture 13 MAS 714 Hartmut Klauck.
5.8 Graph Matching  Example: Set of worker assign to a set of task  Four tasks are to be assigned to four workers.  – Worker 1 is qualified to do tasks.
10.3 The Main Theorem. Theorem (The Marriage Theorem) A bipartite graph has a perfect matching if and only if IAI = IBI and for any subset of (say)
Max Flow – Min Cut Problem. Directed Graph Applications Shortest Path Problem (Shortest path from one point to another) Max Flow problems (Maximum material.
1 WEEK 11 Graphs III Network Flow Problems A Simple Maximum-Flow Algorithm Izmir University of Economics.
Bipartite Matching. Unweighted Bipartite Matching.
5.8 Graph Matching  Example: Set of worker assign to a set of task  Four tasks are to be assigned to four workers.  – Worker 1 is qualified to do tasks.
and 6.855J March 6, 2003 Maximum Flows 2. 2 Network Reliability u Communication Network u What is the maximum number of arc disjoint paths from.
Graph Algorithms Maximum Flow - Best algorithms [Adapted from R.Solis-Oba]
8.4 Closures of Relations Definition: The closure of a relation R with respect to property P is the relation obtained by adding the minimum number of.
Introduction to Graph Theory
12. Lecture WS 2012/13Bioinformatics III1 V12 Menger’s theorem Borrowing terminology from operations research consider certain primal-dual pairs of optimization.
Iterative Improvement for Domain-Specific Problems Lecturer: Jing Liu Homepage:
Maximum Flow - Anil Kishore Graph Theory Basics. Prerequisites What is a Graph Directed, Weighted graphs How to traverse a graph using – Depth First Search.
Algorithms and Networks
Lecture 16 Bipartite Matching
Maximum Flow - Best algorithms
Lectures on Network Flows
Richard Anderson Lecture 23 Network Flow
Lecture 22 Network Flow, Part 2
Tucker, Applied Combinatorics, Sec 2.4
Bipartite Matching and Other Graph Algorithms
The Taxi Scheduling Problem
3.3 Applications of Maximum Flow and Minimum Cut
GreedyMaxCut a b w c d e 1.
R. Johnsonbaugh Discrete Mathematics 5th edition, 2001
Vertex Covers, Matchings, and Independent Sets
Linear Programming Duality, Reductions, and Bipartite Matching
Richard Anderson Lecture 21 Network Flow
Problem Solving 4.
Max Flow Min Cut, Bipartite Matching Yin Tat Lee
5.7.2 A Maximum flow algorithm
Integer multicommodity flow in series-parallel graphs
Lecture 21 Network Flow, Part 1
Applied Combinatorics, 4th Ed. Alan Tucker
Lecture 22 Network Flow, Part 2
Special Graphs: Modeling and Algorithms
Richard Anderson Lecture 22 Network Flow
Vertex Covers and Matchings
Presentation transcript:

3/24/03Tucker, Section 4.31 Tucker, Applied Combinatorics, Sec. 4.3, prepared by Jo E-M Bipartite GraphMatching Some Definitions X-Matching Maximal Matching A set of independent edges Edges only between X and Y X Y All vertices in X are used The largest possible number of edges Note: an X-matching is necessarily maximal.

3/24/03Tucker, Section 4.32 More Definitions Edge Cover A set of vertices so that every edge is incident to at least one of them R(A) Range of a set A of vertices R(A) is the set of vertices adjacent to at least one vertex in A A = red, R(A) = blue

3/24/03Tucker, Section 4.33 Matching Network z a All edges capacity 1 All edges infinite capacity By converting the bipartite graph to a network, we can use network flow techniques to find matchings.

3/24/03Tucker, Section 4.34 Matching Network z a All edges capacity 1 All edges infinite capacity Matchinga – z flow

3/24/03Tucker, Section 4.35 Matching Network z a All edges capacity 1 All edges infinite capacity X – matching saturation at a

3/24/03Tucker, Section 4.36 Matching Network Maximal matching Maximal flow z a All edges capacity 1 All edges infinite capacity

3/24/03Tucker, Section 4.37 Matching Network Edge cover Finite a – z cut z a All edges capacity 1 All edges infinite capacity A = red on left, B = red on right S = red vertices, an edge cover P = a, black on left, red on right P = z, red on left, black on right Edge cover means that all edges have at least one red endpoint: P to P, to, to P. Thus only uncovered edges, would go from P to.

3/24/03Tucker, Section 4.38 Matching Network Not an edge cover Infinite a – z cut z a All edges capacity 1 All edges infinite capacity A = red on left, B = red on right S = red vertices, NOT an edge cover P = a, black on left, red on right P = z, red on left, black on right An infinite cut would go through an edge with two black endpoints, which corresponds to an uncovered edge.

3/24/03Tucker, Section 4.39 Theorem 1 Recall Corollary 3a from Section 4.2: The size of a maximal flow is equal to the capacity of a minimal cut. Since…. Then, The size of a maximal matching is equal to the size of a minimal edge cover. Edge cover Finite a – z cut Matchinga – z flow and

3/24/03Tucker, Section Finding Matchings z a All edges capacity 1 All edges infinite capacity Take any matching, convert to a network, and then use the augmenting flow algorithm to find a maximal flow, hence a maximal matching.

3/24/03Tucker, Section An easy way to think about it 1.Start with any matching. 2.From an unmatched vertex in X, alternate between nonmatching and matching edges until you hit an unmatched vertex in Y. 3.Then switch between the nonmatching and matching edges along to path to pick up one more matching edge. 4.Continue this until no unmatched vertex in X leads to an unmatched vertex in Y.

3/24/03Tucker, Section Example Start with any matching Find an alternating path Start at an unmatched vertex in X End at an unmatched vertex in Y Switch matching to nonmatching and vice versa A maximal matching!

3/24/03Tucker, Section Theorem 2 Hall’s Matching Theorem A bipartite graph has an X-matching if and only if for every subset A of X, |R(A)| is greater than or equal to |A|. X – matching True for all A in X

3/24/03Tucker, Section Proof of Hall’s Matching Theorem “ ”: An X-matching implies that for every subset A of X, |R(A)| is greater than or equal to |A|. X – matching For any A, the X – matching gives at least one vertex in R(A) for every vertex in A.

3/24/03Tucker, Section Proof of Hall’s Matching Theorem “ ”: If |R(A)| is greater than or equal to |A| for every subset A of X, then there is an X-matching. First note that if M is a maximal matching, then. Taking A = X, we have that since the range of X is contained in Y. Thus. Also, by Theorem 1, if S is a minimal edge cover, then. Note that if, then M must be an X – matching. Thus, it suffices to show that for all edge covers S.

3/24/03Tucker, Section Since,. Now let A be the vertices in X but not in S, so that. Thus,. Now, S is an edge-cover, so if it doesn’t contain on the X side, it must contain all the vertices a goes to on the Y side in order to cover the edges in between. Thus, so. Thus, But, hence, so as needed. /// Proof of Hall’s Matching Theorem “ ”: Continued… we need to show that for all edge covers S.

3/24/03Tucker, Section Example To Try Make up a random bipartite graph with about 20 vertices total. Swap with someone, and then both of you find an X- matching