Documentation

CslibFrontier.Computability.Circuit.Frontier.TensorNetwork.CSPNetworkPolyTime

The constraint network in polynomial time #

The constraint network of a weighted Boolean CSP instance (Cslib.Circuits.Frontier.ClauseNetwork.cspNetwork) is computable in polynomial time from the encoded instance, in the encoding of the contraction algorithm, whenever the weight of a relation symbol at each fixed pattern of length at most k is polynomial-time in the symbol (for instance, when the relation alphabet is finite). Its tables are maps over the constant list of the first k + 1 widths, read at the arity of each constraint.

Main results #

The entry of a constraint table at a fixed word value is polynomial-time.

The entry of a row table at a fixed word value is polynomial-time in the instance and the unary row number.

The constraint network is polynomial-time from the encoded instance, with its number of rows in binary.