Tutorials › Graph Theory (Undergraduate) › Tight Hall Sets and Forced Matching Structure

Hall's Marriage Theorem · Tutorial 283 of 799

Tight Hall Sets and Forced Matching Structure

Use tight subsets in Hall’s condition to determine which vertices must be assigned together and to decompose matching problems.

Intermediate 9 min read

What You'll Learn

  • Define a tight Hall set and identify one from a bipartite graph.
  • Prove that a matching saturating the left side sends a tight set bijectively onto its neighborhood.
  • Explain why vertices outside a tight set cannot use its neighborhood in a saturating matching.
  • Split a Hall-satisfying assignment problem into the tight-set block and its complement.
  • Track how nested tight sets can force individual representative choices.
  • Detect the mistake of treating an available edge as an edge a saturating matching can use.

When Hall’s Inequality Is Exact

Hall’s condition says that every group of left-side vertices has at least as many available neighbors as vertices in the group. When the two numbers are equal, there is no spare neighbor in that group: any matching that covers the group must use every one of those neighbors. This exactness can force the form of a representative assignment, even when several individual edges are available.

Throughout, \(G=(X\cup Y,E)\) is a finite simple bipartite graph with disjoint parts \(X\) and \(Y\), and every edge has one endpoint in each part. For \(S\subseteq X\), its neighborhood is \(N(S)=\{y\in Y: xy\in E\text{ for some }x\in S\}\). A matching is a set of edges with no shared endpoints; it saturates \(X\) if every vertex of \(X\) is incident to one of its edges. Equivalently, it assigns each \(x\in X\) a distinct neighbor in \(Y\), a system of distinct representatives.

Definition: A set \(S\subseteq X\) is a tight Hall set if \(|N(S)|=|S|\). It is tight relative to the left part \(X\). The empty set is tight, since both sizes are zero; the most informative cases are usually nonempty sets.

Hall’s condition for a bipartite graph with left part \(X\) is \(|N(U)|\ge |U|\) for every \(U\subseteq X\). Hall’s theorem states that a matching saturating \(X\) exists if and only if this condition holds. We use that earlier result to show how tight sets constrain all such matchings, not just whether one exists.

The Forced-Use Principle

Theorem: Let \(S\subseteq X\) be tight, and let \(M\) be any matching that saturates \(X\). The vertices of \(S\) are matched bijectively to the vertices of \(N(S)\). In particular, no vertex of \(X\setminus S\) is matched to a vertex of \(N(S)\).

Proof. Every vertex \(x\in S\) is matched by \(M\) to a neighbor, and every neighbor of a vertex in \(S\) belongs to \(N(S)\). The matching therefore sends the \(|S|\) vertices of \(S\) to distinct vertices in \(N(S)\). Its image has size \(|S|\), while tightness gives \(|N(S)|=|S|\); hence the image is all of \(N(S)\). Thus every vertex of \(N(S)\) is already matched to a vertex of \(S\). Since a matching cannot use a vertex twice, no vertex of \(X\setminus S\) can be matched to \(N(S)\). If \(S=\varnothing\), both \(S\) and \(N(S)\) are empty and the conclusions hold vacuously. \(\square\)

The theorem is a statement about every matching saturating \(X\). It does not say that each vertex in \(S\) has a uniquely determined partner. Rather, the group \(S\) must use the whole neighborhood \(N(S)\), with the individual assignments forming a bijection. It also does not say there are no edges from \(X\setminus S\) into \(N(S)\); such edges may exist, but a saturating matching cannot select them.

Worked Example: A Tight Pair with Several Assignments

Let \(X=\{a,b,c,d\}\), \(Y=\{1,2,3,4,5\}\), and let the edge set be \(E=\{a1,a2,b1,b2,c3,c4,d4,d5\}\). Take \(S=\{a,b\}\). Its neighborhood is \(N(S)=\{1,2\}\), so \(|N(S)|=2=|S|\).

