CSP and Constraint Propagation
CSP and Constraint Propagation
1. Node Consistency
2. Arc Consistency
3. Path Consistency
4. k-Consistency
Types of Local Consistency
Node Consistency (Simplified)
• Definition: A variable is node consistent if
every value in its domain satisfies its single-
variable constraints.(Unary constraint)
• Example: If X’s domain is {1,2,3,4,5} and the
constraint is 'X > 2', remove {1,2}, leaving
{3,4,5}.
A constraint graph is called node consistent , if every variable in
the graph is node consistent
Arc Consistency (AC-3 Algorithm)
• Definition: A CSP is arc consistent(edged
consistent) if each value in X has a valid
corresponding value in Y.
• OR A variable in a csp is arc consistent if every
value in its domain satisfies variables binary
constraint
• Xi is arc consistent with respect to another
variable Xj if for every value in the current domain
Di there is a some value in the domain Dj that
satisfies the binary constant on the arc (Xi,Xj)
• .
Arc consistency
Algorithm: