



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




a b
c d
a b
c d
Figure 1: two possible matchings in a simple graph.
Definition 1 Given a graph G = 〈V, E〉, a matching is a collection of edges M such that ei, ej ∈ M =⇒ ei, ej are vertex disjoint.
Definition 2 A maximal matching is a matching that cannot be improved.
By “vertex disjoint,” we mean that no two edges in the set may be incident with the same vertex. Figure 1 shows two possible matchings in a simple graph. A matching is “improved” when one or more edges is added to it.
Definition 3 A maximum matching is a matching of maximum cardinality (over all possible matchings in a graph G); ν(G) denotes the cardinality of a maximum matching in G.
a b
a
c d
b c d
Figure 2: a maximal but not maximum matching; a maximum matching.
A maximal matching is not necessarily a maximum matching. Figure 2 shows a maximal matching (that is not a maximum matching) and a maximum matching. All maximum matchings are maximal matchings, but not all maximal matchings are maximum matchings. In general, it is harder to find a maximum matching than to find a maximal matching.
Definition 4 Given a matching M , an M -exposed vertex is a vertex not incident with any edge in M ; an M -covered vertex is a vertex incident with some edge in M.
Given a maximum matching M the number of M -covered vertices = 2 · ν(G); the number of M -exposed vertices = |V | − 2 · ν(G). The number of M -exposed vertices is also called the “deficiency,” or def (G). In other words, def (G) is the minimum number of nodes that will be exposed in any matching.
Definition 5 Given a graph G = 〈V, E〉, a perfect matching is a matching with deficiency def (G) = |V | − 2 · ν(G) = 0.
Interesting problems concerning matchings include: does G have a large matching? does G have a perfect matching? what is a maximum matching of G? etc. Up to now we have considered only unweighted graphs. If we consider weighted graphs and sum the weights of edges included in matchings, we might also try to find the minimum-weight perfect matching of a particular graph (if one exists).
Definition 6 Given a matching M in a graph G, a path P composed of edges that alternately belong to and do not belong to M is called an M -alternating path.
Definition 7 An M -alternating path P is an M -augmenting path if the first and last vertices are M - exposed.
Figure 3 shows a simple graph with a matching M = {eab}. The path from c to a to b to d is an M - alternating path, because the edges in the path alternately belong to the matching (eca ∈/ M, eab ∈ M, ebd ∈/ M ). The same path is also an M -augmenting path because its endpoints, c and d are M -exposed; that is, they are not incident with any edge in M.
a b
c d
Figure 3: a matching M = {eab}.
Theorem 1 A matching M in a graph G = 〈V, E〉 is maximum if and only if there is no M -augmenting path.
In the textbook, Theorem 1 is called the “Augmenting Path Theorem of Matchings” [CO98]. For the proof of Theorem 1, we need the set operation “symmetric difference.” We define the symmetric difference between two sets S and T as S 4 T = { elements ∈ S or T but not both } (this is like the “exclusive or” operation ⊕).
a
e
b
c
d
Figure 5: an odd cycle; darkened edges ∈ matching M and gray vertices ∈ cover A; |M | (strictly) < |A|.
even cycles admit only two possible maximum matchings, odd cycles of size > 3 will have more (many more, as the size of the cycle increases). So it is odd cycles that cause a problem—we need to find a technique of handling odd cycles.
H_1 H_k
A
Figure 6: H 1... Hk are k odd components extracted from a graph G; A is the part of the graph left after the H’s have been extracted.
We divide a graph G into sections as shown in Figure 6 (G \ A is divided into odd components Hi... Hk). Suppose M is a matching from G. For each Hi, if there are no M -exposed vertices ∈ Hi, there must be an edge of M with one end in Hi and the other end in A. So the total number of M -exposed vertices in the graph will be at least k −|A|. Let the number of odd components (k until now) taken from G\A = oc(G\A). So the number of M -exposed vertices is ≥ oc(G \ A) − |A|. From this we conclude that, for any A ∈ V :
ν(G) ≤ 12 (|V | − oc(G \ A) + |A|)
That is, the size of a maximum matching is at most half of the total number of vertices minus the number of M -exposed vertices. If the set A chosen is a cover of G, there will be |V | − |A| odd components in G \ A (each one will be a single node). In that case the right side of the inequality will reduce to |A|, which gives us the same bound stated above, that the size of the maximum matching is at most the size of the minimum cover. This means our new bound is at least as good as the cover bound above. For the odd-cycle graph shown in Figure 5, the size of a maximum matching = 2. We choose the smallest possible A, A = ∅, so that |V | = 5, |A| = 0, G \ A = G, and (therefore) oc(G \ A) = 1; for this case we have:
ν(G) ≤ 12 (5 − 1 + 0) 2 ≤ 2
In this case the inequality is strictly equal. In fact, the inequality will be strictly equal every time a maximum matching and minimum right side are used—this is the Tutte-Berge Formula, stated more exactly below in Theorem 2.
Theorem 2 (Tutte-Berge Formula) given a graph G = 〈V, E〉,
max{ |M | : M is a matching } = min{ 12 (|V | − oc(G \ A) + |A|) : A ⊆ V }.
Theorem 2 could be used to find the size of a maximum matching and thereby a stopping condition for some maximum matching algorithm. We could simply try every possible A and take the minimum right side. But there will be 2n^ A’s, so this would be very inefficient. Tutte’s original proof of Theorem 2 was extremely complex. Here we will present some of the background for Berge’s simpler proof, published years after Tutte’s. Theorem 3 follows from the Tutte-Berge Formula above (Theorem 2).
Theorem 3 A graph G = 〈V, E〉 has a perfect matching if and only if
∀A ∈ V, oc(G \ A) ≤ |A|
The main idea of Berge’s proof involves a “shrinking” operation done on odd cycles, in which the odd cycle becomes a single vertex. Formally, we let C be an odd cycle in a graph G. We define G′^ = G × C as the graph formed from G after shrinking the odd cycle C. The set of vertices in G′^ = (V \ V (C)) ∪ {C}, where V (C) is the set of vertices in the cycle C, and the new vertex created by shrinking the cycle C is called C also. The set of edges in G′^ = E \ γ(V (C)), where γ(V (C)) is the set of edges in the odd cycle C. For each edge e ∈ G′, with vertex v one of e’s ends, if v ∈ V (C) then vertex C replaces v as the end of e in G′. All other edges remain the same in G′^ as they were in G. This process can be thought of as a series of “node identifications,” as described on page 73 of the text [CO98] in reference to the Minimum Cut Problem for undirected graphs. An illustration of the “shrinking” operation appears on page 131 of the text [CO98].
Theorem 4 Let C be an odd circuit of a graph G, let G′^ = G × C, and let M ′^ be a matching of G′. There is a matching M of G such that M ⊆ M ′^ ∪ E(C), and the number of M -exposed vertices of G is the same as the number of M ′-exposed vertices of G′.
Theorem 4 says that any matching on the reduced graph G × C can be extended into a matching in the original graph G. For the proof of Theorem 4, we let M ′^ = some matching in the graph G′^ = G×C. Either C is M ′-covered or M ′-exposed in the graph G′. We go backwards from G′^ to modify the original graph G in the following way: if C is M ′-covered in G′, we remove from G the vertex through which C was M ′-covered; if C is M ′-exposed in G′, we remove any (arbitrary) vertex from the odd cycle in G. So what we have done, in either case, is to remove two edges from an odd cycle. If two edges are removed from an odd cycle, the result is a odd-length path, which must have a perfect matching (choose the odd edges of the path: 1, 3 , 5.. .); let M ′′^ be this perfect matching. The union of the matching M ′^ from G′^ and this M ′′^ gives us a matching matching M in the original graph G (M ′^ ∪ M ′′^ = M ), satisfying the properties of the theorem. Since M ′′ is a perfect mathing of an odd-length path, it contributes no M ′′-exposed nodes. Therefore the number of M ′-exposed nodes must be equal to the number of M -exposed nodes. The size of a maximum matching from a graph G is at least the sum of the size of the maximum matching in G × C (after shrinking an odd cycle C) plus the number of edges in a maximum matching of the odd cycle C (which will always be 12 (|V (C)| − 1)), or:
ν(G) ≥ ν(G × C) + 12 (|V (C)| − 1)
Proof: Since v and w are both inessential, there exist maximum matchings M 1 and M 2 under which v and w are exposed respectively. Note that M 1 must cover w and M 2 must cover v; otherwise the edge vw can be added to M 1 (or M 2 ) to increase the size of that matching. Consider the subgraph H =< V, M 1 4 M 2 >. The component containing v consists of a path P originating from v; since v is M 1 -exposed. If P ends at another M 1 -exposed node, then, we have an M 1 -augmenting path, contradicting the maximum cardinality of M 1. Likewise, if it ends at an M 2 -exposed node other than w, then adding the edge vw to this path, we get an M 2 -exposed node. Thus, P must end at w; it thus forms an circuit C with edge vw. Note that P starts with an edge vx ∈ M 2 and ends with an edge yw ∈ M 1 , for some vertices x, y ∈ V. Thus the circuit formed with edge vw is necessarily odd. Further, M 1 is a maximum matching of G, that contains 12 (|V (C)| − 1) edges from E(C) (delete vertex v from C!) and thus C is tight. Finally, M 1 \ E(C) is a maximum matching of G × C not covering C (check?!), proving that C is an inessential node of G × C. 2 Proof: (of Tutte-Berge Formula): Let us restate the formula:
max{ |M | : M is a matching } = min{
(|V | − oc(G \ A) + |A|) : A ⊆ V } (2)
We have already shown that the LHS of (2) is less than or equal to the RHS for all A ⊆ V. Hence, all that is required is to produce a matching M and a set A, such that the number of M −exposed nodes is exactly oc(G \ A) − |A|. We provide an inductive proof. The result is certainly true, if G has no edges. Simply choose A = φ; the maximum matching has cardinality zero and so is |V | − oc(G \ A) + |A|, proving that the LHS and RHS of (2) are equal. Now consider a graph having at least one edge, say vw. We need to consider two cases:
2
[CO98] William Cook, William H. Cunningham, William Pulleyblank, and Alexander Schrijver. Combina- torial Optimization. John Wiley & Sons, 1998.