6.1 Hall’s marriage theorem and SDR

Definition 6.1.

A subset M of edges is said to be independent / matching if no two edges are incident on any vertex or equivalently, every vertex is contained in at most one edge. A complete matching M on a subset S⊂V is a matching that contains all the vertices in S. A perfect matching is a complete matching on G.

Alternatively one can consider a matching of a graph M as a subgraph of G such that dM⁢(v)=1 for all v∈V⁢(M). A matching is perfect if M is spanning. A vertex v is said to be saturated if v∈M and else unsaturated. For a subset S⊂V, N⁢(S)=⋃v∈SN⁢(v).

Theorem 6.2 (Hall’s marriage theorem ; Hall, 1935).

Let G be a bi-partite graph with the two vertex sets being V1,V2. Then there exists a complete matching on V1 iff |N⁢(S)|≥|S| for all S⊂V1.

We will give a proof via induction now and a later exercise will involve proof using max-flow min-cut theorem. See [Diestel 2000, Section 2.1] for two more proofs.

Proof.

Let |V1|=k and our proof will be by induction on k. If k=1, the proof is trivial.

Let G=V1∪V2 be such that the result holds for any graph with strictly smaller V1.

Suppose that |N⁢(S)|≥|S|+1 for all S⊊V1. Then choose (v,w)∈E∩V1×V2 and consider the induced subgraph G′:=<V−{v,w}>. Since we have removed only w from V2 and that |N⁢(S)|≥|S|+1 for all S⊊V1, we get that |N⁢(S′)|≥|S′| for all S′⊂V1−{v}. Thus there is a complete matching M on V1−{v} in G′ by induction hypothesis and M∪(v,w) is a complete matching on V1 in G as desired.

If the above is not true i.e., there exists A⊂V1 such that N⁢(A)=B and |A|=|B|. Then, by induction hypothesis, there is a complete matching M0 on A in the induced subgraph <A∪B>. Trivially, Hall’s condition holds i.e., for all S⊂A, |N⁢(S)∩B|=|N⁢(S)|≥|S|. Let G′:=G−<A∪B>. Let S⊂V1−A. Suppose if |N′⁢(S)|<|S| where N′⁢(S)=N⁢(S)∩(V2−B). Then, we have that N⁢(S∪A)=N′⁢(S)∪B and hence |N⁢(S∪A)|≤|N′⁢(S)|+|B|<|S|+|A|, a contradiction. Hence, G′ also satisfies Hall’s condition and again by induction hypothesis G′ has a complete matching M′ on V1−A. Thus, we have a complete matching M:=M0∪M′ on V1 in G. ∎

Exercise(A) 6.3.

For k>0, a k-regular bipartite graph has a perfect matching.

Proposition 6.4.

Let d≥1. Let G be a bipartite graph on V1⊔V2 such that |N⁢(S)|≥|S|−d for all S⊂V1. Then G has a matching with at least |V1|−d independent edges.

Proof.

Set V2′:=V2∪[d]. Define G′ with vertex set as V1⊔V2′ and edge set as E⁢(G)∪(V1×[d]). Then, it is easy to see that Hall’s condition is true on G′ and hence there is a complete matching M of V1 in G′. Now, if we remove the edes in M incident on [d], we get a matching with at least |V1|−d edges as required. ∎

Exercise(A) 6.5.

Let G be a bi-partite graph with partitions V1={x1,…,xm} and V2={y1,…,yn}. Then G has a subgraph H such that dH⁢(xi)=di,dH⁢(yj)≤1, ∀1≤i≤m and ∀1≤j≤n iff for all S⊂V1, we have that |N⁢(S)|≥∑xi∈Sdi.

Definition 6.6 (Factor of a graph ).

Given a graph G, a factor of G is a spanning subgraph. Equivalently, a subgraph H is said to be a factor (of G) if V⁢(H)=V⁢(G). An r-factor is a factor that is r-regular.

Thus, 1-factors are nothing but perfect matchings.

Theorem 6.7 (Petersen, 1891).

Every regular graph of positive even degree has a 2-factor.

Proof.

Let G be any 2⁢k-regular graph for k≥1. WLOG, let G be connected. Let v1⁢v2⁢…⁢vn⁢v0 be the Eulerian circuit in G. Now, we replace each vertex v by two vertices v−,v+ and the edge vi⁢vi+1 by vi−⁢vi+1+. Thus we get a new k-regular graph G′. By Exercise 6.3, there is a 1-factor in G′. Now, by merging the vertices v−,v+ in G′, we get a 2-factor in G. ∎

Here is another application of Hall’s marriage theorem.

Definition 6.8.

(System of Distinct Representatives (SDR) ) Let A1,…,An be a collection of sets. A family {a1,…,an} is said to be a SDR if ai are all distinct and ai∈Ai,1≤i≤n.

Corollary 6.9.

A collection A1,…,An has a SDR iff for all I⊂[n], we have that |∪i∈IAi|≥|I|.

Proof.

Define a bi-partite graph G on V1=[n] and V2=∪i=1nAi as follows. i∼a if a∈Ai. A complete matching M on V1 in G gives a SDR easily. If (i,a)∈M, then set ai=a.

The condition for all I⊂[n], we have that |∪i∈IAi|≥|I| is equivalent to Hall’s condition for the bi-partite graph G and so the proof follows. ∎

Exercise(A) 6.10.

Let S1,…,Sm be r-element subsets of [n] with m≤n and each element belongs to exactly d many subsets. Then S1,…,Sm has a SDR.

There exist some other easy applications of Hall’s theorem - Chvátal-Szemerédi theorem, Birkhoff-von Neumann theorem on on doubly stochastic matrices and Ryser’s theorem on latin rectangles; See [Jukna 2011, Sections 5.1 and 5.2]. We will see the later applications in the next section.