In any matching saturating \(X\), \(a\) and \(b\) must use both 1 and 2, in either order. For the remaining vertices, \(c\) and \(d\) must use distinct neighbors from \(\{3,4,5\}\). If \(c\) is assigned 3, then \(d\) can be assigned 4 or 5, giving two choices. If \(c\) is assigned 4, then \(d\) cannot use 4 and must use 5, giving one choice. Thus there are \(2+1=3\) assignments for \(c,d\). The tight block has two assignments, so altogether there are \(2\cdot3=6\) saturating matchings.

Check: The six are obtained by choosing either \(a1,b2\) or \(a2,b1\), then one of \(c3,d4\), \(c3,d5\), or \(c4,d5\). These are all valid edge pairs, and the two choices for \(a,b\) and three for \(c,d\) exhaust the possibilities because the first pair has only neighbors 1 and 2, while the second pair has only neighbors 3, 4, and 5.

How Tight Sets Split the Assignment Problem

A tight set separates the chosen edges of any saturating matching into two blocks: the vertices in \(S\) use \(N(S)\), and the vertices outside \(S\) use \(Y\setminus N(S)\). This is true even if there are edges between the two blocks in the graph. The next result says that, when Hall’s condition holds, each block is itself a valid smaller assignment problem.

Theorem: Suppose \(G=(X\cup Y,E)\) satisfies Hall’s condition, and \(S\subseteq X\) is tight. The bipartite graph on parts \(S,N(S)\) and the bipartite graph on parts \(X\setminus S,Y\setminus N(S)\), retaining the edges of \(G\) between the respective parts, each satisfy Hall’s condition on their left part. Consequently, each has a matching saturating its left part, and the union of these two matchings saturates \(X\).

Proof. For the first graph, take any \(U\subseteq S\). Its neighbors in that graph are exactly \(N(U)\): since \(U\subseteq S\), every neighbor of \(U\) is in \(N(S)\). Hall’s condition in \(G\) gives \(|N(U)|\ge |U|\). Thus the first graph satisfies Hall’s condition.

For the second graph, take any \(T\subseteq X\setminus S\). Its neighborhood within \(Y\setminus N(S)\) is \(N(T)\setminus N(S)\). Apply Hall’s condition in \(G\) to \(S\cup T\). Since \(S\) and \(T\) are disjoint and \(S\) is tight,

$$ |N(S)|+|N(T)\setminus N(S)| =|N(S)\cup N(T)| =|N(S\cup T)| \ge |S\cup T| =|S|+|T|. $$

As \(|N(S)|=|S|\), subtracting these equal quantities gives \(|N(T)\setminus N(S)|\ge |T|\). This holds for every \(T\subseteq X\setminus S\), so the second graph also satisfies Hall’s condition. Hall’s theorem now gives a matching saturating the left part in each graph. Their vertex sets are disjoint on both sides, so the union is a matching and saturates \(X\). This also covers \(S=\varnothing\) or \(S=X\): the corresponding empty left part requires no edges, and the same inequalities apply. \(\square\)

The decomposition is useful in both directions. Any full matching restricts to matchings within the two blocks by the forced-use theorem. Conversely, if matchings for the two blocks have been found, their union gives a full assignment. Thus one may solve the two smaller problems separately and combine their solutions.

Worked Example: A Tight Set Blocks an Available Edge

Let \(X=\{a,b,c\}\), \(Y=\{1,2,3,4\}\), and \(E=\{a1,a2,b1,b2,c1,c3,c4\}\). Set \(S=\{a,b\}\). Then \(N(S)=\{1,2\}\), so \(S\) is tight. Notice that \(c1\) is an edge: vertex \(c\) is adjacent to a vertex in \(N(S)\).

