Formalization as a Constraint Satisfaction Problem
A CSP is a triple
is a set of decision variables is a set of domains for : is a set of possible values for - Usually non-binary and assume finite domain
is a set of constrains is a relation over a subset of variables , denoted as is a set of combinations of allowed values
A solution to a CSP is an assignment of values to the variables which satisfies all constraints simultaneously
Formally,
- Choice of variables and domains defines the search space size
- Choice of constraints defines:
- how search space can be reduced;
- how search can be guided.
Properties of Constraints
- The order of imposition does not matter.
- X + Y ≤ Z is the same as Z ≥ X + Y.
- Non-directional.
- A constraint between X and Y can be used to infer domain information on Y given domain information on X and vice versa.
- Rarely independent.
- Shared variables as communication mechanism between different constraints.