Follow your curiosity

What discovery has been shared with you?

Start with one fact. Explore it, go deeper, then follow whichever branch catches your imagination.

Choose subjects for a surprise

Exploring any topic

Begin your discovery

Your next discovery is one click away.

Choose one or more subjects above, or leave Any Topic selected and let curiosity decide.

Mathematics

Perfect Matchings in Bipartite Graphs and Hall's Marriage Theorem

Quick fact

Hall's theorem was first proved by Philip Hall in 1935 to solve a problem about choosing distinct representatives for a collection of sets, and it later became a cornerstone of matching theory in bipartite graphs.

Why this is interesting

Imagine you have to pair each boy with a girl they know for a school dance. When is it possible to pair everyone up? This question, simple yet deep, leads to one of the most elegant theorems in graph theory.

Read the full explanation

Understanding Perfect Matchings in Bipartite Graphs and Hall's Marriage Theorem

A bipartite graph consists of two disjoint groups of vertices (say, boys and girls) where every edge connects a boy to a girl. A perfect matching is a set of edges that pairs each boy with exactly one girl and each girl with exactly one boy, covering all vertices. For example, if there are 3 boys and 3 girls, a perfect matching would use 3 edges, each boy matched to a distinct girl. The central question is: when does a perfect matching exist? A naive condition might be that every boy has at least one girl they like, but that's not enough. Consider 2 boys who both only like the same 1 girl; they can't both be matched, so no perfect matching exists. The key is that every subset of boys must have enough distinct girls they collectively like. This is exactly Hall's condition: for any group of k boys, the set of girls they like must have size at least k. If this condition holds for every possible group, then a perfect matching is guaranteed. This condition is both necessary and sufficient.

A deeper explanation

Why does Hall's condition work? The necessity is clear: if a group of k boys can only reach fewer than k girls, then they cannot each have a distinct girl, so no perfect matching can exist. The sufficiency is the surprising part: if Hall's condition holds, a perfect matching always exists. One way to see this is by induction. If every proper subset of boys has more than enough girls (strictly more than its size), then we can pick any boy, match him to any girl he likes, and the remaining graph still satisfies Hall's condition, so by induction we can match the rest. If some proper subset has exactly the number of girls as its size, then within that subset we can find a perfect matching (again by induction, since the condition holds there). After matching that subset, the remaining boys cannot have all their girls already used, because then they would have only the original subset's girls, violating Hall's condition for the whole group. Thus, they also have a matching. This inductive proof is constructive and reveals the theorem's power. Hall's theorem is a fundamental result in combinatorial optimization; it underpins algorithms for finding maximum matchings, and it has applications in scheduling, assigning tasks, and even in the famous stable marriage problem. The theorem also connects to linear algebra and matroid theory, showing how a simple neighborhood condition can guarantee a global property.

Keep FACTREE close

Internet access is required. Updates arrive when you reopen or reload the app. You may need to sign in again in the installed app.