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.

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.
Lecture 5 Graph Theory. Graphs Graphs are the most useful model with computer science such as logical design, formal languages, communication network,
Edge-connectivity and super edge-connectivity of P 2 -path graphs Camino Balbuena, Daniela Ferrero Discrete Mathematics 269 (2003) 13 – 20.
Bipartite Matching, Extremal Problems, Matrix Tree Theorem.
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.
Yangjun Chen 1 Bipartite Graphs What is a bipartite graph? Properties of bipartite graphs Matching and maximum matching - alternative paths - augmenting.
1 Discrete Structures & Algorithms Graphs and Trees: II EECE 320.
Graph Theory Ming-Jer Tsai. Outline Text Book Graph Graph Theory - Course Description The Topics in the Class Evaluation.
k-Factor Factor: a spanning subgraph of graph G
Vertex Cut Vertex Cut: A separating set or vertex cut of a graph G is a set S  V(G) such that G-S has more than one component. a b c d e f g h i.
Mycielski’s Construction Mycielski’s Construction: From a simple graph G, Mycielski’s Construction produces a simple graph G’ containing G. Beginning with.
Internally Disjoint Paths Internally Disjoint Paths : Two paths u to v are internally disjoint if they have no common internal vertex.
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.
Maximum Bipartite Matching
Yangjun Chen 1 Bipartite Graph 1.A graph G is bipartite if the node set V can be partitioned into two sets V 1 and V 2 in such a way that no nodes from.
Vertex Cut Vertex Cut: A separating set or vertex cut of a graph G is a set SV(G) such that S has more than one component. Connectivity of G ((G)): The.
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.
Definition Dual Graph G* of a Plane Graph:
Internally Disjoint Paths
Internally Disjoint Paths
Factor Factor: a spanning subgraph of graph G
Factor Factor: a spanning subgraph of graph G k-Factor: a spanning k-regular subgraph Odd component: a component of odd order o(H): the number of odd components.
Khabbazian1 Copyright © Dale Carnegie & Associates, Inc. Mohammad Khabbazian Department of computer engineering,sharif University,Tehran,iran.
Graph Theory Ch.5. Coloring of Graphs 1 Chapter 5 Coloring of Graphs.
Internally Disjoint Paths Internally Disjoint Paths : Two paths u to v are internally disjoint if they have no common internal vertex. u u v v Common internal.
K-Coloring k-coloring: A k-coloring of a graph G is a labeling f: V(G)  S, where |S|=k. The labels are colors; the vertices of one color form a color.
Vertex Cut Vertex Cut: A separating set or vertex cut of a graph G is a set SV(G) such that G-S has more than one component. d f b e a g c i h.
K-Coloring k-coloring: A k-coloring of a graph G is a labeling f: V(G)  S, where |S|=k. The labels are colors; the vertices of one color form a color.
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.
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.
Section 2.1 “Matching in bipartite graphs” in Graph Theory Handout for reading seminar.
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.
Indian Institute of Technology Kharagpur PALLAB DASGUPTA Graph Theory: Introduction Pallab Dasgupta, Professor, Dept. of Computer Sc. and Engineering,
Mycielski’s Construction Mycielski’s Construction: From a simple graph G, Mycielski’s Construction produces a simple graph G’ containing G. Beginning with.
Graph Theory Ch. 3. Matchings and Factors 1 Chapter 3 Matchings and Factors Matchings and Covers Algorithms and Applications Matchings in General Graph.
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.
Chapter 1 Fundamental Concepts Introduction to Graph Theory Douglas B. West July 11, 2002.
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)
Week 1 – Introduction to Graph Theory I Dr. Anthony Bonato Ryerson University AM8002 Fall 2014.
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.
Graph Theory and Applications
Graphs Lecture 2. Graphs (1) An undirected graph is a triple (V, E, Y), where V and E are finite sets and Y:E g{X V :| X |=2}. A directed graph or digraph.
Graph Theory Ming-Jer Tsai. Outline Graph Graph Theory Grades Q & A.
CSE, IIT KGP Graph Theory: Introduction Pallab Dasgupta Dept. of CSE, IIT
Introduction to Graph Theory
Chromatic Coloring with a Maximum Color Class Bor-Liang Chen Kuo-Ching Huang Chih-Hung Yen* 30 July, 2009.
12. Lecture WS 2012/13Bioinformatics III1 V12 Menger’s theorem Borrowing terminology from operations research consider certain primal-dual pairs of optimization.
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.
Approximation Algorithms Greedy Strategies. I hear, I forget. I learn, I remember. I do, I understand! 2 Max and Min  min f is equivalent to max –f.
Indian Institute of Technology Kharagpur PALLAB DASGUPTA Graph Theory: Matchings and Factors Pallab Dasgupta, Professor, Dept. of Computer Sc. and Engineering,
Graph Theory Ch. 3. Matchings and Factors 1 Chapter 3 Matchings and Factors.
Bipartite Graphs What is a bipartite graph?
Chapter 5. Optimal Matchings
Planarity Testing.
3.3 Applications of Maximum Flow and Minimum Cut
V17 Metabolic networks - Graph connectivity
V11 Metabolic networks - Graph connectivity
Problem Solving 4.
Bipartite Graph 1. A graph G is bipartite if the node set V can be partitioned into two sets V1 and V2 in such a way that no nodes from the same set are.
5.4 T-joins and Postman Problems
V12 Menger’s theorem Borrowing terminology from operations research
Planarity.
V11 Metabolic networks - Graph connectivity
Graph Theory: Cuts and Connectivity
V11 Metabolic networks - Graph connectivity
Presentation transcript:

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 that cannot enlarged by adding an edge Maximum Matching: A maximum matching is a matching of maximum size among all matchings in the graph

