Informed Search (A*, IDA*), Adversarial Game Trees & CSP Arc Consistency (AC-3)
Tree-search vs Graph-search A* optimality conditions, heuristic dominance & relaxed problems, IDA* linear memory bound, Minimax Alpha-Beta cutoffs, and CSP MRV/LCV & AC-3 complexity.
1. Subtle Exam Distinctions in Search ()
- Tree-Search is optimal whenever is Admissible (, never overestimates true cost to goal).
- Graph-Search (with a
CLOSED/ explored set that never re-expands visited states) requires to be Consistent (Monotonic): . An admissible but inconsistent heuristic can expand a state via a suboptimal path first and discard the optimal path later unless closed nodes can be reopened! - Combining Admissible Heuristics: If are all admissible, then:
is guaranteed admissible AND dominates every (expands the fewest nodes)! Conversely, may overestimate unless subproblems are strictly disjoint pattern databases. 4. IDA (Iterative Deepening ):* Performs DFS with increasing -cost thresholds ( among pruned nodes exceeding current bound), reducing memory from to !
2. Constraint Satisfaction Problems (CSPs): Ordering & AC-3
A CSP uses factored state representations to prune huge search spaces before branching:
- Variable Ordering β MRV (Minimum Remaining Values / Fail-First): Pick the unassigned variable with the smallest current legal domain . Ties broken by Degree Heuristic (most constraints on remaining unassigned variables).
- Value Ordering β LCV (Least Constraining Value / Succeed-First): Try the value that rules out the fewest choices for neighboring variables!
- Arc Consistency (AC-3): Directed arc is consistent iff satisfying . Each of directed arcs can be re-enqueued at most times, and checking an arc takes .
Tree-Structured CSP Shortcut: If the constraint graph of a CSP has no loops (is a tree) with variables and max domain size , it can be solved in polynomial time (topological directional arc consistency + backtrack-free assignment)!
Practice Questions on This Chapter (3)
Suppose and are both admissible heuristics for an search problem. Which composite heuristic below is always guaranteed to be admissible and expands no more nodes than either or ?
In a two-player deterministic zero-sum game tree with branching factor and depth , how many terminal leaf evaluations are required by Alpha-Beta Pruning under optimal move ordering ( scale)?
When solving a Constraint Satisfaction Problem (CSP), why is MRV (Minimum Remaining Values) used for choosing the next variable while LCV (Least Constraining Value) is used for ordering its values?