Chapter

Matching and Hall's Theorem Intro

The module introduces matchings, systems of distinct representatives, Hall's condition, regular bipartite graphs, and augmenting paths.
Log in to track solved progress and bookmarks.

Theory

Key Idea

A matching chooses edges with no common endpoints. In bipartite graphs, this is the language of assigning tasks, choosing representatives, and forming pairs.

Hall's theorem gives the exact criterion: the left part \(A\) can be fully covered by a matching if and only if for every \(S\subseteq A\), the neighbour set \(N(S)\) has size at least \(|S|\).

Basic Facts

  • Hall's necessity is simple: different vertices of \(S\) must be matched to different neighbours in \(N(S)\).
  • Hall's condition is stated for all subsets, but in problems it is often proved by counting edges.
  • If a bipartite graph is \(d\)-regular and the parts are equal, then it has a perfect matching.
  • A matching is not maximum if and only if there exists an augmenting path.

When to Use This Method

  • You need to choose distinct elements from several sets.
  • You need to assign different tasks, seats, days, representatives, or partners.
  • A bipartite graph is given and one needs to cover one part or both parts.
  • There are local restrictions of the form “who may receive what”.

How to Recognise the Method

If objects of one type must receive pairwise distinct objects of another type, build a bipartite graph: requirements on the left, possible choices on the right.

Then check Hall's condition: any group of requirements must have at least as many available options as its size.

Typical Mistakes

  • Checking Hall's condition only for single vertices.
  • Confusing a maximal matching with a perfect matching.
  • Forgetting that an SDR is a matching covering the sets, not the elements.
  • In a regular bipartite graph, failing to prove that the two parts have equal size.

Mini-Checklist

  • Define the left and right parts.
  • Draw an edge if the choice is allowed.
  • State which part must be covered.
  • For arbitrary \(S\), estimate \(|N(S)|\).
  • If the matching is not maximum, look for an augmenting path.

Examples

Example 1. What a Matching Is

A matching is a set of edges with no common endpoints. In the star \(K_{1,n}\), any matching contains at most one edge because all edges share the centre.

Example 2. Necessity of Hall's Condition

If a set \(S\) in the left part is covered by a matching, its vertices are matched to distinct vertices of \(N(S)\). Therefore \(|N(S)|\ge |S|\).

Example 3. Systems of Representatives

For sets \(A_1,\ldots,A_n\), a system of distinct representatives is a choice \(a_i\in A_i\), with all \(a_i\) distinct. This is a matching between sets on the left and elements on the right.

Example 4. Regular Bipartite Graph

If a bipartite graph is \(d\)-regular, then for every left-side set \(S\), \(d|S|\) edges leave \(S\). All enter \(N(S)\), and each right-side vertex receives at most \(d\) of them, so \(d|S|\le d|N(S)|\), hence \(|N(S)|\ge |S|\). By Hall, a matching exists.

Example 5. Assigning Problems

If every group of \(k\) students can collectively solve at least \(k\) different problems, then one can assign each student a different available problem. This is exactly Hall's condition.

Example 6. Robustness

If for every \(S\), \(|N(S)|\ge |S|+1\), then after deleting any one right-side object we still have \(|N(S)|\ge |S|\), so the matching remains possible.

Example 7. Augmenting Path

If a path starts and ends at uncovered vertices and its edges alternate: not in the matching, in the matching, not in the matching, then switching along the path increases the matching size by \(1\).

Example 8. Decomposing a Regular Graph

In a \(d\)-regular bipartite graph, find a perfect matching, remove it, obtain a \((d-1)\)-regular graph, and repeat. Thus the edges decompose into \(d\) perfect matchings.

Problems

Problems

#8.1
#8.1

A Star and a Matching

Graph Theory Grade 8 Grade 9 ★★☆☆☆

In the star \(K_{1,n}\), find the largest possible size of a matching.

