Memory Constraints, Search Space Complexity, and Heuristic Search Optimization
Embedded Systems, Memory Constraints, and Bounded Search
Hardware and Memory Evolution:
Historical computing devices and embedded systems operated under extreme memory constraints (for example, early Lego hardware platforms possessed as little as of memory).
Technological advancements have led to the miniaturization of memory and storage, making high-capacity storage physically small and inexpensive.
Despite hardware miniaturization allowing more memory to be embedded into devices, memory bound issues persist when problem sizes and algorithmic resource demands scale exponentially.
Memory-Bounded Search Variants:
When algorithm memory demands outpace available physical hardware, specific memory-bounded variants of heuristic search algorithms must be utilized:
Iterative Deepening A* (IDA*): Adapts iterative deepening to heuristic search to restrict memory consumption.
Recursive Best-First Search (RBFS): Mimics standard best-first search using linear space by recursively tracking the best alternative path's f-value.
Memory-bounded A* (MA): Sets explicit upper bounds on memory usage during A execution.
Simplified Memory-bounded A* (SMA): Uses all available memory to conduct A search, dropping the worst leaf node from the search tree when memory limits are reached while retaining its ancestor node values.
Machine Learning Integration in Search:
Agents can learn to optimize their search strategies over time.
Leveraging knowledge and structural properties of the search space enables an agent to formulate improved search representations and efficient heuristics.
Search Space Complexity in Tile Puzzles
The 8-Puzzle Formulation:
Consists of a grid containing eight numbered tiles and one open space (blank square).
Goal state setup example: Top row containing tiles ; second row containing tiles ; third row containing tiles .
For a randomly generated 8-puzzle instance, the average solution cost is approximately steps.
Uninformed Tree Search Complexity:
Assuming an average branching factor of approximately (given available moves per state), evaluating a solution path at depth via exhaustive tree search considers:
Total search paths:
Approximate total path state count: states.
Graph Search Optimization:
Graph search avoids redundant path processing by maintaining an open and closed list, eliminating duplicate and unreachable states.
Graph search reduces the 8-puzzle state space by a factor of approximately .
The exact total number of reachable states in an 8-puzzle is:
reachable states represents a computationally manageable domain for modern machinery.
Scaling to the 15-Puzzle:
Expanding the domain to a grid (the 15-puzzle) results in an exponential growth of the search space.
The state space complexity of the 15-puzzle scales up to roughly states, rendering unguided/exhaustive search intractable.
Heuristic Functions for Search Optimization
Definition and Requirements:
A heuristic function estimates the remaining cost from node to the goal state.
To guarantee optimal solutions, an admissible heuristic must never overestimate the actual number of steps required to reach the goal state.
Standard Heuristic Candidates for Tile Puzzles:
Misplaced Tiles Heuristic ():
Measures heuristic cost by counting the total number of tiles currently located in non-goal positions.
Example: If all tiles are out of position in the start state,
Underestimation logic: Since swapping a tile into an adjacent open space moves at most one tile into its target position per step, every misplaced tile must move at least once. Thus, serves as a strict lower bound.
Manhattan Distance / City Block Distance Heuristic ():
Calculates the sum of horizontal and vertical grid distances of each individual tile from its targeted goal position.
Accounted for because tiles cannot move diagonally.
Generates a significantly tighter, more accurate cost estimate than .
Comparative Performance: Iterative Deepening vs. Heuristic Search
Evaluating Heuristic Quality:
The quality of a heuristic is determined by its ability to reduce the effective branching factor of the search tree, thereby sharply limiting the total number of search nodes generated.
Node Generation Comparison by Depth:
Iterative Deepening Depth-First Search (IDS): Standard uninformed search baseline.
Depth : nodes generated
Depth : nodes generated
Depth : nodes generated
Depth : over nodes generated
Depth : over nodes generated
Depth : over nodes generated
A* Search with Misplaced Tiles Heuristic ():
Depth : Visits only nodes (compared to over nodes generated by IDS).
A* Search with Manhattan Distance Heuristic ():
Provides further efficiency gains and superior search cost reductions compared to across all search depths.