Approximation-preserving reductions and Set Cover gap problems #
General minimization-problem interface (MinOptProblem), approximation guarantees (IsApprox),
approximation-preserving reductions (ApproxPreservingReducible), and the gap promise problems for
unweighted and weighted Set Cover (GapSetCover, GapWeightedSetCover), formulated for this
library's multi-tape polynomial-time model.
An approximation-preserving reduction between minimization problems maps instances in polynomial
time and lifts feasible solutions back in polynomial time while controlling the blowup of the
approximation ratio (ApproxPreservingReducible.comp_isApprox). This directly yields a reduction
from unweighted Set Cover to weighted Set Cover by assigning unit weights
(approxPreservingReducible_setCover_weightedSetCover,
polyTimeReducible_GapSetCover_GapWeightedSetCover).
Hardness of GapSetCover at gap r rules out polynomial-time ρ-approximation algorithms for
every 0 ≤ ρ < r unless P = NP (P_eq_NP_of_setCover_approx,
P_eq_NP_of_weightedSetCover_approx), using rational thresholds between ρ and r so the
induced decider runs in native multi-tape polynomial time.
Main definitions #
Cslib.Complexity.MinOptProblem: minimization problems with induced gap promise problems (gapProblem) and approximation ratios (IsApprox).Cslib.Complexity.ApproxPreservingReducible: polynomial-time approximation-preserving reductions between minimization problems, closed under identity and composition.Cslib.Complexity.minSetCover,Cslib.Complexity.minWeightedSetCover: optimization-problem views of unweighted and weighted Set Cover.Cslib.Complexity.GapSetCoverFn,Cslib.Complexity.GapSetCover,Cslib.Complexity.GapWeightedSetCoverFn,Cslib.Complexity.GapWeightedSetCover: Set Cover gap promise problems on coverable instances.
Main results #
Cslib.Complexity.ApproxPreservingReducible.refl,Cslib.Complexity.ApproxPreservingReducible.trans,Cslib.Complexity.ApproxPreservingReducible.comp_isApprox: composition and algorithm transfer.Cslib.Complexity.approxPreservingReducible_setCover_weightedSetCover,Cslib.Complexity.polyTimeReducible_GapSetCover_GapWeightedSetCover: unweighted Set Cover reduces to weighted Set Cover preserving approximation and gap.Cslib.Complexity.P_eq_NP_of_setCover_approx,Cslib.Complexity.P_eq_NP_of_weightedSetCover_approx:ρ-approximation withρ < rimpliesP = NPwheneverGapSetCover r(resp.GapWeightedSetCover r) isNP-hard.
Optimization problems and approximation-preserving reductions #
A combinatorial minimization problem over valid instances IsValid, feasible solutions
Feasible, real cost cost, and attained optimum opt.
- IsValid : Instance → Prop
Predicate picking out well-formed/feasible instances.
- Feasible : Instance → Solution → Prop
Feasible solutions for a given instance.
- cost : Instance → Solution → ℝ
Objective cost to minimize.
- opt : Instance → ℝ
Optimal value on an instance.
- opt_le (x : Instance) (y : Solution) : self.IsValid x → self.Feasible x y → self.opt x ≤ self.cost x y
Every feasible solution on a valid instance costs at least
opt. - exists_opt (x : Instance) : self.IsValid x → ∃ (y : Solution), self.Feasible x y ∧ self.cost x y = self.opt x
Valid instances admit a feasible solution achieving
opt.
The gap promise problem induced by a minimization problem P with completeness threshold c
and soundness threshold s, restricted to valid instances.
An algorithm A is a ρ-approximation for minimization problem P when on every valid
instance it returns a feasible solution of cost at most ρ x * P.opt x.
Polynomial-time approximation-preserving reduction from minimization problem P₁ to P₂
with ratio transformer g : α₁ → ℝ → ℝ: polynomial-time maps toInst and liftSol preserve
validity and feasibility and transform any ρ₂-approximate solution of toInst x into a
g x ρ₂-approximate solution of x.
Identity approximation-preserving reduction.
Transitivity of approximation-preserving reductions.
Pulling a polynomial-time ρ₂-approximation algorithm back through an
approximation-preserving reduction yields a polynomial-time approximation algorithm for P₁.
Set Cover optimization problems and gap promise problems #
Minimization problem view of unweighted Set Cover with index-list witnesses.
Minimization problem view of weighted Set Cover with index-list witnesses.
Unweighted Set Cover gap problem with instance-dependent threshold ratio r : SetSystem → ℝ,
restricted to coverable set systems: yes-instances satisfy optCoverSize S ≤ k, while
no-instances satisfy k < r S * k ≤ optCoverSize S.
Unweighted Set Cover gap problem at constant ratio r.
Weighted Set Cover gap problem with instance-dependent threshold ratio
r : WeightedSetSystem → ℝ, restricted to coverable weighted set systems.
Weighted Set Cover gap problem at constant ratio r.
Unweighted to Weighted Set Cover #
Equip every subset of S : SetSystem with weight 1.
Unweighted Set Cover approximation-preservingly reduces to Weighted Set Cover with unit weights and identity ratio transformation.
Unweighted Set Cover gap reduces in polynomial time to Weighted Set Cover gap with the
same threshold ratio r.
From Set Cover approximation algorithms to P = NP #
Any polynomial-time ρ-approximation algorithm (0 ≤ ρ < r) for unweighted Set Cover places
GapSetCover r in PromiseP.
If GapSetCover r is NP-hard, no polynomial-time ρ-approximation algorithm with 0 ≤ ρ < r
exists for unweighted Set Cover unless P = NP.
Any polynomial-time ρ-approximation algorithm (0 ≤ ρ < r) for weighted Set Cover places
GapWeightedSetCover r in PromiseP.
If GapWeightedSetCover r is NP-hard, no polynomial-time ρ-approximation algorithm with
0 ≤ ρ < r exists for weighted Set Cover unless P = NP.