Linear reductions for optimization problems #
An L-reduction maps instances and recovers feasible solutions in polynomial time. The target optimum is bounded by a fixed multiple of the source optimum, and the recovered solution's absolute error is bounded by a fixed multiple of the target solution's error Papadimitriou and Yannakakis, §1, pp. 427–428. Natural-number factors suffice because increasing a positive real factor to a positive integer preserves both inequalities.
Main definitions #
NPOptimizationProblem.optimum: minimum or maximum of the feasible objective values.LReduction: instance and solution maps with constant optimum and error bounds.
Main results #
NPOptimizationProblem.exists_optimum: an optimum is attained.LReduction.refl,LReduction.trans: identity and composition.LReduction.ptas: a PTAS transfers from target to source.
There is a feasible solution with the optimal objective value.
The optimum is at most the value of any feasible solution to a minimization problem.
The value of any feasible solution to a maximization problem is at most the optimum.
For a feasible solution, the accuracy bound is equivalent to an absolute error bound scaled by the inverse accuracy.
A polynomial-time L-reduction between two NP optimization problems.
- mapInstance : α₁ → α₂
The instance map.
- recover : α₁ × β₂ → β₁
The solution map takes the original instance and a target solution.
- computableInPolyTime_mapInstance : Turing.MultiTapeTM.ComputableInPolyTime self.mapInstance encI₁ encI₂
The instance map is computable in polynomial time.
- computableInPolyTime_recover : Turing.MultiTapeTM.ComputableInPolyTime self.recover (Turing.MultiTapeTM.encPair encI₁ encS₂) encS₁
The solution map is computable in polynomial time.
- optimumFactor : ℕ
The constant that bounds growth of the optimum.
- optimumFactor_pos : 0 < self.optimumFactor
The optimum factor is positive.
- errorFactor : ℕ
The constant that bounds growth of absolute objective error.
- errorFactor_pos : 0 < self.errorFactor
The error factor is positive.
- feasible_recover (a : α₁) (b : β₂) : B.Feasible (self.mapInstance a) b → A.Feasible a (self.recover (a, b))
Recovering a feasible target solution gives a feasible source solution.
The target optimum is at most a fixed multiple of the source optimum.
- error_bound (a : α₁) (b : β₂) : B.Feasible (self.mapInstance a) b → (A.value (a, self.recover (a, b))).dist (A.optimum a) ≤ self.errorFactor * (B.value (self.mapInstance a, b)).dist (B.optimum (self.mapInstance a))
The absolute error at the recovered solution is bounded by the target error.
The identity L-reduction.
L-reductions compose, multiplying the optimum and error factors.
The recovered solution has the requested accuracy if the target accuracy is scaled by the two reduction factors [Papadimitriou and Yannakakis, Proposition 2] [PY91].
A PTAS for the target induces a PTAS for the source.