Fully polynomial-time approximation schemes
Lax213208.FPTAS · concepts/Lax213208/FPTAS.lean · lax-213208
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
An FPTAS has ratio , with , in time polynomial in both instance size and . The constants and exponents are independent of the instance and precision.
Concept map
Lean source view on GitHub
| 1 | import Lax213208.RApproximation |
| 2 | import Lax213208.RunningTime |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Fully polynomial-time approximation schemes |
| 7 | type: definition |
| 8 | --- |
| 9 | An FPTAS has ratio , with , in time |
| 10 | polynomial in both instance size and . The constants and exponents |
| 11 | are independent of the instance and precision. |
| 12 | -/ |
| 13 | |
| 14 | namespace Lax213208.FPTAS |
| 15 | |
| 16 | open OptimizationProblem Programs RApproximation RunningTime |
| 17 | |
| 18 | variable {Instance Solution : Type*} {problem : Problem Instance Solution} |
| 19 | |
| 20 | def FPTAS (alg : Program) (inputs : Set Instance) : Prop := |
| 21 | ∃ c d e : ℕ, 0 < c ∧ 0 < d ∧ 0 < e ∧ |
| 22 | ∀ k : ℕ, 0 < k → |
| 23 | let ε : ℝ := 1 / k |
| 24 | Approximates (problem := problem) alg inputs (1 + ε) (some k) ∧ |
| 25 | RunsInTime (problem := problem) alg inputs |
| 26 | (fun n => c * (n + 2) ^ d * (k + 1) ^ e) (some k) |
| 27 | |
| 28 | end Lax213208.FPTAS |
| 29 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments