Application of A* Algorithm and Its optimization Method

Yunxiang Liu, Du Jie, Hao Wang, Jia Lü2015

Abstract

Nowadays, traffic congestion is becoming more and more serious. It is urgent to find a path planning algorithm with high efficiency. As a heuristic algorithm, A* algorithm can solve the problem of path planning with high efficiency, and the design of heuristic function is particularly important. By analyzing the problems of route planning, some improvements have been made in this paper: firstly, the evaluation function with two elements of distance and direction are considered; through the process of normalization, the problem of unified unit has been solved; secondly, use the smallest heap spatial to load the node information dynamically, and reduce the memory usage space.

1. Introduction

As urban traffic congestion grows, the need for real-time, efficient pathfinding becomes critical. While the A algorithm is a staple in navigation, it faces two main hurdles in large-scale road networks: unit inconsistency in heuristic functions and computational overhead in managing node lists. The A algorithm is fundamentally more efficient than traditional methods like Dijkstra's algorithm because it limits the search area using a heuristic, as illustrated below.

Comparison of search areas between Dijkstra and A* algorithms.

2. Methodology

The authors propose a two-pronged optimization strategy to improve standard A* performance.

2.1 Heuristic Normalization

Many A* variants use a heuristic function that combines distance ($L$) and direction ($\alpha$). However, distance values (often in meters) are typically orders of magnitude larger than angular values (in radians or degrees). This causes the algorithm to effectively ignore direction, leading to sub-optimal search paths. To ensure distance and direction contribute equally, the authors introduce a normalization step:

$$h^*(j) = w1 \cdot (L/\bar{L}) + w2 \cdot (\alpha/\bar{\alpha})$$

This places both variables on a similar numerical scale, allowing the weights ($w1, w2$) to function as intended.

2.2 Smallest Heap and Dynamic Loading

The paper replaces standard list-based storage for the "OPEN list" with a binary heap, referred to as a "smallest heap." This data structure allows the algorithm to insert, delete, and find the minimum-cost node much faster than a linear search. Additionally, instead of loading an entire city's road network into RAM, the algorithm dynamically loads node information based on the current search range, significantly reducing the memory footprint.

3. Key Results

The experimental results demonstrate a clear performance boost. In a test case with 1,045 search nodes, the standard A* took 391ms, while the improved version took only 200ms—a nearly 50% reduction in search time.

Search time comparison between standard A* and the optimized binary heap version across different test groups.

As shown in the figure above, the optimized binary heap consistently outperformed the standard algorithm across various test groups. Furthermore, the authors observed a 5% increase in the efficiency of search area coverage.

4. Conclusion and Future Work

This paper demonstrates that normalization and efficient data structures can significantly enhance A* performance in urban routing. While effective, future work could explore rigorous methods for weight selection ($w1, w2$) and the integration of real-time traffic flow data into the normalized heuristic.

Summary updated

BibTeX
@misc{liu2015application,
  author = {Yunxiang Liu and Du Jie and Hao Wang and Jia Lü},
  title = {{Application of A* Algorithm and Its optimization Method}},
  year = {2015},
  doi = {10.22323/1.259.0062},
}
Figure