3.2 Matchings and Factors: Algorithms and Applications This copyrighted material is taken from Introduction to Graph Theory, 2 nd Ed., by Doug West; and.

Slides:



Advertisements
Similar presentations
Great Theoretical Ideas in Computer Science
Advertisements

Min-Max Relations, Hall’s Theorem, and Matching-Algorithms Graphs & Algorithms Lecture 5 TexPoint fonts used in EMF. Read the TexPoint manual before you.
Bipartite Matching, Extremal Problems, Matrix Tree Theorem.
1 Discrete Structures & Algorithms Graphs and Trees: III EECE 320.
Graph Matching prepared and Instructed by Shmuel Wimer Eng. Faculty, Bar-Ilan University March 2014Graph Matching1.
Augmenting path algorithm Two theorems to recall: Theorem (Berge). A matching M in a graph G is a maximum matching in G iff G has no M-augmenting.
Combinatorial Algorithms
(Algorithms in Bipartite Graphs). Introduction Algorithms in unweighted bipartite graph (Yehong & Gordon) Maximum matching A simple algorithm Hopcroft-Karp.
1 Weighted Bipartite Matching Lecture 4: Jan Weighted Bipartite Matching Given a weighted bipartite graph, find a matching with maximum total weight.
1 Discrete Structures & Algorithms Graphs and Trees: II EECE 320.
Mycielski’s Construction Mycielski’s Construction: From a simple graph G, Mycielski’s Construction produces a simple graph G’ containing G. Beginning with.
Totally Unimodular Matrices Lecture 11: Feb 23 Simplex Algorithm Elliposid Algorithm.
Jim Anderson Comp 122, Fall 2003 Single-source SPs - 1 Chapter 24: Single-Source Shortest Paths Given: A single source vertex in a weighted, directed graph.
Matchings Matching: A matching in a graph G is a set of non-loop edges with no shared endpoints.
Graph Theory Ming-Jer Tsai. Outline Graph Graph Theory Grades Q & A.
Definition Hamiltonian graph: A graph with a spanning cycle (also called a Hamiltonian cycle). Hamiltonian graph Hamiltonian cycle.
Great Theoretical Ideas in Computer Science.
Maximum Bipartite Matching
Matchings Matching: A matching in a graph G is a set of non-loop edges with no shared endpoints Maximal Matching: A maximal matching in a graph is a matching.
Greedy Algorithms Reading Material: Chapter 8 (Except Section 8.5)
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.
Lecture 11. Matching A set of edges which do not share a vertex is a matching. Application: Wireless Networks may consist of nodes with single radios,
Greedy Algorithms Like dynamic programming algorithms, greedy algorithms are usually designed to solve optimization problems Unlike dynamic programming.
Lecture 11. Matching A set of edges which do not share a vertex is a matching. Application: Wireless Networks may consist of nodes with single radios,
Maximum Bipartite Matching In a graph G, if no M-augmenting path exists, then M is a maximum matching in G. Idea: Iteratively seek augmenting paths to.
C&O 355 Lecture 2 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A.
Jim Anderson Comp 122, Fall 2003 Single-source SPs - 1 Chapter 24: Single-Source Shortest Paths Given: A single source vertex in a weighted, directed graph.
Lecture 12-2: Introduction to Computer Algorithms beyond Search & Sort.
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.
Hungarian Algorithm Vida Movahedi Elderlab, York University June 2007.
3.3 Matchings and Factors: Matchings in General Graphs This copyrighted material is taken from Introduction to Graph Theory, 2 nd Ed., by Doug West; and.
4.1 Connectivity and Paths: Cuts and Connectivity
4.2 k-connected graphs This copyrighted material is taken from Introduction to Graph Theory, 2 nd Ed., by Doug West; and is not for further distribution.
Chapter 24: Single-Source Shortest Paths Given: A single source vertex in a weighted, directed graph. Want to compute a shortest path for each possible.
Mycielski’s Construction Mycielski’s Construction: From a simple graph G, Mycielski’s Construction produces a simple graph G’ containing G. Beginning with.
Graph Colouring L09: Oct 10. This Lecture Graph coloring is another important problem in graph theory. It also has many applications, including the famous.
Graph Theory Ch. 3. Matchings and Factors 1 Chapter 3 Matchings and Factors Matchings and Covers Algorithms and Applications Matchings in General Graph.
Chapter 1 Fundamental Concepts Introduction to Graph Theory Douglas B. West July 11, 2002.
Maximum Flow. p2. Maximum Flow A flow network G=(V, E) is a DIRECTED graph where each has a nonnegative capacity u.
1/24 Introduction to Graphs. 2/24 Graph Definition Graph : consists of vertices and edges. Each edge must start and end at a vertex. Graph G = (V, E)
Max Flow – Min Cut Problem. Directed Graph Applications Shortest Path Problem (Shortest path from one point to another) Max Flow problems (Maximum material.
1 Network Models Transportation Problem (TP) Distributing any commodity from any group of supply centers, called sources, to any group of receiving.
5.5.2 M inimum spanning trees  Definition 24: A minimum spanning tree in a connected weighted graph is a spanning tree that has the smallest possible.
Bipartite Matching. Unweighted Bipartite Matching.
Maximum Flow Chapter 26. Flow Concepts Source vertex s – where material is produced Sink vertex t – where material is consumed For all other vertices.
4.2 k-connected graphs This copyrighted material is taken from Introduction to Graph Theory, 2 nd Ed., by Doug West; and is not for further distribution.
Exercise 6.1 Find the number of different shortest paths from point A to point B in a city with perfectly horizontal streets and vertical avenues as shown.
4.2 k-connected graphs This copyrighted material is taken from Introduction to Graph Theory, 2 nd Ed., by Doug West; and is not for further distribution.
Introduction to Graph Theory
1 Assignment #3 is posted: Due Thursday Nov. 15 at the beginning of class. Make sure you are also working on your projects. Come see me if you are unsure.
Theory of Computing Lecture 12 MAS 714 Hartmut Klauck.
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.
Matching and Factors Matchings and Covers. Definitions: A matching M in a graph G is a set of non loop edges with no shared endpoints. G M.
1 Chapter 7 Network Flow Slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved.
Indian Institute of Technology Kharagpur PALLAB DASGUPTA Graph Theory: Matchings and Factors Pallab Dasgupta, Professor, Dept. of Computer Sc. and Engineering,
TIRGUL 10 Dijkstra’s algorithm Bellman-Ford Algorithm 1.
Graph Theory Ch. 3. Matchings and Factors 1 Chapter 3 Matchings and Factors.
TU/e Algorithms (2IL15) – Lecture 8 1 MAXIMUM FLOW (part II)
Lap Chi Lau we will only use slides 4 to 19
Topics in Algorithms Lap Chi Lau.
Great Theoretical Ideas in Computer Science
Chapter 5. Optimal Matchings
Instructor: Shengyu Zhang
Analysis of Algorithms
Algorithms (2IL15) – Lecture 5 SINGLE-SOURCE SHORTEST PATHS
CS 583 Analysis of Algorithms
Problem Solving 4.
Systems of distinct representations
Algorithms (2IL15) – Lecture 7
Trevor Brown DC 2338, Office hour M3-4pm
Presentation transcript:

3.2 Matchings and Factors: Algorithms and Applications This copyrighted material is taken from Introduction to Graph Theory, 2 nd Ed., by Doug West; and is not for further distribution beyond this course. These slides will be stored in a limited-access location on an IIT server and are not for distribution or use beyond Math 454/553. 1

Augmenting Path Algorithm Overview Two theorems to recall: Theorem (Berge). A matching M in a graph G is a maximum matching in G iff G has no M-augmenting path. Theorem (König,Egerváry) If G is bipartite, then a maximum matching and a minimum vertex cover of G have the same size (i.e.,  ’(G)=  (G)) Augmenting path algorithm (for bipartite graphs) Input An X,Y-bigraph G, a partial matching M, unsaturated U  X Output One of two possibilities:  An augmenting path from U to some y  Y  A minimum vertex cover Q 2 Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

Maximum Matching/Minimum Cover Algorithm Augmenting path algorithm (for bipartite graphs) Input An X,Y-bigraph G, a partial matching M, unsaturated U  X Output One of two possibilities:  An augmenting path from U to some y  Y  A minimum vertex cover Q Maximum Matching/Minimum Cover Algorithm Input An X,Y-bigraph G, a partial matching M (e.g., M=  ) Output a maximum matching and a minimum vertex cover  Run Algorithm on M (  ’(G)–M) times, using the augmenting path output to increase M each time until |M|=  ’(G)  Run Algorithm once more to produce a minimum vertex cover 3 Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

Augmenting Path Algorithm Framework Algorithm (Augmenting path algorithm) Input An X,Y-bigraph G, a (partial matching) M, and the M-unsaturated vertices U  X Idea Explore augmenting paths to all possible vertices, marking explored vertices and their predecessors, and tracking reached vertices S  X and T  Y Initialization S=U and T=  Iteration [Details next slide] 4 Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

Augmenting Path Algorithm Details Algorithm (Augmenting path algorithm) Input An X,Y-bigraph G, a (partial matching) M, and the M-unsaturated vertices U  X Initialization S=U and T=  Iteration If S is all marked, stop and output M and Q=T  (X– S). Otherwise, explore from an unmarked x  S. For each y  N(x) with xy  M: (1)If y is unsaturated, halt and report an augmenting U,y-path (2)If y is saturated, for the unique edge yw  M: (1)Update T  T  {y} (2)Update S  S  {w} (3)Mark x and iterate 5 Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

Augmenting path algorithm example x1x1 x2x2 x3x3 x4x4 x5x5 y1y1 y2y2 y3y3 y4y4 y5y5 Run 1 Input: M=  S=U=X, T= , x=x 1 6 S S S SS Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

Augmenting path algorithm example x1x1 x2x2 x3x3 x4x4 x5x5 y1y1 y2y2 y3y3 y4y4 y5y5 Run 1: y 1 unsaturated. Halt and augment M. 7 T S S S SS Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

Augmenting path algorithm example x1x1 x2x2 x3x3 x4x4 x5x5 y1y1 y2y2 y3y3 y4y4 y5y5 8 Run 2 Input: M={x 1 y 1 } S={x 2, x 3, x 4, x 5 }, T= , x=x 2 S SSS Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

Augmenting path algorithm example x1x1 x2x2 x3x3 x4x4 x5x5 y1y1 y2y2 y3y3 y4y4 y5y5 9 Run 2: From x 2, explore y 1 and its matched neighbor T S S S SS Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

Augmenting path algorithm example x1x1 x2x2 x3x3 x4x4 x5x5 y1y1 y2y2 y3y3 y4y4 y5y5 10 Run 2: From x 1, explore y 2. y 2 is unsaturated: halt and augment M. T S S S SS T Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

Augmenting path algorithm example x1x1 x2x2 x3x3 x4x4 x5x5 y1y1 y2y2 y3y3 y4y4 y5y5 11 Run 3 Input: M={x 1 y 2, x 2 y 1 } S={x 3, x 4, x 5 }, T= , x=x 3 S SS Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

Augmenting path algorithm example x1x1 x2x2 x3x3 x4x4 x5x5 y1y1 y2y2 y3y3 y4y4 y5y5 12 Run 3: From x 3, explore y 3. y 3 unsaturated; halt and report augmenting path. S S S T Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

Augmenting path algorithm example x1x1 x2x2 x3x3 x4x4 x5x5 y1y1 y2y2 y3y3 y4y4 y5y5 13 Run 4 Input: M={x 1 y 2, x 2 y 1, x 3 y 3 } S={x 4, x 5 }, T= , x=x 4 SS Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

Augmenting path algorithm example x1x1 x2x2 x3x3 x4x4 x5x5 y1y1 y2y2 y3y3 y4y4 y5y5 14 Run 4: From x 4, explore y 2,y 3 and their (distinct) matched neighbors. S S S T T S Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

Augmenting path algorithm example x1x1 x2x2 x3x3 x4x4 x5x5 y1y1 y2y2 y3y3 y4y4 y5y5 15 Run 4: From x 1, and x 3, explore to find y 1 via non- matching edges. Explore back up to x 2 via a matching edge. S S S T T S T S Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

Augmenting path algorithm example x1x1 x2x2 x3x3 x4x4 x5x5 y1y1 y2y2 y3y3 y4y4 y5y5 16 Run 4 (continued): x 5 is still unexplored. Explore from x 5 to find unsaturated vertex y 4. Terminate and report an M- augmenting path. S S S S T TT S T Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

Augmenting path algorithm example x1x1 x2x2 x3x3 x4x4 x5x5 y1y1 y2y2 y3y3 y4y4 y5y5 17 Run 5 Input: M={x 1 y 2,x 2 y 1,x 3 y 3,x 5 y 4 } S={x 4 }, T= , x=x 4 S Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

Augmenting path algorithm example x1x1 x2x2 x3x3 x4x4 x5x5 y1y1 y2y2 y3y3 y4y4 y5y5 18 Run 5: From x 4, explore y 2,y 3 and their (distinct) matched neighbors. S S S T T Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

Augmenting path algorithm example x1x1 x2x2 x3x3 x4x4 x5x5 y1y1 y2y2 y3y3 y4y4 y5y5 19 Run 5: From x 1, and x 3, explore to find y 1 via non- matching edges. Explore back up to x 2 via a matching edge. S S S S T TT Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

Augmenting path algorithm example x1x1 x2x2 x3x3 x4x4 x5x5 y1y1 y2y2 y3y3 y4y4 y5y5 20 Termination: No vertex of S is unexplored. Output: maximum matching M={x 1 y 2,x 2 y 1,x 3 y 3,x 5 y 4 } Minimum vertex cover Q=T  (X–S) ={x 5,y 1,y 2,y 3 }. S S S S T TT Q Q QQ Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

Proof of Repeated Augmenting Path Algorithm Theorem Repeatedly applying the Augmenting Path Algorithm to a bipartite graph produces a matching and a vertex cover of equal size. Proof Repeatedly run Algorithm 3.2.1, increasing the matching size by 1 each time, until the first time an augmenting path is not returned. We must argue that the set Q returned by Algorithm is a vertex cover with size equal to that of the matching M initializing this last run. We must argue that Q=T  (X–S) is a vertex cover. It suffices to prove there are no edges of G between S and Y–T. (1)There is no matching edge of M between S and Y–T: There is certainly no matching edge incident to U. (unsaturated) Vertices of S–U only have matching edges to T. (2) There is no non-matching edge of E(G)–M between S and Y–T: Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

Proof of Repeated Augmenting Path Algorithm Theorem Repeatedly applying the Augmenting Path Algorithm to a bipartite graph produces a matching and a vertex cover of equal size. Proof (continued) (1)There is no matching edge of M between S and Y–T: There is certainly no matching edge incident to U. (unsaturated) Vertices of S–U only have matching edges to T. (2) There is no non-matching edge of E(G)–M between S and Y–T: While exploring vertices in S, all non-matching edges are followed so that the other endpoints are placed in T. (3) Q=T  (X-S) has |Q| = |M|: Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

Proof of Repeated Augmenting Path Algorithm Theorem Repeatedly applying the Augmenting Path Algorithm to a bipartite graph produces a matching and a vertex cover of equal size. Proof (continued) (1)There is no matching edge of M between S and Y–T. (2) There is no non-matching edge of E(G)–M between S and Y–T. (3) Q=T  (X–S) has |Q| = |M|: T is involved in exactly T matching edges since these vertices were explored through augmenting paths from S. X–S is saturated; otherwise these vertices would contribute to U. There are no edges from T to X–S because T matches to S–U. Therefore |Q| = |T| + |X–S| = |M|. Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

Weighted Bipartite Matching In weighted bipartite matching, we have a simple bigraph with weighted edges and want a matching with maximum possible total edge weight. Input A simple X,Y-bigraph G and a weight function w:E(G)  [0,  ) Output A matching M with maximum w(M)=  e  M w(e) Without loss of generality, we may assume G = K n,n by adding any missing vertices needed to make |X|=|Y| and assigning edge weight 0 to any missing edges. Comments Edge weights of K n,n are encoded in an n  n matrix Maximum bipartite matching can be solved by maximum weighted bipartite matching, by assigning edge weight 1 to all edges. We will define weighted covers, which generalize vertex covers. Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

Transversals and (Weighted) Covers Transversal: A set M of n entries of an n  n, matrix, no two in the same column or row. Its weight is the sum of the entries. Cover: A pair of vectors (u,v)=(u 1,…,u n ;v 1,…,v n ) such that every entry w i,j of the matrix satisfies w i,j = u i +v j. u v w(M)=23 w(u,v)=32 Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553. v1v1 v2v2 v3v3 v4v4 v5v5 u1u1 u2u2 u3u3 u4u4 u5u5

3.2.7 Maximum Transversals and Minimum Covers Lemma. (Duality of weighted matching and weighted cover problems) For a perfect matching M and a weighted cover (u,v) in a weighted bipartite graph G, c(u,v)>=w(M). Also, c(u,v)=w(M) iff M consists of edges x i y j such that u i +v j =w i,j. In this case, M and (u,v) are optimal u v w(M)=12 w(u,v)=12 Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

Finding Maximum Transversals and Minimum Covers We know: 1.We can always find a cover by setting u i =max j w i,j for all rows i=1,…,n 2.If we find M, (u,v) with w(M)=c(u,v), by Lemma we are done. Question But how do we get from Item 1 to Item 2? Answer Compare c(u,v) versus the weights matrix [w i,j ] to Make the equality subgraph of edges for which w i,j =u i +v j Improve (u,v) using a vertex cover of the equality subgraph Iterate until w(M)=c(u,v). Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

The Equality Subgraph Definition. The equality subgraph G u,v for a weighted cover (u,v) is the spanning subgraph of K n,n whose edges are the pairs x i y j such that w i,j =u i +v j. In the cover, the excess for i,j is u i + v j - w i,j. Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/ u x1x1 x2x2 x3x3 x4x4 x5x5 y1y1 y2y2 y3y3 y4y4 y5y5 v Equality subgraph for (u,v) Matrix entries with w i,j =u i +v j

The Equality Subgraph and Excess Matrix Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/ u x1x1 x2x2 x3x3 x4x4 x5x5 y1y1 y2y2 y3y3 y4y4 y5y5 v Equality subgraph for (u,v) Matrix entries with w i,j =u i +v j u v excess matrix for (u,v)

Hungarian Algorithm (Maximum Weighted Matching/Minimum Weighted Cover) Algorithm (Hungarian Algorithm) Input An n x n matrix of nonnegative edge weights of K n,n Idea Iteratively adjust the cover (u,v) until the equality subgraph G u,v has a perfect matching Initialization Any cover (u,v), such as u i =max i w i,j and v j =0 Iteration Find a maximum matching M in G u,v. If M is a perfect matching, stop and output M and (u,v) as a maximum weight matching and minimum weight cover. Otherwise: Let  = smallest excess in G u,v of an edge from X-R to Y-T. Replace u i  u i -  for all x i  X-R. Replace v j  v j +  for all y j  Y-T. Form the new equality subgraph G u,v and repeat. 30 Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

Hungarian Algorithm Example u v w(M)=21w(u,v)= u v excess matrix TT R x1x1 x2x2 x3x3 x4x4 x5x5 y1y1 y2y2 y3y3 y4y4 y5y5 TT R Equality subgraph vertex cover: Q=R  T  Add  =1 to T, subtract from X–R. Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

Hungarian Algorithm Example u v w(u,v)=35 TT R Add  =1 to T, subtract from X–R. Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/ u v w(u,v)=33 The total cover weight must decrease because new cover weight – old cover weight =  (|T| – |X–R|) Note:|T| – |X–R| = |T| – (n – |R|) =|T| + |R| – n < n – n = 0 So:new cover weight – old cover weight < 0.

Hungarian Algorithm Example u v w(u,v)=35 TT R Add  =1 to T, subtract from X–R. Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/ u v w(u,v)=33 When the matrix weights are rational, transform the problem by multiplying through by the least common denominator. Then   1 is guaranteed, and the cover weight w(u,v) decreases by at least 1 in each iteration. See the text for the proof when the matrix has an irrational weight.

Hungarian Algorithm Example u v w(M)=21w(u,v)= u v excess matrix TT x1x1 x2x2 x3x3 x4x4 x5x5 y1y1 y2y2 y3y3 y4y4 y5y5 TT T Equality subgraph vertex cover: Q=R  T T  Add  =1 to T, subtract from X-R. Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.

Hungarian Algorithm Example u v w(M)=31w(u,v)= u v excess matrix TT x1x1 x2x2 x3x3 x4x4 x5x5 y1y1 y2y2 y3y3 y4y4 y5y5 T Matching weight=cover weight. Halt and output M, and (u,v). equality subgraph Contains copyrighted material from Introduction to Graph Theory by Doug West, 2 nd Ed. Not for distribution beyond IIT’s Math 454/553.