Introduction
In pathfinding, A is the industry standard, performing optimally when heuristics are consistent (satisfying the triangle inequality). However, real-world applications—such as those using compressed heuristics or abstraction—often involve inconsistent heuristics. In these cases, A can suffer from an exponential explosion of node re-expansions ($O(2^N)$).
Efficient Budgeted Graph Search ($BGSe$) is a novel algorithm designed to provide the "best of both worlds": it matches A's performance on consistent heuristics while maintaining a strict theoretical upper bound ($O(N \log C^*)$) when heuristics are inconsistent. By strategically "over-expanding" nodes, it avoids the exponential explosion that can cripple A in complex state spaces.
Methodology
$BGSe$ evolves the original Budgeted Graph Search (BGS) through several key innovations:
- A* Safety Net: It initially expands nodes in f-cost order like A*, switching to a budgeted g-cost order only if re-expansions exceed a specific threshold.
- Persistent Data Structures: Unlike BGS, $BGSe$ carries OPEN and CLOSED lists forward between iterations, significantly reducing computational overhead.
- Heuristic Propagation: It utilizes Bidirectional Pathmax (BPMX) for undirected graphs to smooth inconsistent heuristic values by passing better estimates between neighboring nodes.
- Oracle-Driven Budgeting: An "Oracle" using exponential and binary search determines the optimal cost limit for each iteration, ensuring steady expansion growth.
Experimental Evaluation
The researchers evaluated $BGSe$ using:
- Artificial Worst-Case Graphs: Specifically designed to trigger the $O(2^N)$ behavior in A* and $O(N^2)$ behavior in other algorithms.
- Dragon Age: Origins Benchmarks: Standard pathfinding maps using both consistent (octile distance) and inconsistent (compressed differential) heuristics.
Key Results
$BGSe$ successfully bridges the gap between standard A* and robust budgeted search, providing high efficiency across varying heuristic qualities.
Performance on Consistent Heuristics
On standard benchmarks with consistent heuristics, $BGSe$ performs identically to A* in terms of node expansions. As shown in the table below, both algorithms required 6,700 expansions, whereas the original BGS was significantly less efficient.
Scaling in Worst-Case Scenarios
In artificial tests designed to exploit heuristic inconsistency, A*'s expansions explode exponentially as instance size increases. $BGSe$ maintains near-linear growth, validating its theoretical $O(N \log C^*)$ bound and demonstrating its robustness against poor heuristics.
Handling Inconsistency in Real-World Maps
When faced with inconsistent heuristics on Dragon Age maps, A* required approximately 30,788 expansions. $BGSe$ reduced this to 12,650 expansions, a massive improvement in search efficiency for memory-constrained environments.
Discussion and Limitations
While $BGSe$ matches A* in node expansions for consistent cases, it carries a slight constant overhead (roughly 17% slower in raw time) due to budget management. A key insight of the work is that breaking the $\Omega(N^2)$ performance barrier for inconsistent heuristics requires "strategic over-expansion"—expanding nodes that may initially appear sub-optimal to gain information that prevents future re-expansions.
Future work includes refining tie-breaking rules in the final search layers and exploring whether bidirectional variants of the budgeted search framework could provide even stronger worst-case guarantees.
Summary updated