Node consistency:
- A single variable (corresponding to a node in the CSP network) is node-consistent if all the values in the variable’s domain satisfy the variable’s unary constraints.
For example:
- in the variant of the Australia map-coloring problem where South Australians dislike green, the variable SA starts with domain {red , green, blue}, and we can make it node consistent by eliminating green, leaving SA with the reduced domain {red , blue}.
- We say that a network is node-consistent if every variable in the network is node-consistent.
Arc Consistency:
- A variable in a CSP is arc-consistent if every value in its domain satisfies the variable’s binary constraints.
- More formally, Xi is arc-consistent with respect to another variable Xj if for every value in the current domain Di there is some value in the domain Dj that satisfies the binary constraint on the arc (Xi,Xj).
- A network is arc-consistent if every variable is arc consistent with every other variable.
- For example, consider the constraint Y = X 2 where the domain of both X and Y is the set of digits.
(X, Y ), {(0, 0), (1, 1), (2, 4), (3, 9))} .