Presentation is loading. Please wait.

Presentation is loading. Please wait.

CS138A 1999 1 Maximum Bipartite Matching Peter Schröder.

Similar presentations


Presentation on theme: "CS138A 1999 1 Maximum Bipartite Matching Peter Schröder."— Presentation transcript:

1 CS138A 1999 1 Maximum Bipartite Matching Peter Schröder

2 CS138A 1999 2 Matching Definition given an undirected graph G=(V,E) a matching is a subset M of E such that for all vertices v in V at most one edge of M is incident on v a maximum matching is a matching of maximal cardinality here we will look at matchings in bipartite graphs (definition)

3 CS138A 1999 3 Finding Maximal Match Corresponding flow network given an undirected bipartite graph G=(V,E) the corresponding flow network G’=(V’,E’) is found as: V’=V+{s,t}, E’ contains all edges of E and new edges connecting s to L and R to t; each edge in E’ has unit capacity

4 CS138A 1999 4 Flow Network Matchings and maximal flows Lemma 10: Let G=(V,E) be a bipartite graph with corresponding flow network G’; if M is a matching in G then there is an integer valued flow f in G’ with value |f|=|M| and vice versa Theorem 11 (Integrality Theorem): if the capacity function c takes on only integral values then Ford-Fulkerson will yield |f| which is integer valued; moreover f(u,v) will be an integer for all u,v in V

5 CS138A 1999 5 Flow Network Matchings and maximal flows Corollary 12: the cardinality of a maximum matching in a bipartite graph G is the value of a maximum flow in its corresponding flow network G’ Complexity cardinality of M at most min(L,R)=O(V); the value of the maximum flow in G’ is O(V) hence total time O(VE)


Download ppt "CS138A 1999 1 Maximum Bipartite Matching Peter Schröder."

Similar presentations


Ads by Google