Constraint satisfaction formalised
X = {X1,X2,..Xn} = set of variables
D = {D1,D2..Dn} = set of domains specifying the values each variable can take
C = set of constraints
What is a state
An assignment of values to all or some variables
When is a state called complete
If it assigns all the variables
When is a state called consistent
If it does not violate the constraints
What is a solution
A state which is complete and consistent
What is the solution to constraint satisfaction problems
A backtracking search combining:
What are the heuristics for CSP
Minimum remaining values
Least constraining value
What is MRV
Choose the variable with the fewest legal values
What is LCV
Select the value which constrains the fewest other values