Enhanced Simplified Memory-bounded A Star (SMA*+)

Justin Lovinger, Xiaoqin ZhangEPiC 2018

Abstract

In 1992, Stuart Russell briefly introduced a series of memory efficient optimal search algorithms. Among which is the Simplified Memory-bounded A Star (SMA) algorithm, unique for its explicit memory bound. Despite progress in memory efficient A Star variants, search algorithms with explicit memory bounds are absent from progress. SMA remains the premier memory bounded optimal search algorithm. In this paper, we present an enhanced version of SMA (SMA+), providing a new open list, simplified implementation, and a culling heuristic function, which improves search performance through a priori knowledge of the search space. We present benchmark and comparison results with state-of-the-art optimal search algorithms, and examine the performance characteristics of SMA*+.

Introduction

Pathfinding and state-space search often present a trade-off between memory and time. A is optimal and fast but suffers from exponential memory consumption, making it impractical for large-scale problems. Conversely, IDA* (Iterative Deepening A) is memory-efficient but incurs a significant time penalty due to repeated node re-expansions.

The original SMA (Simplified Memory-bounded A) algorithm was proposed to bridge this gap by utilizing all available memory and "forgetting" the least promising nodes only when the memory limit is reached. However, the original implementation's complexity hindered its adoption. This paper introduces SMA*+, an optimized evolution that streamlines logic and data structures for modern high-performance applications.

Methods: Enhancing the SMA* Framework

SMA+ introduces several key architectural improvements to the classic SMA logic:

Dual Priority Queues and Efficient Culling

A memory-bounded algorithm must efficiently identify both the best node to expand and the worst node to delete (cull). SMA*+ employs two synchronized priority queues—one for expansion and one for culling—paired with a hash table for $O(1)$ lookups. This dual-queue system significantly reduces the overhead of managing the open list compared to the complex binary tree structures of the original implementation.

The SMA* process of expanding nodes, culling the least promising ones, and updating parent f-costs to remember forgotten paths.

The Culling Heuristic $c(n)$

A major conceptual addition is the culling heuristic. Instead of simply deleting the node with the highest f-cost, SMA*+ can use a separate heuristic $c(n)$ to decide what to forget. For instance, a strategy considering both f-cost and depth can prevent the premature deletion of deep nodes that are likely to lead to a solution, thereby reducing "thrashing" (the cycle of deleting and immediately re-expanding the same nodes).

Structural Improvements

  • Forgotten Successor Table: Each node maintains a dedicated table to store the f-costs of its best forgotten children. This allows for more efficient "back-ups" and faster re-expansion if a path needs to be revisited.
  • Full Node Expansion: SMA*+ expands all successors of a node simultaneously, rather than one by one. This simplifies the search loop and reduces computational overhead.

Datasets and Benchmarks

The performance of SMA+ was evaluated against A, IDA, and the original SMA using four distinct benchmarks:

  1. Missionaries and Cannibals (MC): A logic puzzle with a low branching factor.
  2. 15-Puzzle: A standard sliding puzzle benchmark for heuristic search.
  3. Maze Pathfinding: 512x512 grid maps designed for deep search paths.
  4. Random Obstacle Maps: 512x512 grids with scattered obstacles.
Comparison of the search environments: a complex maze (left) and a map with random obstacles (right) from the Moving AI benchmark set.

Key Results

Benchmarks demonstrate that SMA*+ is a substantial upgrade over its predecessors:

  • Speed: In Maze pathfinding, SMA+ was approximately 2,100 times faster than IDA. While IDA required over 22,000 seconds, SMA+ completed the task in roughly 10 seconds with a 15,000-node limit.
  • Efficiency: SMA+ consistently expanded fewer nodes than the original SMA. In the 15-puzzle benchmark, it outperformed the original implementation by nearly 30 times.
  • A*-level Performance: When provided with a moderate memory budget, SMA+ runtimes were nearly identical to A, proving that optimality and speed can be maintained without infinite memory.

Conclusion

SMA*+ treats memory as a resource to be fully utilized rather than a constraint to be avoided. By optimizing the culling process and simplifying the underlying data structures, it provides a practical, high-performance solution for memory-bounded search. Future work involves developing problem-specific culling heuristics and testing the algorithm's scalability in terabyte-level memory environments.

Summary updated

BibTeX
@inproceedings{lovinger2018enhanced,
  author = {Justin Lovinger and Xiaoqin Zhang},
  title = {{Enhanced Simplified Memory-bounded A Star (SMA*+)}},
  booktitle = {EPiC},
  year = {2018},
  doi = {10.29007/v7zc},
}
Figure