A polynomial-time 2-approximation for VertexCover #
The maximal-matching algorithm Cslib.Algorithms.Lean.VertexCover.matchingCover, run on the
edges of an encoded graph G : Graph between declared vertices, returns a vertex cover with at most
twice the minimum number of vertices, and is computable in polynomial time on encGraph
([CLRS09], Section 35.1, Theorem 35.1).
Model #
VertexCover and Graph.vertexCoverNum count declared vertices meeting every edge between
declared vertices; edges with an undeclared endpoint and self-loops impose nothing. The algorithm
therefore scans Cslib.Complexity.VertexCover.declaredEdges G, the listed edges with both endpoints
declared.
Main definitions #
Cslib.Complexity.VertexCover.approxCover: the matching cover of the declared edges.
Main results #
approxCover_mem_VertexCover:(G, (approxCover G).length) ∈ VertexCover, withnodup_approxCoverandisCover_approxCoverfor the list itself.length_approxCover_le_two_mul_vertexCoverNum:(approxCover G).length ≤ 2 * G.vertexCoverNum.computableInPolyTime_approxCover: the algorithm is polynomial-time fromencGraphto framed binary vertex lists.
References #
The maximal-matching approximation for VertexCover: both endpoints of each edge of a
greedy maximal matching of the edges between declared vertices.
The returned vertices are distinct.
The returned vertices are declared.
Feasibility. The returned vertices meet every edge between declared vertices.
The returned list is a vertex cover of its length.
The 2-approximation ([CLRS09], Theorem 35.1): the returned cover has at most twice the minimum number of vertices of a cover.
Polynomial time #
The 2-approximation is polynomial-time: approxCover is computable in polynomial time from
encGraph to framed binary vertex lists.