1 / 11

Min-Max Relations, Hall’s Theorem, and Matching-Algorithms

Min-Max Relations, Hall’s Theorem, and Matching-Algorithms. Graphs & Algorithms Lecture 5. TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A A A A A A A A A A. Min-Max Relations.

kylene
Download Presentation

Min-Max Relations, Hall’s Theorem, and Matching-Algorithms

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Min-Max Relations, Hall’s Theorem, and Matching-Algorithms Graphs & Algorithms Lecture 5 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAAAAAAAAA

  2. Min-Max Relations • "A theorem stating equality between the answers to a minimization problem and a maximization problem over a class of instances" (D. West). • Dual optimization problems: • maximization problem M • minimization problem N • 8 feasible solutions M2M and N2N: val(M) · val(N) • If M = N, we have a proof of optimality! • min-max relations assert the existence of such short proofs • Example: Menger’s theorem

  3. Matchings in graphs • matching: a set of independent edges, i.e., edges that share no endpoints • maximal matching: a matching that cannot be extended by any other edge • maximum matching: a matching of maximum cardinality among all maximal matchings • a vertex is matchedor saturatedif any of its incident edges is in the matching • perfect matching (1-factor): a matching that saturates all vertices • k-factor: k-regular spanning subgraph

  4. Theorem of König and Egerváry • Let G = (V, E) be an (undirected) graph. • A vertex cover C µ V is a set of vertices such that, for all e 2 E, we have e Å C ; . Theorem (König [1931], Egerváry [1931])IfG = (A[B, E) is a bipartite graph, thenthemaximumsize of a matchingin Gequalstheminimumsize of a vertex cover. ProofApply Menger’s theorem to A and B.

  5. Menger’s Theorem Theorem (multiple sources and sinks)Let G = (V, E) be a graph and S, TµV. Let • XµV be a set separating S from T of minimal size, • P be a set of disjointS – T paths of maximal size. Then we have |X| = |P|. CorollaryLet G = (A[B, E) be a graph bipartite graph. Let • XµA[B be a set separating A from B of minimal size, • P be a set of disjointA – B paths of maximal size. Then we have |X| = |P|. vertex cover matching

  6. The Marriage Problem • Given two groups, one of girls G and one of boys B. • Each girl g2G knows a some boys (g) µB. • Can all girls be married off to a boy they know? • Obvious necessary condition: each subset G' µG must satisfy |G'| · |(G')|. • Is this also sufficient?

  7. Hall's Theorem Theorem (Hall, 1935)A bipartite graph G = (A[B, E) has a matching that saturates every vertex in Aif and only if for each A' 2A, we have |A'| · |(A')| . Corollary (Frobenius, 1917)For all k > 0, every k-regular bipartite graph has a perfect matching.

  8. Augmenting paths in bipartite graphs • Let G = (A[B, E) be a bipartite graph and M be a fixed matching in G. • A path P = a…b is called M-augmenting if • a is some unsaturated vertex in A, • b is some unsaturated vertex in B, • P alternates between edges in M and EnM. • If P is an M-augmenting path, then MP is a matching of size |M| + 1. • Maximum bipartite matching algorithm: start with M = ; and extend this as long as there is an M-augmenting path (Exercise). • Running time O(|V|¢|E|)

  9. Computation of augmenting paths

  10. Algorithm of Hopcroft and Karp Theorem The breadth-first phased maximum matching algorithm runs in O(n1/2¢m) time on bipartite graphs with n vertices and m edges.

  11. Proof of the Hopcroft-Karp Algorithm Lemma 1If M is a matching of size r and M* is a matching of size s > r, then there exist at least s – r vertex-disjoint M-augmenting paths. At least this many such paths can be found in MMM*. (Exercise) Lemma 2If P is a shortest M-augmenting path and P' is MMP-augmenting, thenwehave |P'| ¸ |P| + 2|PÅP'| . Lemma 3If P1, P2, … is a list of successive shortest augmentations, then the augmentations of the same length are vertex disjoint paths. Here paths are simply edge-sets.

More Related