Abstract
TBA (Time-Bounded A) is a real-time search algorithm that delivers the high-quality paths of A while meeting the strict, constant-time per-action constraints required by video games. Unlike previous real-time methods that constantly re-plan from scratch, TBA "time-slices" a single A* search, allowing agents to move toward the goal while the search is still in progress.
Introduction
In many applications, particularly video games, agents must move immediately. They cannot wait for a global A search to find a perfect path across a massive map. Traditional "real-time" search algorithms like LRTA solve this by limiting the search depth for each move. However, these methods are often "forgetful," expanding the same states repeatedly or getting stuck in local minima (heuristic depressions). While newer methods use pre-computed abstractions to speed up search, these fail when the environment changes dynamically, such as when a bridge is destroyed or a gate opens.
Methods: Time-Slicing and Adaptive Movement
TBA treats A as a background process executed in increments. In each time step, the algorithm expands a fixed number of states ($N_E$) using standard A*, maintaining the "Open" and "Closed" lists across steps rather than discarding them. While the search continues, the algorithm identifies the most promising state on the current frontier and traces a path back to the start.
The agent's movement is adaptive. If the agent is on the path currently being traced, it moves one step closer to the goal. If the search finds a better route elsewhere, the agent backtracks toward the start until it intercepts the new path.
To optimize this behavior, the authors implemented "shortcut" logic to prevent unnecessary backtracking and a "hysteresis" rule to prevent the agent from indecisively switching between two paths of nearly equal cost.
Experimental Evaluation
The algorithm was evaluated on gridworld path-finding maps modeled after real-time strategy (RTS) games, upscaled to 512 × 512 cells to increase difficulty. TBA was compared against classic algorithms (LRTA, K LRTA, P LRTA) and modern state-of-the-art methods (PR LRTA, D LRTA) across 100 different search scenarios.
Results
TBA expands an order of magnitude fewer states than traditional real-time search algorithms while finding paths of comparable quality. As shown in the performance benchmarks, TBA maintains low suboptimality with significantly fewer state expansions per move compared to LRTA* variants.
Key results include:
- Efficiency: TBA can achieve the same solution quality as LRTA using 100 times less computation per action.
- Speed: With the same computational budget, it reaches the goal 20 times faster (fewer total actions).
- Robustness: It matches the performance of complex state-of-the-art algorithms like D LRTA* without requiring expensive pre-computed databases, making it ideal for dynamic environments where terrain changes frequently.
Conclusion
TBA demonstrates that search can be treated as a continuous resource rather than a one-time event. By retaining search state across moves, it avoids the massive overhead of state re-expansion. While it requires more memory than local-search methods—equivalent to standard A—its simplicity and performance in dynamic maps make it a powerful tool for real-time pathfinding. Future work may explore more refined backtracking strategies to further minimize agent travel.
Summary updated