Fixed-parameter tractability #
A parameterized problem is a problem A : Set α with an encoding enc : α ↪ List Bool of its
instances and a parameter κ : α → ℕ [DF99] [FG06] [CFK+15]. The
parameter is any function of the instance: the number of variables of a formula, the size of a
solution sought, a width. Running times are measured in the parameter k = κ a and in the length
L of the encoded instance, on the multi-tape machines of Cslib.Complexity.DecidableInTimeO.
Cslib.Complexity.FPT enc κ, fixed-parameter tractability: decidability within timef k * (L + 1) ^ cup to a constant factor, for some functionf : ℕ → ℕand constantc. The exponent ofLdoes not depend onk.Cslib.Complexity.XP enc κ, slicewise polynomial time: decidability within timef k * (L + 1) ^ g k, for functionsfandg.
The function f is arbitrary, as in the uniform fixed-parameter tractability of Downey and
Fellows [DowneyFellows1999, Chapter 2]. Flum and Grohe [FlumGrohe2006, Chapter 1] and Cygan et
al. [CyganEtAl2015, Chapter 1] require f to be computable (Downey and Fellows' strongly
uniform tractability); that variant is not formalized here. The function f may be taken
monotone (Cslib.Complexity.mem_FPT_iff_exists_monotone).
Cslib.Complexity.FPTReducible encA encB κA κB A B: A reduces to B by an fpt-reduction
[FlumGrohe2006, Definition 2.1] [CyganEtAl2015, Definition 13.1]: a map f computable by some
machine within time F (κA a) * (L + 1) ^ c (Cslib.Complexity.ComputableInFPTTime) with
a ∈ A ↔ f a ∈ B and κB (f a) ≤ h (κA a) for a function h. Fpt-time computability is closed
under case distinction and under composition along a function that bounds the parameter
(Cslib.Complexity.ComputableInFPTTime.ite, Cslib.Complexity.ComputableInFPTTime.comp), and
polynomial time is fpt time for every parameter
(Turing.MultiTapeTM.ComputableInPolyTime.computableInFPTTime). Polynomial-time
reductions with a parameter bound are fpt-reductions
(Cslib.Complexity.FPTReducible.of_computableInPolyTime). FPT and XP are closed under
fpt-reductions. As for FPT, the functions F and h are arbitrary, where the cited
definitions require them to be computable.
Main definitions #
Cslib.Complexity.FPT,Cslib.Complexity.XP: fixed-parameter tractable and slicewise polynomial problems.Cslib.Complexity.ComputableInFPTTime: functions computable in fpt time.Cslib.Complexity.FPTReducible: fpt-reductions.
Main results #
Cslib.Complexity.mem_FPT,Cslib.Complexity.mem_XP: unfolding the classes.Turing.MultiTapeTM.ComputableInTimeAndSpace.computableInFPTTime: a time bound alone gives fpt-time computability.Turing.MultiTapeTM.ComputableInPolyTime.computableInFPTTime,Cslib.Complexity.ComputableInFPTTime.ite,Cslib.Complexity.ComputableInFPTTime.comp: polynomial time is fpt time, and fpt time is closed under case distinction and composition.Cslib.Complexity.mem_FPT_iff_computableInFPTTime:FPTin terms of fpt-time computability.Cslib.Complexity.P_subset_FPT,Cslib.Complexity.FPT_subset_XP:P ⊆ FPT ⊆ XP, for every parameter.Cslib.Complexity.FPT_eq_P_of_le,Cslib.Complexity.XP_eq_P_of_le: for a bounded parameter, both classes areP.Cslib.Complexity.FPT_subset_FPT_of_le_comp,Cslib.Complexity.XP_subset_XP_of_le_comp: ifκ a ≤ h (κ' a)then tractability inκgives tractability inκ'.Cslib.Complexity.mem_FPT_iff_exists_monotone: the functionfmay be taken monotone.Cslib.Complexity.DecidableInExpTime.mem_FPT: time2 ^ (δ κ a)times a polynomial is fpt time; soSATandk-SAT are fixed-parameter tractable in the number of variables (Cslib.Complexity.SAT_mem_FPT,Cslib.Complexity.KSAT_mem_FPT).Cslib.Complexity.compl_mem_FPT,Cslib.Complexity.inter_mem_FPT,Cslib.Complexity.union_mem_FPT,Cslib.Complexity.compl_mem_XP: Boolean closure.Cslib.Complexity.FPTReducible.refl,Cslib.Complexity.FPTReducible.trans: fpt-reducibility is a preorder;Cslib.Complexity.FPTReducible.complpasses to complements.Cslib.Complexity.FPTReducible.mem_FPT,Cslib.Complexity.FPTReducible.mem_XP:FPTandXPare closed under fpt-reductions.
References #
Monotone majorants #
The classes #
Fixed-parameter tractability. A ∈ FPT enc κ when A is decidable within time
f (κ a) * (|enc a| + 1) ^ c up to a constant factor, for some function f : ℕ → ℕ and some
constant c, by a machine with a binary alphabet reading enc a
(Cslib.Complexity.DecidableInTimeO). The function f is arbitrary, as in the uniform
fixed-parameter tractability of [DF99]; [FG06] also requires it to be
computable.
Slicewise polynomial time. A ∈ XP enc κ when a single machine decides A within time
f (κ a) * (|enc a| + 1) ^ g (κ a) up to a constant factor, for some functions f and g
[DF99] [FG06]: in particular each slice {a | κ a = k} is decidable in
polynomial time, with a degree depending on k. The functions f and g are arbitrary, where
[FG06] and [CFK+15] require them to be computable.
Exponential time in the parameter is fpt time. A decider within time 2 ^ (δ κ a) times
a polynomial in the length of the encoded instance, for any real δ, is an fpt-time decider with
f k = ⌈2 ^ δ⌉ ^ k.
SAT is fixed-parameter tractable in the number of variables, by exhaustive search.
k-SAT is fixed-parameter tractable in the number of variables, by exhaustive search.
Fpt-time computability #
f is computable in fpt time with respect to the parameter κ: some machine computes f
within time and space F (κ a) * (|encA a| + 1) ^ c, for a function F : ℕ → ℕ and a constant
c. Bounding the space by the same expression is no restriction, since a machine within time t
visits at most k t + k work-tape cells
(Turing.MultiTapeTM.ComputableInTimeAndSpace.computableInFPTTime).
A computation within an fpt bound, up to a constant factor, is a computation in fpt time.
A time bound alone suffices. A function computable by some machine within time
F (κ a) * (|encA a| + 1) ^ c, with any space bound, is computable in fpt time: a machine with k
work tapes within time t visits at most k t + k work-tape cells.
A function computable in polynomial time is computable in fpt time, for every parameter.
Case distinction in fpt time.
Composition in fpt time, along a function that bounds the parameter.
Boolean closure #
Fpt-reductions #
Fpt-reductions [FlumGrohe2006, Definition 2.1] [CyganEtAl2015, Definition 13.1]: A
reduces to B by a map f, computable in fpt time with respect to κA, with a ∈ A ↔ f a ∈ B,
whose parameter κB (f a) is bounded by a function h of κA a. This is ManyOneReducibleBy for
ComputableInFPTWithParam (fptReducible_iff_manyOneReducibleBy). The function h and the
function of the time bound are arbitrary; the cited definitions require them to be computable.
Fpt-reducibility is many-one reducibility by maps computable in fpt time with a parameter bound.
Polynomial-time reductions bounding the parameter are fpt-reductions.
Every parameterized problem reduces to itself by the identity.
Fpt-reductions compose.