Math 2.0

Combinatorics Proof

Proof of Kőnig's theorem by alternating paths

Builds on Bipartite graphMatchingVertex coverPathSymmetric difference

Proof

We show that every vertex cover is at least as large as every matching. Then, from a maximum matching, we build a vertex cover of the same size.

Covers are at least as large as matchings.

  1. Let GG be a finite bipartite graph with parts XX and YY. Let MM be a matching and CC a vertex cover.
  2. Each edge of MM has an end in CC. A vertex is an end of at most one edge of MM. So choosing such an end for each edge of MM gives an injective map from MM to CC, and ∣M∣≤∣C∣\abs{M} \le \abs{C}.

A cover from a maximum matching.

  1. Fix a matching MM with the largest number of edges. A vertex is matched if it is an end of an edge of MM. Let UU be the set of unmatched vertices of XX.
  2. An alternating path is a path p0,p1,…,pkp_0, p_1, \dots, p_k with p0∈Up_0 \in U, such that pi−1pi∉Mp_{i-1} p_i \notin M for odd ii and pi−1pi∈Mp_{i-1} p_i \in M for even ii. As GG is bipartite and p0∈Xp_0 \in X, pi∈Xp_i \in X exactly when ii is even.
  3. Let ZZ be the set of vertices that lie on some alternating path. Let K=(X∖Z)∪(Y∩Z)K = (X \setminus Z) \cup (Y \cap Z).
  4. No alternating path ends at an unmatched vertex of YY. Suppose p0,…,pkp_0, \dots, p_k is one, with pk∈Yp_k \in Y unmatched. Then kk is odd.
  5. Let PP be its set of edges, and let M′=M△PM' = M \mathbin{\triangle} P be the symmetric difference. It drops the (k−1)/2(k-1)/2 edges pi−1pip_{i-1}p_i with ii even and adds the (k+1)/2(k+1)/2 edges with ii odd.
  6. The vertices p0p_0 and pkp_k are unmatched, and the edge of MM at an inner vertex pjp_j lies on the path. So no edge of M∖PM \setminus P touches the path. Each pjp_j is an end of exactly one added edge.
  7. Hence M′M' is a matching with ∣M∣+1\abs{M} + 1 edges. This contradicts the choice of MM.
  8. KK is a vertex cover. Let abab be an edge with a∈Xa \in X and b∈Yb \in Y. If a∉Za \notin Z, then a∈Ka \in K.
  9. Let a∈Za \in Z, on an alternating path p0,…,pj=ap_0, \dots, p_j = a, with jj even. If bb lies on this path, then b∈Zb \in Z.
  10. Otherwise, if j=0j = 0, then a∈Ua \in U, so ab∉Mab \notin M. If j≥2j \ge 2, then the edge of MM at aa is pj−1ap_{j-1}a, and b≠pj−1b \ne p_{j-1}, so ab∉Mab \notin M.
  11. In both cases p0,…,pj,bp_0, \dots, p_j, b is an alternating path, since its last edge has odd index and is not in MM. So b∈Zb \in Z, and b∈Kb \in K.
  12. Every vertex of KK is matched. Vertices of X∖ZX \setminus Z are matched, because U⊆ZU \subseteq Z. A vertex of Y∩ZY \cap Z lies on an alternating path. Cut the path at this vertex to get an alternating path ending there. By Step 6, the vertex is matched.
  13. Each edge of MM has at most one end in KK. Let ab∈Mab \in M with a∈Xa \in X and b∈Y∩Zb \in Y \cap Z, on an alternating path p0,…,pk=bp_0, \dots, p_k = b with kk odd.
  14. If aa lies on this path, then a∈Za \in Z. Otherwise the path ends with an edge not in MM, and p0,…,pk,ap_0, \dots, p_k, a is an alternating path. So a∈Za \in Z in both cases.
  15. Thus b∈Kb \in K implies a∉Ka \notin K. Since KK is a vertex cover, each edge of MM has exactly one end in KK.
  16. Map each vertex of KK to the edge of MM at it, which exists by Step 14. By Step 17, this map is a bijection from KK to MM. So ∣K∣=∣M∣\abs{K} = \abs{M}.

Conclusion.

  1. Let ν\nu be the largest size of a matching and τ\tau the smallest size of a vertex cover. By Step 2, ν≤τ\nu \le \tau.
  2. By Steps 10 to 18, there is a vertex cover KK with ∣K∣=ν\abs{K} = \nu. So τ≤ν\tau \le \nu, and ν=τ\nu = \tau.

Idea

Starting from the unmatched vertices on one side, follow paths that alternate between non-matching and matching edges. A maximum matching admits no such path to an unmatched vertex, because flipping it would give a bigger matching. Taking the unreached vertices on one side and the reached ones on the other gives a cover with one vertex per matching edge.

Reading path

To understand this page from the ground up, read these 15 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Bipartite graph definition
  2. Element definition
  3. Graph definition
  4. Matching definition
  5. Proposition concept
  6. Vertex cover definition
  7. Set definition
  8. Walk definition
  9. Disjunction definition
  10. Negation definition
  11. Path definition
  12. Union definition
  13. Set difference definition
  14. Symmetric difference definition
  15. Proof of Kőnig's theorem by alternating paths proof

Where this leads

6 pages build on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Kőnig's_theorem_(graph_theory), Constructive proof without flow concepts
About this page
TagH5463B2XND
URIm2://H5463B2XND
Kindproof
WritingW0 stub
MSC05C70
ProvesKőnig's theorem
UsesBipartite graph, Matching, Vertex cover, Path, Symmetric difference
MethodsProof by contradiction
Changed4 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.