Matchings
A matching in a Graph
If a vertex is contained in an edge in
A maximum matching of
A complete matching or perfect matching of
Let
Let
Proof:
We now focus on matchings in bipartite graphs. Here, we sometimes say that
The deficiency of a bipartite graph
The size of a maximum matching
It is clear that
Let
Let
A bipartite graph
- Start with any matching
with at least one edge. - Search for an alternating path for
. - If an alternating path is found, construct a larger matching
by "inverting" the alternating path, i.e. adding every edge of the path that was not in , and removing the ones that were. Then repeat from 2. - If no alternating path can be found, we are done.
The brute force way is to choose an unmatched vertex