Q8 — CSP: Arc Consistency, Path Consistency, Solution
A = 3 has no support on R_AC — not arc consistent; pruning it cascades to a unique solution 2,6,8.
The Question
CSP over A, B, C (processed in that order), :
| # | Question | Official answer |
|---|---|---|
| 8.1 | Is the CSP arc consistent? | B — No |
| 8.2 | After making it arc consistent: path consistent? | A — path consistent |
| 8.3 | Solution (A,B,C) | 2,6,8 |
The Topic in 60 Seconds
- Arc consistent: every domain value has a support in each neighbour.
- Path consistent: every allowed pair has a middle value compatible with both.
- Making a CSP arc consistent can cascade — one pruning orphans another value.
Deep-dive: Arc Consistency, Forward Checking.
The matching diagram
8.1 — Arc consistent? → No
Check every value on the diagram:
| Value | Supports |
|---|---|
| A = 2 | B = 6 ✓, C = 7, 8 ✓ |
| A = 3 | B = 5 ✓, C = ? — for any c! |
| B = 5 | A = 3 ✓, C = 7 ✓ |
| B = 6 | A = 2 ✓, C = 8 ✓ |
| C = 7 | A = 2 ✓, B = 5 ✓ |
| C = 8 | A = 2 ✓, B = 6 ✓ |
A = 3 has no support on R_AC → not arc consistent → B ✓
8.2 — After arc consistency: path consistent? → A (path consistent)
Revise (AC-3 style):
- pruned (no C support) → .
- Cascade: 's support was — gone! → .
- 's support via was — gone! → .
Result: , , — every arc trivially consistent.
Path consistency: with singletons everywhere, the only pair is on A–C; the middle satisfies ✓ and ✓ → path consistent → A ✓
8.3 — Solution → 2,6,8
The cascade above leaves exactly one assignment:
Verify: ✓, ✓, ✓ → 2,6,8 ✓
Tricks & Tips
Interactive AC-3 cascade — watch the domains collapse:
1 / 5
Supports: A=2 → B:6 ✓ C:7,8 ✓ · A=3 → B:5 ✓ but C: ? — no c with (3,c) ∈ R_AC!
B=5 → A:3 ✓ C:7 ✓ · B=6 → A:2 ✓ C:8 ✓
C=7 → A:2 ✓ B:5 ✓ · C=8 → A:2 ✓ B:6 ✓
A = 3 has no support on R_AC → NOT arc consistent → 8.1 = B.
value being tested / prunedstill in playfinal unique solution
Tricks & Tips
QuizWhy does B = 5 get pruned during arc consistency?
Answers: 8.1 B (No) · 8.2 A (path consistent) · 8.3 2,6,8