Constraint Satisfaction Problems: Artificial Intelligence COSC-3112 Ms. Humaira Anwer
Constraint Satisfaction Problems: Artificial Intelligence COSC-3112 Ms. Humaira Anwer
CONSTRAINT
SATISFACTION PROBLEMS
Artificial Intelligence
COSC-3112
Domain ->
Range of Numbers 1-9
Constraints ->
Game Rules
Variables
X={WA, NT, Q, NSW, V,
SA, T }
Domains
Di = {red,green,blue}
Constraints:
adjacent regions must
have different colors
e.g., WA ≠ NT
Lecture 17- Constraint Satisfaction Problems 8
CSP: Example Map Coloring
• There are many possible solutions to this problem,
such as
• {WA=red ,NT =green,Q=red ,NSW =green, V =red
,SA=blue, T =red }.