Learn how AC-3 reduces domains and detects inconsistencies before search
Graph edges mean: "Adjacent regions must have different colors"
Example: If A and B are neighbors β A β B
Arc Consistency ensures that:
For each arc (like A β B):
Triangle graph: 3 regions (A-B-C) all connected, with domains {Red, Blue} each
Step-by-step AC-3 algorithm execution and domain updates
Goal: Make every arc consistent
Benefit: Reduces search space before backtracking
See the dramatic difference: backtracking WITH vs WITHOUT AC-3 preprocessing
Pure backtracking with full domains {Red, Blue}
AC-3 first, then backtracking with reduced domains
Watch AC-3 detect impossibility early when a domain becomes empty
Watch AC-3 systematically prove this CSP has no solution
Watch AC-3 systematically discover the impossibility