Unit 03 Adversarial Search
Unit 03 Adversarial Search
• CSP representation
• Inference in CSP
• Backtracking Search for CSPs
• Local Search for CSPs
Constraint Graph:
Constraint graph for Map problem
cryptarithmetic problem
(a) A cryptarithmetic problem. Each letter stands for a distinct digit; the aim is to find
a substitution of digits for letters such that the resulting sum is arithmetically correct,
with the added restriction that no leading zeroes are allowed.
(b) The constraint hypergraph for the cryptarithmetic problem, showing the
Alldiff constraint (square box at the top) as well as the column addition constraints
(four square boxes in the middle). The variables C1, C2, and C3 represent the carry digits
for the three columns from right to left.
Sudoku
Sudoku
Alldiff (A1, A2,…., A9)
Alldiff (B1, B2,…., B9)