Documentation

CslibFrontier.Computability.Complexity.Parameterized.VertexCover

Fixed-parameter tractability of vertex cover #

A bounded search tree of depth k decides whether a graph has a vertex cover of size k [DowneyFellows1999, Section 3.1] [FlumGrohe2006, Section 1.2] [CyganEtAl2015, Section 3.1]: every edge {u, v} between declared vertices must have u or v in any cover, so branching on the two endpoints of the first uncovered edge (Cslib.Complexity.VertexCover.branchStep) explores at most 2 ^ k root-to-leaf paths of length k.

A path of length m is numbered by i < 2 ^ m, whose j-th binary digit chooses the endpoint at step j (Cslib.Complexity.VertexCover.foldBranch). To keep the path length bounded by the size of the graph even when the binary target k exceeds the number n of distinct declared vertices, the search caps the depth at min n k (Cslib.Complexity.VertexCover.cap) and checks k ≤ n separately (Cslib.Complexity.mem_VertexCover_iff_exists_card_le). Iterating over the 2 ^ min n k paths (Cslib.Complexity.DecidableInExpTime.of_exhaustiveSearch) runs within time 2 ^ k times a polynomial in the length of the encoded instance (Cslib.Complexity.VertexCover_decidableInExpTime_one), so VertexCover is fixed-parameter tractable in the target size k (Cslib.Complexity.VertexCover_mem_FPT).

Main definitions #

Main results #

References #

Bounded search tree #

One step in the bounded search tree for vertex cover: if C is already a cover, keep C; otherwise pick the first uncovered edge (u, v) and add u (when b = false) or v (when b = true) to C.

Follow the bounded search tree along a list of branching bits bs.

theorem Cslib.Complexity.VertexCover.exists_lt_two_pow_isCover_foldBranch (G : Graph) (m : ℕ) :
(∃ (S : Finset ℕ), (∀ v ∈ S, v ∈ G.vertices) ∧ (∀ u ∈ G.vertices, ∀ v ∈ G.vertices, G.toSimpleGraph.Adj u v → u ∈ S ∨ v ∈ S) ∧ S.card ≤ m) ↔ ∃ i < 2 ^ m, isCover G (foldBranch G (List.map i.testBit (List.range m))) = true

Completeness of the bounded search tree. A graph G has a vertex cover of at most m declared vertices if and only if some i < 2 ^ m leads to a cover along the path of length m given by the binary digits of i.

The search procedure #

The search depth min |V| k, where |V| is the number of distinct declared vertices of G.

Bounded-search-tree decision procedure for VertexCover: try all 2 ^ cap x paths of length cap x and check that k ≤ |V| (cap x = k).

Running time #

VertexCover by bounded search tree: VertexCover is decidable within time 2 ^ k times a polynomial in the length of the encoded instance, for target cover size k.

VertexCover is fixed-parameter tractable in the target cover size k.

VertexCover has a kernel in the target cover size k.