Nevertheless, in any matching saturating \(X\), \(a\) and \(b\) must occupy 1 and 2. Therefore \(c\) cannot be matched to 1, even though \(c1\in E\); it must use 3 or 4. There are two assignments for \(a,b\), namely \(a1,b2\) and \(a2,b1\), and two choices for \(c\), namely \(c3\) or \(c4\). The total is \(2\cdot2=4\) saturating matchings.

Check: They are \(a1,b2,c3\); \(a1,b2,c4\); \(a2,b1,c3\); and \(a2,b1,c4\). Each uses three distinct neighbors. Every matching saturating \(X\) must use 1 and 2 for \(a,b\), so none using \(c1\) has been omitted.

Nested Tight Sets Can Force Individual Choices

A tight set forces a group to use a group of neighbors; several overlapping or nested constraints can narrow the individual choices further. In particular, a singleton tight set forces its sole vertex to use its sole neighbor. Larger tight sets may then force additional choices after that neighbor is taken.

Worked Example: Nested Constraints in a Chain

Let \(X=\{a,b,c,d\}\), \(Y=\{1,2,3,4,5\}\), and \(E=\{a1,b1,b2,c2,c3,d3,d4,d5\}\). The sets \(S_1=\{a\}\), \(S_2=\{a,b\}\), and \(S_3=\{a,b,c\}\) have neighborhoods \(\{1\}\), \(\{1,2\}\), and \(\{1,2,3\}\), respectively. Their neighborhood sizes equal their sizes, so all three are tight.

For any matching saturating \(X\), the singleton \(S_1\) forces \(a\) to use 1. Since \(S_2\) must use both 1 and 2, \(b\) must then use 2. Since \(S_3\) must use 1, 2, and 3, \(c\) must use 3. Finally, \(d\) can use 4 or 5. The two possible assignments are therefore \(a1,b2,c3,d4\) and \(a1,b2,c3,d5\).

Check: Each listed assignment uses edges in \(E\) and has no repeated right-side vertex, so both saturate \(X\). The forced choices leave only 4 and 5 for \(d\), and both are its neighbors; hence there are exactly two.

A Common Mistake and a Practical Use

Common mistake: In the second example, one might argue, “Since \(c1\) is an edge and \(c\) has not yet been assigned, assign \(c\) to 1.” That calculation checks only whether the edge exists; it does not check whether its endpoint is already used. The tight set \(\{a,b\}\) has two vertices and exactly two neighbors, so a matching saturating \(X\) must match \(a,b\) to both 1 and 2. The corrected conclusion is that \(c1\) is available in the graph but unavailable to a matching saturating \(X\).

When analyzing a representative problem, a tight set can therefore be used as a structural certificate. First verify \(|N(S)|=|S|\); then reserve all of \(N(S)\) for \(S\). The remaining choices for \(X\setminus S\) lie in \(Y\setminus N(S)\), and their Hall inequalities follow from applying the original condition to \(S\cup T\), as in the decomposition proof. This separates a global assignment into smaller pieces without assuming that cross-edges are absent.

Keep the distinction between possible edge and usable edge in a saturating matching in view. Tightness does not necessarily determine which vertex of \(S\) receives which neighbor, but it determines the set of neighbors the group must consume. Further tight sets, especially nested ones, may then turn that group-level restriction into forced individual assignments.

Check Your Understanding

For each question, distinguish neighborhood constraints from individual edge choices.

  1. Let \(S\subseteq X\) satisfy \(|S|=3\) and \(|N(S)|=3\). What does every matching saturating \(X\) have to do with \(S\) and \(N(S)\)?
  2. Can an edge from \(X\setminus S\) to \(N(S)\) exist when \(S\) is tight? Explain why a saturating matching cannot use such an edge.
  3. In the graph of the nested-constraints example, why must \(b\) use 2 after \(a\) uses 1?
  4. For \(T\subseteq X\setminus S\), express its neighborhood in the residual graph and derive its Hall inequality from the condition on \(S\cup T\).
  5. Why does the empty set satisfy the definition of a tight Hall set, and what does the forced-use theorem say in that case?