Docsity

Bipartite Matching: Perfect Matchings in Bipartite Graphs, Lecture notes of Computer Science

Partial preview of the text

Download Bipartite Matching: Perfect Matchings in Bipartite Graphs and more Lecture notes Computer Science in PDF only on Docsity!

Bipartite Matching

CSE 3500: Algorithms and Complexity

Hanna Aknouche-Martinsson, PhD

Department of Computer Science and Engineering

Introduction โ€“ Bipartite Matching

Prerequisite: Graphs

Graph

A graph consists of a pair of sets G = (V , E) I (^) a collection V of nodes (vertices) I (^) a collection E of edges

An edge e โˆˆ E is represented as a two-element subset of V : I (^) e = (u, v ), for some u, v โˆˆ V I (^) u and v are called the ends of e

Bipartite Matching

Matching

A matching in a bipartite graph G = (V , E) is a subset of the edges M โІ E such that every node appears in at most one edge of M. A matching is perfect if every node appears in exactly one edge of M.

Bipartite Matching

Matching

A matching in a bipartite graph G = (V , E) is a subset of the edges M โІ E such that every node appears in at most one edge of M. A matching is perfect if every node appears in exactly one edge of M.

matching matching of perfect matching maximum size

Perfect Matchings

I |X | 6 = |Y |

I (^) No perfect matching

I (^) |X | = |Y | I (^) No perfect matching I (^) Unique perfect matching I (^) Multiple perfect matchings

What about the graph to the right?

x 1 y 1

x 2 y 2

x 3 y 3

x 4 y 4

x 5 y 5

Perfect Matchings

I |X | 6 = |Y |

I (^) No perfect matching

I (^) |X | = |Y | I (^) No perfect matching I (^) Unique perfect matching I (^) Multiple perfect matchings

What about the graph to the right? โˆ’โ†’ Unique perfect matching

x 1 y 1

x 2 y 2

x 3 y 3

x 4 y 4

x 5 y 5