Details
Problem: COM-B2-M08-P001
Difficulty: Level 2 of 5
Tag: Graph Theory
Grade: Grade 8, Grade 9
#8.2
#8.2

Cover the Left Part

Bipartite graphs Grade 8 Grade 9 ★★☆☆☆

In a bipartite graph, a matching covers all \(a\) vertices of the left part. Prove that the right part contains at least \(a\) vertices.

Details
Problem: COM-B2-M08-P002
Difficulty: Level 2 of 5
Tag: Bipartite graphs
Grade: Grade 8, Grade 9
#8.3
#8.3

Necessity of Hall

Matching Grade 8 Grade 9 ★★☆☆☆

Suppose a bipartite graph has a matching covering the whole left part \(A\). Prove that for every \(S\subseteq A\), \(|N(S)|\ge |S|\).

Details
Problem: COM-B2-M08-P003
Difficulty: Level 2 of 5
Tag: Matching
Grade: Grade 8, Grade 9
#8.4
#8.4

Two Identical Sets

Hall Grade 8 Grade 9 ★★☆☆☆

Let \(A_1=A_2=\{1,2\}\), \(A_3=\{2,3\}\). Find a system of distinct representatives.

Details
Problem: COM-B2-M08-P004
Difficulty: Level 2 of 5
Tag: Hall
Grade: Grade 8, Grade 9
#8.5
#8.5

Maximal by Inclusion

Matching Grade 8 Grade 9 ★★☆☆☆

In a graph, a matching is chosen so that no edge can be added to it. Prove that there is no edge between two uncovered vertices.

Details
Problem: COM-B2-M08-P005
Difficulty: Level 2 of 5
Tag: Matching
Grade: Grade 8, Grade 9
#8.6
#8.6

Three Clubs and Three Students

Hall Grade 9 Grade 10 ★★★☆☆

Three clubs have possible leaders \(A_1=\{a,b\}\), \(A_2=\{b,c\}\), \(A_3=\{a,c\}\). Prove that distinct leaders can be chosen for all clubs.

Details
Problem: COM-B2-M08-P006
Difficulty: Level 3 of 5
Tag: Hall
Grade: Grade 9, Grade 10
#8.7
#8.7

Large Left Degrees

Bipartite graphs Grade 9 Grade 10 ★★★☆☆

In a bipartite graph, every left vertex has degree at least \(3\), and every right vertex has degree at most \(3\). Prove that there is a matching covering the whole left part.

Details
Problem: COM-B2-M08-P007
Difficulty: Level 3 of 5
Tag: Bipartite graphs
Grade: Grade 9, Grade 10
#8.8
#8.8

Regular Bipartite Graph

Bipartite graphs Grade 9 Grade 10 ★★★☆☆

Prove that every \(d\)-regular bipartite graph with \(d>0\) has a matching covering the whole left part.

Details
Problem: COM-B2-M08-P008
Difficulty: Level 3 of 5
Tag: Bipartite graphs
Grade: Grade 9, Grade 10
#8.9
#8.9

Robust Choice

Hall Grade 9 Grade 10 ★★★☆☆

For a family of sets \(A_1,\ldots,A_n\), the union of any \(k\) of them contains at least \(k+1\) elements. Prove that after deleting any one element, an SDR can still be chosen.

Details
Problem: COM-B2-M08-P009
Difficulty: Level 3 of 5
Tag: Hall
Grade: Grade 9, Grade 10
#8.10
#8.10

Augmenting Path

Matching Grade 9 Grade 10 ★★★☆☆

Suppose with respect to a matching there is a path that starts and ends at uncovered vertices, and its edges alternate: unchosen, chosen, unchosen, and so on. Prove that the matching size can be increased by \(1\).

Details
Problem: COM-B2-M08-P010
Difficulty: Level 3 of 5
Tag: Matching
Grade: Grade 9, Grade 10
#8.11
#8.11

Intervals of Days

Hall Grade 9 Grade 10 ★★★☆☆

