We find an orientation of a tree with 20 vertices such that the corresponding fixed-template constraint satisfaction problem (CSP) is NP-complete, and prove that for every orientation of a tree with fewer vertices the corresponding CSP can be solved in polynomial time. We also compute the smallest tree that is NL-hard (assuming L is not NL), the smallest tree that cannot be solved by arc consistency, and the smallest tree that cannot be solved by Datalog. Our experimental results also support a conjecture of Bulin concerning a question of Hell, Nesetril and Zhu, namely that "easy trees lack the ability to count". Most proofs are computer-based and make use of the most recent universal-algebraic theory about the complexity of finite-domain CSPs. However, further ideas are required because of the huge number of orientations of trees. In particular, we use the well-known fact that it suffices to study orientations of trees that are cores and show how to efficiently decide whether a given orientation of a tree is a core using the arc-consistency procedure. Moreover, we present a method to generate orientations of trees that are cores that works well in practice. In this way we found interesting examples for the open research problem to classify finite-domain CSPs in NL.
翻译:我们发现一棵有20个脊椎的树的方向,因此相应的固定板制约满意度问题(CSP)是NP的完整,并且证明对于一个脊椎较少的树的每一种方向,相应的CSP都可以在多元时间里解决。我们还计算出最小的一棵树,即NL-hard(假设L不是NL),这棵小树无法通过弧线一致性解决,而那棵小树则无法通过Datalog解决。我们的实验结果也支持了布林关于地狱、Nesetril和Zhu问题的猜测,即“易树缺乏计数能力”。大多数证据都是基于计算机的,并且利用最新的通用地理理论来说明有限面 CSP的复杂性。然而,由于树木方向的庞大,我们需要进一步思考。我们使用众所周知的事实,即研究核心的树木方向已经足够,并表明我们如何有效地决定给树的定位方向是使用一种核心核心的C-C-C-I 方法,我们找到了一种有趣的C-C-C-C-C-C-C-I-I-I-I-I-Iental 程序。