We provide a graphical treatment of SAT and #SAT on equal footing. Instances of #SAT can be represented as tensor networks in a standard way. These tensor networks are interpreted by diagrams of the ZH-calculus: a system to reason about tensors over C in terms of diagrams built from simple generators, in which computation may be carried out by transformations of diagrams alone. In general, nodes of ZH diagrams take parameters over C which determine the tensor coefficients; for the standard representation of #SAT instances, the coefficients take the value 0 or 1. Then, by choosing the coefficients of a diagram to range over B, we represent the corresponding instance of SAT. Thus, by interpreting a diagram either over the boolean semiring or the complex numbers, we instantiate either the decision or counting version of the problem. We find that for classes known to be in P, such as 2SAT and #XORSAT, the existence of appropriate rewrite rules allows for efficient simplification of the diagram, producing the solution in polynomial time. In contrast, for classes known to be NP-complete, such as 3SAT, or #P-complete, such as #2SAT, the corresponding rewrite rules introduce hyperedges to the diagrams, in numbers which are not easily bounded above by a polynomial. This diagrammatic approach unifies the diagnosis of the complexity of CSPs and #CSPs and shows promise in aiding tensor network contraction-based algorithms.
翻译:我们平等地提供SAT和#SAT的图形处理。 #SAT的事例可以以标准的方式以高频网络的形式表示。#SAT的事例可以以标准的方式以高频网络的形式表示。这些高频网络可以由ZH-计算仪的图表来解释:一个系统,用从简单的发电机建造的图表来解释C的加仑:一个系统来解释C的加仑,在这个系统中,可以单靠图图的变换来进行计算。一般来说,ZH图表的节点采用参数,而C的参数则决定高频系数;对于#SAT的标准表示,系数是值0或1,然后,通过选择一个图的数值到B范围,我们代表SAT的对应实例。因此,通过对图的解析,或者在布林兰兰特的准度上或者在复杂的数字上,我们发现,对于已知的P类,例如2SAT和#XORSAT的节点,适当的缩写规则允许有效地简化图表,在多盘时间中产生解析的答案。在比较中,对于SSAT的缩图解数是S&IS的缩图的缩图,在这样的类中,在Sqreal的缩图中,在S&IS-ral的缩图中,在Squal上显示,在S&rals。