1/12/2015 Ma/CS 6b Class 4: Matchings in General Graphs By Adam Sheffer Reminder: Hall's Marriage Theorem ο Theorem. Let πΊ = π1 βͺ π2 , πΈ be a bipartite graph. There exists a matching of size π1 in πΊ if and only if for every π΄ β π1 , we have π΄ β€ π π΄ . ο We say that πΊ satisfies Hallβs condition if for every π΄ β π1 , we have π΄ β€ π π΄ . Philip Hall 1 1/12/2015 π-regular Graphs ο A graph πΊ = π, πΈ is π-regular if each vertex of π is of degree π. ο The Petersen graph is a 3-regular graph with ten vertices: Example: π-regular Graphs ο For any positive integer π, what graph do we know that is π-regular? β¦ πΎπ β the complete graph with π vertices (every two vertices are connected). It is π β 1 -regular. πΎ7 2 1/12/2015 Example: 2-regular Graphs ο For any positive integer π, what graph do we know that is 2-regular and has π vertices? β¦ πΆπ β a cycle of size π. πΆ6 1-regular Graphs ο Problem. Characterize the graphs that are 1-regular. ο Answer. These are the graphs whose edges form a perfect matching (with no additional edges). 3 1/12/2015 2-regular Graphs ο Problem. Characterize the graphs that are 2-regular. ο Answer. These are the graphs that consist only of vertex-disjoint cycles. π-factors ο Consider a graph πΊ = π, πΈ . β¦ A spanning subgraph of πΊ is a subgraph that contains all of the vertices of π. β¦ For a positive integer π, a π-factor of πΊ is a spanning subgraph of πΊ that is π-regular. β¦ A graph contains a 1-factor iff it contains a perfect matching. 1-factor 2-factor 4 1/12/2015 2-factor Theorem ο Theorem. Every 2π-regular graph πΊ = π, πΊ has a 2-factor (where π is a positive integer). ο One of the earliest works on graph theory β by Petersen in 1891. Julius Petersen Recall: Eulerian Cycles An Eulerian path in a graph πΊ is a path that passes through every edge of πΊ exactly once. ο An Eulerian cycle is an Eulerian path that starts and ends at the same vertex. ο a b h c g d f πΈ = πβπβπβπβπβπβπ βπβπβπβπβπβπ βπβπβπβπ e 5 1/12/2015 Reminder: Graphs Containing Eulerian Cycles ο Theorem. A connected (possibly not simple) graph πΊ = π, πΈ contains an Eulerian cycle if and only if every vertex of π has an even degree. οΌ Proof (of 2-factor Theorem) ο We assume that πΊ is connected. β¦ (otherwise, we can consider separately each component). ο Since every degree in πΊ is 2π, it contains an Eulerian cycle πΆ. β¦ We arbitrarily choose a direction for πΆ. β¦ We split every vertex π£ β π into π£ + and π£ β . β¦ An edge in πΆ that went from π£ to π’ now goes from π£ + to π’β . 6 1/12/2015 Illustration π π π π π π π π π π π+ πβ π+ π + πβ π π+ πβ π+ πβ * Unlike our case, this graph is not 2π-regular. β Proof (cont.) ο We obtain a graph πΊ β² with 2 π vertices and πΈ edges. β¦ We ignore the directions in πΊ β² and notice that it is a bipartite π-regular graph. π+ πβ π+ π+ πβ π+ πβ π+ πβ πβ 7 1/12/2015 Bipartite π-regular Graphs Claim. Every bipartite π-regular graph π΅ = π1 βͺ π2 , πΈ contains a perfect matching. ο Proof. ο β¦ We have π1 = π2 , by double counting the size of |πΈ|. β¦ We complete the proof by showing that π΅ satisfies Hallβs condition. β¦ For any π΄ β π1 , there are π π΄ edges that leave π΄. Since every vertex of π π΄ is incident to at most π edges from π΄, then π π΄ β₯ π΄ . Completing the Proof ο We started with a 2π-regular graph πΊ. β¦ There is an Euler cycle in πΊ. β¦ Splitting every vertex π£ β π into π£ + and π£ β , we obtained a bipartite π-regular graph π΅ with the same set of edges. β¦ π΅ contains a perfect matching π. β¦ By merging every pair π£ + and π£ β back to π£, π becomes a 2-factor! 8 1/12/2015 Another Illustration + πβ π+ πβ π+ π+ π+ β π π+ ο π π π πβ π β π πβ π π π Merging the vertices of the perfect matching results in a 2-factor. Today: Mathematical Facts About Nicolas Cage 9 1/12/2015 Matchings in General Graphs In bipartite graphs, Hallβs condition characterizes the graphs that contain a perfect matching. ο We now present a similar condition for general graphs, which we denote as Tutteβs condition. ο W. T. Tutte Odd Components ο Given a graph πΊ = (π, πΈ), we denote by π πΊ the number of components in πΊ that consists of an odd number of vertices. π πΊ =4 10 1/12/2015 Tutteβs Condition ο We say that a graph πΊ = π, πΈ satisfies Tutteβs condition if for every π β π we have π πΊβπ β€ π . π =4 π πΊβπ =3 The Easy Direction Claim. If a graph πΊ contains a 1-factor π, then it satisfies Tutteβs condition. ο Proof. For any π β π, consider the components of πΊ β π. ο β¦ Every component with an odd number of vertices must have at least one edge of π connected to a vertex of π. β¦ Thus, π πΊ β π β€ π . π 11 1/12/2015 The Other Direction ο Claim. If a graph πΊ = π, πΈ does not contain a 1-factor, then it does not satisfy Tutteβs condition. β¦ That is, we need to prove that there exists π β π such that π πΊ β π > π . β¦ Given such a bad set π, if we remove edges from πΈ, then π remains a bad set: ο If we split an odd sized component into several components, at least one of them is odd-sized. Illustration ο Removing edges can only increase π(πΊ β π). |π| = 3 π πΊβπ =4 |π| = 3 π πΊβπ =4 12 1/12/2015 Rephrasing the Claim ο We saw that if a graph πΊ contains a bad set π, then π remains bad after removing any number of edges. β¦ We say that a graph πΊ is edge-maximal without a 1-factor if it does not contain a 1factor, but adding any one edge to it results in a 1-factor. β¦ Thus, it suffices to prove: β¦ Claim. If a graph πΊ = π, πΈ is edge-maximal without a 1-factor, then it does not satisfy Tutteβs condition. Drowning in a Swimming Pools ο Correlation: 0.666004 * Taken from http://tylervigen.com/ 13 1/12/2015 Odd Number of Vertices ο If πΊ has an odd number of vertices, it obviously contains no 1-factor. β¦ In this case, πΊ does not satisfy Tutteβs condition: By taking π = β we have 0 = π < π πΊ β π = 1. ο It remains to consider graphs with an even number of vertices. Finding a Bad Set We take π β π to be the set of vertices that are connected to every vertex of πΊ (it is possible that π = β ). ο We partition the analysis into two cases: ο β¦ Every component of πΊ β π is a complete graph (that is, a complete induced subgraph). β¦ There is a component of πΊ β π that is not a complete graph. 14 1/12/2015 The First Case ο ο π β the set of vertices that are connected to every vertex of πΊ. Consider the case where every connected component of πΊ β π is complete. β¦ If π β₯ π πΊ β π , we get a contradiction to πΊ not containing a 1-factor, so π is a bad set! β¦ The 1-factor has one edge between every odd component and a distinct vertex of π. πΊβπ π Dying in a Helicopter Accident ο Correlation: -0.827811 15 1/12/2015 The Second Case ο Assume that a component πΆ of πΊ β π that is not a complete graph. β¦ There exist two vertices π₯, π§ in πΆ that π₯, π§ β πΈ but there exists π¦ β π β π such that π₯, π¦ , π¦, π§ β πΈ. β¦ Since π¦ β π, there exists a vertex π€ β π such that π¦, π€ β πΈ. π₯ π¦ π π€ π§ Building a New Graph ο Recall that adding any edge to πΊ results in a 1-factor contained in it. β¦ ππ₯π§ β 1-factor in πΊ after adding π₯, π§ . β¦ ππ¦π€ β 1-factor in πΊ after adding π¦, π€ . β¦ πΉ β the set of edges that are either in ππ₯π§ or in ππ¦π€ (but not in both). β¦ In the graph πΊπΉ = π, πΉ , every vertex is of degree 0 or 2. β¦ That is, πΊπΉ consists of isolated vertices and disjoint even length cycles. 16 1/12/2015 Union of Two Perfect Matchings π§ π€ π₯ π§ π€ π₯ π¦ ππ₯π§ π¦ ππ¦π€ π§ π€ π₯ π¦ πΉ Different Cycles ο If π₯, π§ and π¦, π€ are in different cycles of πΉ, we can find a 1-factor in πΊ: β¦ Take every edge that is in ππ₯π§ β© ππ¦π€ . β¦ From the each cycle of πΉ, we take every other edge. We choose those such that we avoid taking π₯, π§ and π¦, π€ . ο This contradicts πΊ not containing a 1factor. π§ π₯ 17 1/12/2015 The Same Cycle ο If π₯, π§ and π¦, π€ are on the same cycle: β¦ If we can take every other edge of the cycle without taking π₯, π§ and π¦, π€ , we get a contradiction as before. β¦ Otherwise, we can use π₯, π¦ or π¦, π§ to obtain a 1-factor containing neither π₯, π§ nor π¦, π€ . π¦ π§ π€ π₯ Concluding the Proof We proved that either π is a bad set, or we get a contradiction to πΊ not containing a 1-factor. ο That is, we proved that if πΊ is edgemaximal without a 1-factor, then there exists π β π such that π < π(πΊ β π). ο β¦ Thus, in every graph πΊ without a 1-factor there exists π β π such that π < π(πΊ β π). 18 1/12/2015 Finding a 1-factor in a Graph As with Hallβs theorem, Tutteβs condition does not give us an algorithm for finding a 1-factor in a graph. ο In 6a, we saw an algorithm for finding 1factors in bipartite graphs, using augmenting paths. ο β¦ The same algorithm works for general graphs. β¦ We will not repeat the algorithm, but we will rely on it as a βblack boxβ (also in HW!). The End 19
© Copyright 2026 Paperzz