The W-hierarchy #
Weighted circuit satisfiability asks whether a Boolean circuit has a satisfying input with
exactly k ones, with k as the parameter Cygan et al., Section 13.3. The
circuits are those of the unbounded fan-in basis (negation, and conjunction and disjunction of any
number of arguments). WCS t d is the restriction to circuits of weft at most t
(Circuit.weft: at most t gates of more than two arguments on a path to the output) and depth at
most d. The class W t is the class W[t]: the parameterized problems that fpt-reduce
(FPTReducible) to WCS t d for some depth d Cygan et al., Section 13.3
[DF99]. A problem is W[t]-hard (WHard) when every problem of W[t] fpt-reduces to
it.
The instances of WCS t d are restricted to the circuits of the class, as in the cited
definition; a reduction to WCS t d must produce such circuits. The weight k is written in
binary, and the input count of a circuit in unary.
The circuits are straight-line programs rather than the source's DAGs. A gate's fan-in is its arity, counted with multiplicity, so a conjunction reading one wire three times is large. The basis also has the constants (the conjunction and disjunction of no arguments) and unary conjunctions and disjunctions. Neither difference changes the classes: merging repeated arguments only lowers the weft, and constants propagate without raising weft or depth.
Main definitions #
Cslib.Circuits.Circuit.SatisfiableWithWeight: a satisfying input with exactlykones.Cslib.Complexity.WeightedCircuitSATInstance,Cslib.Complexity.encWeightedCircuitSAT,Cslib.Complexity.WeightedCircuitSAT: weighted satisfiability of circuits with unbounded fan-in.Cslib.Complexity.WeftCircuit,Cslib.Complexity.encWeftCircuit: the circuits of weft at mosttand depth at mostd, and their encoding.Cslib.Complexity.WCSInstance,Cslib.Complexity.WCS,Cslib.Complexity.encWCS: weighted satisfiability for those circuits.Cslib.Complexity.W: the classW[t].Cslib.Complexity.WHard:W[t]-hardness, the instanceFPTHard (W t)ofCslib.Complexity.FPTHard.
Main results #
Cslib.Complexity.FPTReducible.mem_W:W[t]is closed under fpt-reductions.Cslib.Complexity.WCS_mem_W:WCS t dbelongs toW[t].Cslib.Complexity.W_mono:W[t] ⊆ W[t']fort ≤ t'.Cslib.Complexity.FPT_subset_W:FPT ⊆ W[t].Cslib.Complexity.wHard_iff:W[t]-hardness is hardness for everyWCS t d.
References #
c has a satisfying input with exactly k ones under the interpretation I.
Weighted circuit satisfiability #
An instance of weighted circuit satisfiability over the unbounded fan-in basis: a one-output circuit packaged with its input count and a target Hamming weight.
The one-output circuit over the unbounded fan-in basis, packaged with its input count.
- weight : ℕ
The target Hamming weight of a satisfying input.
The binary encoding of WeightedCircuitSAT instances: the circuit, then the weight in
binary.
The tuple of the fields of encWeightedCircuitSAT.
Weighted circuit satisfiability Cygan et al., Section 13.3: the circuits
over the unbounded fan-in basis, with one output, that have a satisfying input with exactly k
ones.
Membership in WeightedCircuitSAT.
The circuits over the unbounded fan-in basis with one output, weft at most t and depth at
most d.
The underlying one-output circuit, packaged with its input count.
The circuit's weft is at most
t.The circuit's depth is at most
d.
Two bounded circuits with equal underlying circuits are equal.
The encoding of circuits of weft at most t and depth at most d: their encoding as
circuits (Unbounded.encCircuit).
A circuit of the class is encoded as a circuit.
Projecting the input count of a WeftCircuit in unary is polynomial-time.
Projecting the gate list of a WeftCircuit is polynomial-time.
Projecting the output wires of a WeftCircuit is polynomial-time.
An instance of bounded-weft, bounded-depth weighted circuit satisfiability WCS[C_{t,d}]
Cygan et al., Section 13.3.
- circuit : WeftCircuit t d
The circuit of weft at most
tand depth at mostd. - weight : ℕ
The target Hamming weight of a satisfying input.
Weighted circuit satisfiability for circuits of weft at most t and depth at most d, the
problem WCS[C_{t,d}] Cygan et al., Section 13.3.
The encoding of the instances of WCS t d: the circuit, then the weight in binary.
(enc_structure currently requires an unparameterized structure, so this parameterized instance
defines the same field-pair embedding directly.)
A WCS t d instance is encoded as the pair of its circuit and binary weight.
Projecting WCSInstance.circuit is polynomial-time.
Projecting WCSInstance.weight is polynomial-time.
Constructing a WCSInstance is polynomial-time.
Membership in WCS t d.
The classes W[t] #
Weighted satisfiability of circuits of weft at most t and depth at most d is in W[t].
Raising the bounds on the weft and the depth is an fpt-reduction, by the identity on circuits.
FPT ⊆ W[t] #
The circuit with no inputs whose one gate is the conjunction of no arguments, true.
The circuit with no inputs whose one gate is the disjunction of no arguments, false.
A yes-instance of WCS t 1: trueCircuit with weight 0.
A no-instance of WCS t 1: falseCircuit with weight 0.
yesInstance t is a yes-instance: the empty input has weight 0 and satisfies true.
noInstance t is a no-instance: no input satisfies false.