A Two-Approximation for Vertex Cover
Build a cover from a maximal matching and certify its ratio without solving maximum matching.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Endpoints cover every edge
Repeatedly take an edge with both endpoints unused, then mark its endpoints. The chosen edges form a matching \(M\) that is maximal by inclusion. If any edge had neither endpoint in this set, adding it would preserve matching, contradicting maximality. Consequently the \(2|M|\) marked vertices are a cover.
Disjoint edges force a lower bound
Any vertex cover must choose at least one endpoint of each matching edge. Those edges are disjoint, so even the optimum uses at least \(|M|\) vertices. This proves the factor two. A star can exhibit the ratio exactly: taking one edge marks the hub and one leaf, although the hub alone covers every edge. Finding a largest matching can give a stronger lower bound but is unnecessary for this algorithm. Approximation guarantees formalize the certificate. Bipartite matching connects to the exact matching–cover relationship for bipartite graphs.[1][2]