Matching

Symmetric Difference ∆ If M and M’ are matchings, then M ∆ M’=(M- M’)  (M’-M).

Lemma 3.19 Every component of the symmetric difference of two matchings is a path or an even cycle. 1. Let F=M∆M’. 2. ∆(F)<=2  Every component is a path or cycle. 3. Every path or cycle alternates between M-M’ and M’-M.  The cycle has even length.

M-saturated M-saturated Vertices: The vertices incident to the edges of a matching M M-unsaturated Vertices: The vertices which are not saturated by M

M-augmenting Path M-alternating path: Given a matching M, and an M-alternating path is a path that alternates between edges in M and edges not in M M-augmenting path: An M-alternating path whose endpoints are unsaturated by M

Theorem 3.10 A matching M is a maximum matching in G iff G has no M-augmenting path (  ) Suppose G has an M-augmenting path. Then, we can produce a matching larger than M. (  ) Let M’ be a matching in G larger than M. Then, we can construct an M-augmenting path. 1. Let F=M∆M’. F consists paths and even cycles. 2. F must have a path with more edges of M’ than of M. 3. Such a path is an M-augmenting path in G.

Bipartite Graph Independent Set: a set of pairwise nonadjacent vertices in graph Bipartite Graph: A graph is bipartite if V is the union of two disjoint independent sets called partite sets of G X,Y-bigraph: A bipartite graph with partite sets X and Y

Theorem An X,Y-bigraph G has a matching that saturates X iff |N(S)|>=|S| for all S  X. (  ) If |N(S)|<|S| for some S  X, then no matching can saturate S. (  ) 1. Let M is a maximum matching in G, we need to prove no node v  X is M-unsaturated. 2. Suppose that node v  X is M-unsaturated.

Theorem Let X* and Y* be the sets of M-saturated vertices in X and Y, respectively. 4. v has at least one neighbor v* in Y. 5. v*  Y*. Otherwise, M’=M  {vv*} is a matching larger than M. 6. We can construct an M-augmenting path starting at v.  M is not a maximum matching.  no node v  X is M-unsaturated.

The Marriage Theorem A X,Y-bigraph G with |X|=|Y| has a perfect matching iff |N(S)|>=|S| for all S  X

Corollary For k>0, any k-regular bipartite graph has a perfect matching 1. k|X|=k|Y|  |X|=|Y|. 2. Let m be the number of edges from S to N(S). 3. m=k|S| and m<=k|N(S)|  |S|<= |N(S)|.

Vertex Cover Vertex Cover: A vertex cover of a graph G is a set Q  V(G) that contains at least one endpoint of every edge.

Theorem If G is a bipartite graph, then the maximum size of a matching in G equals to the minimum size of a vertex cover in G 1. |Q|>=|M|. 2. Let Q be the smallest vertex cover of G. 3. Let R=Q  X and T=Q  Y. 4. Let H and H’ be sugraphs of G induced by R  (Y-T) and T  (X-R), respectively.

Theorem (2/2) 5. Let S  R. Let N H (S)=N(S)  (Y-T). 6. |N H (S)|>=|S|. Otherwise, T  N H (S) is a vertex cover smaller than Q. 7. H has a matching that saturates R. 8. Similarly, H’ has a matching that saturates T.

Dual Optimization Problem A maximization problem M and a minimization problem N, defined on the same instances, such that: (1) for every candidate solution M to M and every candidate solution N to N, the value of M is less than or equal to the value of N. (2) obtaining candidate solutions M and N that have the same value PROVES that M and N are optimal solutions for that instance.

Edge Cover Edge Cover: An edge cover of G is a set L of edges such that every vertex of G is incident to some edge of L  (G): maximum size of independent set  ’(G): maximum size of matching  (G): minimum size of vertex cover  ’(G): minimum size of edge cover

Lemma In a graph G, S  V(G) is an independent set iff V(G)-S is a vertex cover, and hence  (G)+  (G)=n(G) (  )1. No edge joins two nodes in S.  Every edge has an endpoint in V(G)-S.  V(G)-S is a vertex cover. (  ) Every edge has an endpoint in V(G)-S.  No edge joins two nodes in S.  S is an independent set

Theorem If G is a graph without isolated vertices, then  ’(G)+  ’(G)=n(G). 1. (1) Let M be a maximum matching M. (2) We can construct an edge cover of size n(G)-|M| by adding to M one edge incident to each unsaturated vertex.   ’(G)<=n(G)-  ’(G).

Theorem (2/2) 2. (1) Let L be a minimum edge cover. (2) Only one endpoint of e  L belong to edges in L. (Otherwise, L-{e} is also an edge cover)  L is a star. (3) Let k be the number of components in L.  |L|=n(G)-L. (4) We can form a matching M of size k=n(G)-|L|.   ’(G)>=n(G)-  ’(G).

Corollary If G is a bipartite graph with no isolated vertices, then  (G)=  ’(G). 1.  ’(G)+  ’(G)=n(G) by Theorem  (G)+  (G)=n(G) by Lemma  ’(G)=  (G) by Theorem

Dominating Set Dominating Set: In a graph G, a set S  V(G) is a dominating set if every vertex not in S has a neighbor in S. Dominating Number  (G): the minimum size of of a dominating set in G.

Theorem For any graph G,  (G)<=  (G). 1. Let I be a maximum independent set. 2. For all v  V(G)-I, v must be adjacent to some vertex in I. Otherwise, I  {v} is an independent set larger than I.  I is a dominating set of G.  (G)<=  (G).