We initiate a systematic study of the computational complexity of the Constraint Satisfaction Problem (CSP) over finite structures that may contain both relations and operations. We show the close connection between this problem and a natural algebraic question: which finite algebras admit only polynomially many homomorphisms into them? We give some sufficient and some necessary conditions for a finite algebra to have this property. In particular, we show that every finite equationally nontrivial algebra has this property which gives us, as a simple consequence, a complete complexity classification of CSPs over two-element structures, thus extending the classification for two-element relational structures by Schaefer (STOC'78). We also present examples of two-element structures that have bounded width but do not have relational width (2,3), thus demonstrating that, from a descriptive complexity perspective, allowing operations leads to a richer theory.
翻译:我们开始系统研究限制满意度问题(CSP)对于可能同时包含关系和操作的有限结构的计算复杂性。我们显示了这一问题与自然代数问题之间的密切联系:有限的代数只承认其中的多元同质性;我们给有限的代数以一定的足够和必要的条件,使该属性具有这种属性。特别是,我们显示,每个有限的非二次方程式代数都具有这种属性,这给我们一个简单的结果,就是对两个元素结构的CSP进行全面的复杂分类,从而扩大了Schaefer对两元素关系结构的分类(STOC'78),我们还举出了两个元素结构的例子,这些结构的宽度是连接的,但没有相近的宽度(2,3),从而表明,从描述的复杂性角度看,操作可以导致更丰富的理论。