Problem Solving

Bipartite Matching

Children use threads to pair objects across a table.

Bipartite Matching definition

A bipartite matching is a set of edges in a bipartite graph with no shared endpoints.

In Spanish
emparejamiento bipartito
Topic
Graph algorithms and networks

Bipartite Matching in a picture

Bipartite Matching diagramChoose two allowed links between students and projects without reusing a student or project.Left group: A and BThese might represent studentsRight group: X and YThese might represent projectsSelect A–X and B–YEach endpoint is used once
Choose two allowed links between students and projects without reusing a student or project.

How it works

The graph has two vertex groups, and each allowed edge joins one group to the other. A matching chooses compatible pairs so that each vertex appears in at most one pair. A maximum matching has as many pairs as possible.

Worked examples

Can A–X and A–Y belong to the same matching?

No. They share endpoint A.

With left group of size 3 and right group of size 2, how large can a matching be?

At most 2, depending on allowed edges.

If A–X and B–Y exist, do they form a matching?

Yes. Their endpoints are all distinct.

Common mistake

Each chosen pair must be an existing edge. Equal group sizes alone do not guarantee that every vertex can be matched.

Quick check

Which edge set is a matching?

What does a maximum matching maximize?

Show answer

The number of chosen pairs.

What happens if all vertices are matched?

Show answer

The matching is perfect.

Sources

Flashcard

Bipartite Matching

Reveal the definition

A bipartite matching is a set of edges in a bipartite graph with no shared endpoints.

Effortless Math. “Bipartite Matching.” Math Dictionary.