Maximal is not maximum
A matching is a set of edges with no shared endpoint: each vertex is paired with at most one partner. Workers to tasks, students to schools, kidney donors to recipients, and radio channels to transmitters are all matchings once you draw the compatibility graph.
| Term | Meaning |
|---|---|
| maximal | no edge can be added without breaking the rule |
| maximum | largest possible number of edges |
| perfect | every vertex is matched |
Greedy picking gives a maximal matching in linear time, and it is never terrible: if is maximal and is maximum, then . Every edge of touches some edge of (otherwise it could be added), and each edge of has only two endpoints to touch with.
Gotcha: On the path , greedily taking the middle edge gives a maximal matching of size 1, while has size 2. The factor of 2 is reached, and no local rule avoids it in general. Getting to the true maximum needs the global idea on the next step.

