Resource Constrained Pathfinding with Enhanced Bidirectional A* Search

Saman Ahmadi, Andrea Raith, Guido Tack, Mahdi Jalili

Introduction

The Resource Constrained Shortest Path (RCSP) problem is a cornerstone of network optimization, with applications ranging from logistics to autonomous drone routing. While finding a standard shortest path is computationally efficient, adding resource constraints—such as battery life, noise limits, or time windows—transforms the task into an NP-hard problem. As the number of constraints or the network size increases, the search space expands exponentially, often making traditional algorithms impractical for real-time use.

This paper, presented at AAAI-25, introduces RCEBDA (Resource Constrained Enhanced Bidirectional A), a state-of-the-art algorithm designed to overcome these bottlenecks. RCEBDA* achieves performance gains of up to two orders of magnitude compared to previous methods, solving complex routing problems on large-scale maps that previously timed out after hours of computation.

Methodology: The RCEBDA* Framework

RCEBDA builds upon the bidirectional A framework, which simultaneously searches from the start node ($u_s$) and the goal node ($u_g$) to find an optimal meeting point. The "Enhanced" version introduces four critical innovations to manage the computational overhead of dominance pruning—the process of discarding paths that are strictly worse than existing alternatives in both cost and resource usage.

Figure 1: A conceptual graph illustrating the state representation ($h^f, h^b$) and resource-constrained edges in the bidirectional search framework.

The key technical contributions include:

  1. Better Informed Heuristics: Before the main search, the algorithm performs a "resource-based network reduction." It executes quick single-objective searches for each resource to prune states that cannot reach the goal within the remaining budget.
  2. Lazy Dominance Pruning: Instead of checking every new path against all known paths immediately, RCEBDA* delays these expensive checks until a node is extracted from the priority queue for expansion.
  3. Dual-List Storage ($X^d$ and $X^d_{Dom}$): To speed up path matching, the algorithm maintains two lists per state: one for non-dominated paths and another for dominated paths that might still be necessary for matching with the search from the opposite direction.
  4. Quick Pruning: A "fast-path" check compares new nodes against only the most recently explored node at that state, catching many redundancies with minimal overhead.

Experimental Evaluation

The authors evaluated RCEBDA* using standard benchmarks from the 9th DIMACS Implementation Challenge, focusing on large-scale road networks:

  • Maps: New York (NY), San Francisco Bay Area (BAY), and Colorado (COL). The COL map is particularly challenging, containing over 400,000 nodes and 1 million edges.
  • Scenarios: Tests included two ($k=3$) and three ($k=4$) resource constraints, such as distance, time, and network complexity proxies.
  • Tightness: 100 instances per map were tested across five resource "tightness" levels, ranging from 10% to 90% of the maximum possible budget.

Results and Key Insights

RCEBDA demonstrated a 100% success rate, solving every test instance within a 20-minute window. In contrast, previous state-of-the-art algorithms like ERCA and RCBDA* frequently failed to find solutions within an hour on the same hardware.

Figure 2: Runtime comparison showing RCEBDA* and its parallel variant (RCEBDA*par) achieving up to 100x speedup over the baseline RCBDA*.

Key findings include:

  • Massive Speedups: RCEBDA was frequently 100x faster than its predecessors on the most challenging, resource-constrained instances. This is visually evident in the scatter plot, where many RCEBDA runtimes fall significantly below the 100x speedup line compared to the baseline.
  • Initialization Impact: Pruning the search space before starting the A* search proved vital; disabling upper-bound pruning during initialization led to a 2x slowdown in "tight" scenarios where resources are scarce.
  • Parallelization: The parallel variant, RCEBDA*par, consistently performed near the "virtual best oracle," demonstrating excellent scalability on modern multi-core hardware.

Conclusion

RCEBDA* represents a significant leap in solving the RCSP problem, combining theoretical robustness with practical efficiency. By optimizing dominance pruning and utilizing better-informed heuristics, it enables real-time pathfinding in large, constrained networks. Future work may extend this framework to dynamic environments where edge costs and resource availability fluctuate over time.

Summary updated

BibTeX
@inproceedings{ahmadi2025resource,
  author = {Saman Ahmadi and Andrea Raith and Guido Tack and Mahdi Jalili},
  title = {{Resource Constrained Pathfinding with Enhanced Bidirectional A* Search}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i25.34892},
}
Figure