Each of \(n\) talks may be scheduled on certain allowed days. For any \(k\) talks, the union of their allowed days contains at least \(k\) days. Prove that all talks can be assigned distinct days.

Details
Problem: COM-B2-M08-P011
Difficulty: Level 3 of 5
Tag: Hall
Grade: Grade 9, Grade 10
#8.12
#8.12

Section Representatives

Hall Grade 9 Grade 10 ★★★☆☆

Each of \(n\) sections contains some students. Prove that one can choose a different representative from each section if and only if the union of any \(k\) sections contains at least \(k\) students.

Details
Problem: COM-B2-M08-P012
Difficulty: Level 3 of 5
Tag: Hall
Grade: Grade 9, Grade 10
#8.13
#8.13

After Deleting a Vertex

Matching Grade 10 ★★★★☆

In a bipartite graph with left part \(A\), \(|N(S)|\ge |S|+2\) for every nonempty \(S\subseteq A\). Prove that after deleting any two vertices of the right part, there is still a matching covering \(A\).

Details
Problem: COM-B2-M08-P013
Difficulty: Level 4 of 5
Tag: Matching
Grade: Grade 10
#8.14
#8.14

Unequal Degree Bounds

Bipartite graphs Grade 10 ★★★★☆

In a bipartite graph, every left vertex has degree at least \(5\), and every right vertex has degree at most \(4\). Prove that there is a matching covering the left part.

Details
Problem: COM-B2-M08-P014
Difficulty: Level 4 of 5
Tag: Bipartite graphs
Grade: Grade 10
#8.15
#8.15

Perfect Matching in a Regular Graph

Bipartite graphs Grade 10 ★★★★☆

Prove that every \(d\)-regular bipartite graph with \(d>0\) has a perfect matching.

Details
Problem: COM-B2-M08-P015
Difficulty: Level 4 of 5
Tag: Bipartite graphs
Grade: Grade 10
#8.16
#8.16

Forbidden Days

Casework Grade 10 ★★★★☆

There are \(n\) exams and \(n\) days. Each exam is forbidden on at most one day, and each day is forbidden for at most one exam. Prove that the exams can be assigned to distinct days respecting the restrictions.

Details
Problem: COM-B2-M08-P016
Difficulty: Level 4 of 5
Tag: Casework
Grade: Grade 10
#8.17
#8.17

Maximum and Augmenting Path

Matching Grade 10 ★★★★☆

Prove: if there exists an augmenting path with respect to a matching, then the matching is not maximum in size.

Details
Problem: COM-B2-M08-P017
Difficulty: Level 4 of 5
Tag: Matching
Grade: Grade 10
#8.18
#8.18

Criterion for a Maximum Matching

Matching Grade 10 Grade 11 ★★★★★

Prove that a matching is maximum in size if and only if there is no augmenting path with respect to it.

Details
Problem: COM-B2-M08-P018
Difficulty: Level 5 of 5
Tag: Matching
Grade: Grade 10, Grade 11
#8.19
#8.19

Decomposition into Perfect Matchings

Bipartite graphs Grade 10 Grade 11 ★★★★★

Prove that the edges of every \(d\)-regular bipartite graph can be decomposed into \(d\) perfect matchings.

Details
Problem: COM-B2-M08-P019
Difficulty: Level 5 of 5
Tag: Bipartite graphs
Grade: Grade 10, Grade 11
#8.20
#8.20

Large Sets

Degree Counting Grade 10 Grade 11 ★★★★★

There is a family of finite sets \(A_1,\ldots,A_n\). Each element belongs to at most \(r\) sets, and each set has size at least \(r\). Prove that the family has a system of distinct representatives.

Details
Problem: COM-B2-M08-P020
Difficulty: Level 5 of 5
Tag: Degree Counting
Grade: Grade 10, Grade 11

Ladders

No published ladders were found.
Previous Chapter
Next Chapter