Documentation

CslibFrontier.Computability.Complexity.Problems.VertexCover.Approximation

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 #

Main results #

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.

Between declared vertices, the graph of the declared edges is the graph of G.

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.