M-alternating paths

-alternating path proof for Hall’s. ref

Theorem 1(Lemma).

Every component of the symmetric difference of two matchings is a path or an even cycle.

Proof
Let and be matchings, and let . Since and are matchings, each vertex has at most one incident edge from them. Thus has at most two edges at each vertex. It follows that every component of is a path or a cycle. Furthermore, every path or cycle in alternates between paths in and . If an odd cycle were to exist in , it would mean that the same matching has two edges incident at a vertex, which is not possible.

Theorem 2.

A matching in a graph is a maximum matching in iff has no -augmenting path.

Proof
If has an -augmenting path, a larger matching can be easily constructed. Thus, if is a maximum matching, does not contain an -augmenting path.

For the converse, assume is not a maximum matching, with . We will prove that has an -augmenting path. From the previous lemma, the components of are paths and even cycles. One of these components will have to contain more edges of than of . Such a component can only be a path that starts and ends with an edge of ; thus it is an -augmenting path.

We will now give an alternate proof for Hall’s theorem.

Proof
To prove the sufficiency of Hall’s condition, we will prove the contrapositive, that is, if there does not exist a matching saturating , then there exists a set such that . Consider any maximum matching in . By hypothesis, does not saturate . Let not be saturated by . Among all the vertices reachable from by -alternating paths in , let consist of those in , and let consist of those in . Note that . It is easy to see that matches with , so . Next, observe that , since if were in , it would be possible to construct an -augmenting path, contradicting the maximality of . Thus, , and we are done.