The constraint satisfaction problem (CSP) is a computational problem that includes a range of important problems in computer science. We point out that fundamental concepts of the CSP, such as the solution set of an instance and polymorphisms, can be formulated abstractly inside the 2-category PFinSet of finite sets and sets of functions between them. The 2-category PFinSet is a quantaloid, and the formulation relies mainly on structure available in any quantaloid. This observation suggests a formal development of generalisations of the CSP and concomitant notions of polymorphism in a large class of quantaloids. We extract a class of optimisation problems as a special case, and show that their computational complexity can be classified by the associated notion of polymorphism.
翻译:制约满意度问题(CSP)是一个计算问题,包括计算机科学的一系列重要问题。我们指出,CSP的基本概念,如一例和多形态的一套解决办法,可以抽象地在2类PFinSet中形成,2类PFinSet是一个孔形体,其配方主要依赖任何孔形体的现有结构。这一观察表明,CSP的概括性以及随之而来的大型类孔形体多形态化概念的正式发展。我们把选择问题作为一个特例,并表明其计算复杂性可以按照相关的多形态概念分类。