2. Example Problems

Source: AIMA 4th Ed., Chapter 3 (Section 3.2) Status: Complete


Overview

Problems fall into two categories: - Standardized/toy problems: simple, precisely defined, used to benchmark algorithms. State spaces are small enough to enumerate. - Real-world problems: large, messy, often require heuristics and approximations.


Standardized Problems

Grid World / Vacuum Cleaner World

Simple enough to solve by exhaustive enumeration; useful for demonstrating completeness and optimality properties.

8-Puzzle (Sliding Tile)

The 8-puzzle is a classic benchmark because: - Small enough for exact search but large enough to be nontrivial - Two natural admissible heuristics: misplaced tiles (h1) and Manhattan distance (h2) - Generalizes to the 15-puzzle (4×4, 16!/2 ≈ 10 trillion states) where heuristics are essential

15-Puzzle (4×4 Sliding Tile)

Sokoban

Knuth’s “4” Problem


Real-World Problems

Route-Finding (Romania Map)

Used throughout Chapter 3 as the running example. Key properties: - Nontrivial enough to illustrate algorithm differences - Small enough to trace by hand (21 nodes, ~25 edges) - Heuristic function h_SLD is easy to compute

Traveling Salesman Problem (TSP)

VLSI Layout

Robot Navigation / Motion Planning

Assembly Sequencing

Protein Design


Key Observations for Exam

  1. State space size is the fundamental complexity driver — always estimate it first.
  2. The 8-puzzle has exactly 181,440 reachable states (not 9! = 362,880) because of parity — this is a common exam trap.
  3. TSP is NP-hard but solvable in practice for moderate n with good heuristics and branch-and-bound.
  4. Real-world problems generally require abstraction — the art is in choosing what to keep.
  5. Problem formulation choices (what counts as a state, what counts as an action) dramatically affect search difficulty.