In a constraint satisfaction problem (CSP) the goal is to find an assignment of a given set of variables subject to specified constraints. A global cardinality constraint is an additional requirement that prescribes how many variables must be assigned a certain value. We study the complexity of the problem CCSP(Γ), the constraint satisfaction problem with global cardinality constraints that allows only relations from the set Γ. The main result of this paper characterizes sets Γ that give rise to problems solvable in polynomial time, and states that the remaining such problems are NP-complete.
CONSTRAINT PROBLEMS
Constraint Satisfaction ProblemAmong formalisms unifying and classifying various combinatorial problems the Constraint Satisfaction Problem (or CSP) is one of the most successful ones. In this problem we are given a set of variables and a collection of restrictionsconstraints -on the allowed combinations of values of the variables; the goal is to find an assignment to the variables so that all constraints are satisfied. Usually constraints are imposed on small sets of variables, thus, the CSP formalizes the idea of finding a global solution bound by local restrictions. The Sudoku puzzle gives a popular toy example of CSP. We need to assign values -numbers from 1 to 9 -to variables -entries of the puzzle so that the values of variables in a row, column, or 3 × 3 block are different. Another toy example whose CSP encoding is less obvious is the 8-Queen problem: place 8 queens on a 8 × 8 chessboard so that they do not hit each other [15]. To represent it as a CSP we consider the columns {a, b, c, d, e, f, g, h} (see Fig. 1) as variables that can be assigned values from the set of rows, and the assigned value shows the position of a queen in this column.Many combinatorial problems readily fall into this framework. For example, in the Graph 3-Coloring problem the vertices of a given graph are variables to receive one of the three colors, and assignments are constrained by the requirement that adjacent vertices receive different colors. Thus, this problem is a CSP. The list of examples can be extended Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. To copy otherwise, to republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Copyright 2008 ACM 0001-0782/08/0X00 ...$5.00.
Figure 1: The 8-Queens problemby other combinatorial problems like Satisfiability, problems in scheduling, temporal and spatial reasoning, and many others.Constraint satisfaction problems have been studied from both practical and theoretical perspectives. On the practical side the expressive power of the CSP allows to model a wide range of real-world problems from planning [24] and scheduling [35], frequency assignment problems [17], to image processing ...