State Space Formalism & Uninformed Search Strategies
“Uninformed search explores state spaces without domain-specific heuristics. Breadth-First Search (BFS) is complete and optimal for uniform step costs but consumes exponential memory O(b^d). Depth-First Search (DFS) uses minimal memory O(b*m) but is incomplete on infinite graphs. Uniform Cost Search (UCS) is optimal for general non-negative step costs. Iterative Deepening Search (IDS) combines BFS completeness and optimality with DFS linear memory efficiency.”
- —Search Problem Formulation: 5-tuple: Initial State s_0, Actions(s), Transition Model Result(s, a), Goal Test Goal(s), Path Cost c(s, a, s').
- —Branching factor b = maximum number of successors of any node; d = depth of shallowest goal; m = maximum depth of state space.
- —BFS Complexity: Time = O(b^d); Space = O(b^d) (stores entire frontier); Complete = Yes (if b is finite); Optimal = Yes (if step costs are equal).
- —DFS Complexity: Time = O(b^m); Space = O(b*m) (linear space); Complete = No (can loop infinitely on cyclic/infinite paths); Optimal = No.
- —Uniform Cost Search (UCS): Expands node with lowest path cost g(n); Time = O(b^(1 + floor(C* / epsilon))); Space = O(b^(1 + floor(C* / epsilon))); Optimal = Yes (for step costs >= epsilon > 0).
- —Iterative Deepening Search (IDS): Successive depth-limited searches from depth 0, 1, 2, ... d. Time = O(b^d); Space = O(b*d); Complete = Yes; Optimal = Yes (for uniform step costs).
- —In BFS, the Goal Test is applied when a node is GENERATED (placed on frontier), NOT when expanded. In UCS, the Goal Test MUST be applied when a node is EXPANDED (popped from frontier) to guarantee optimality!
- —Do not assume IDS repeats too much work: the ratio of states generated in IDS compared to BFS is at most b / (b - 1). For b = 10, IDS has only ~11% overhead while saving gigabytes of RAM.
- —If step costs are zero or negative, UCS can loop indefinitely or fail to find optimal paths.