In the field of artificial intelligence, a persistent challenge is the trade-off between solution optimality and computational efficiency. While the classic A algorithm is guaranteed to find the optimal path, its search complexity often grows exponentially, making it impractical for large-scale or time-sensitive applications. In this paper, Ghallab and Allard introduce $A_\epsilon$*, a "near-admissible" search algorithm designed to find solutions within a user-defined error bound $(1+\epsilon)$ of the optimum while significantly reducing search time and memory usage.
The Problem: The High Cost of Optimality
The authors identify two primary drawbacks of the standard A* algorithm that $A_\epsilon$ seeks to rectify:
- Search Complexity and "Racing": In its pursuit of the absolute shortest path, A* often performs excessive backtracking. It effectively "races" multiple near-optimal paths against each other, expanding nodes across the entire frontier just to resolve minor cost differences. This leads to high computational overhead.
- Indiscriminate Cost Metrics: A does not distinguish between the cost of the path and the cost of the search process*. In many real-world scenarios, such as robotics or real-time planning, a slightly sub-optimal solution found quickly is far more valuable than a perfect solution found too late.
The $A_\epsilon$ Methodology
$A_\epsilon$ generalizes the A* framework by introducing a relaxation of the optimality constraint. The algorithm is built upon three key innovations:
1. The Acceptability Criterion
Instead of strictly expanding the node with the lowest estimated total cost $f(n)$, $A_\epsilon$ considers any node "acceptable" if its cost is within a factor of $(1+\epsilon)$ of the best node currently in the OPEN list. This allows the algorithm to focus on promising paths without being distracted by marginally better alternatives elsewhere in the search space.
2. Depth-Oriented Preference and the Second Heuristic ($h_c$)
To minimize backtracking, $A_\epsilon$ prioritizes staying on the current path as long as a successor remains "acceptable." To choose between multiple acceptable successors, the algorithm employs a second heuristic, $h_c(n)$, which estimates the computational distance (the number of remaining steps to the goal) rather than the physical path cost. This shifts the search toward the "easiest" path to find.
3. The Perseverant Strategy
When no successor of the current node meets the acceptability threshold, the algorithm does not immediately backtrack. Instead, it enters an "inner loop" to expand the best global node. This process often raises the global acceptability threshold, potentially making the current path's successors legal again and allowing the search to continue forward in a depth-first manner.
Experimental Evaluation
The authors evaluated $A_\epsilon$ using the Traveling Salesman Problem (TSP) with 9 cities randomly distributed in a unit square. The algorithm was tested across 60 different city distributions and compared against standard A* (where $\epsilon=0$) and the $Af^*$ algorithm proposed by Pearl and Kim (1982).
Key Results
The experiments revealed a dramatic reduction in search effort as the error tolerance $\epsilon$ increased. As shown in Table 1, the computational cost—measured by the number of nodes expanded—decreases rapidly as $\epsilon$ grows, moving the search complexity from exponential toward linear.
Crucially, this gain in efficiency does not come at the cost of catastrophic solution degradation. Table 2 demonstrates that even when $\epsilon$ is set to infinity (allowing the algorithm to find a solution in the minimum possible number of steps), the resulting path is only approximately 27% longer than the optimum on average.
Discussion and Limitations
$A_\epsilon$ successfully addresses the "racing" problem of A* by allowing one "good enough" path to win early. The inclusion of $h_c$ represents a significant conceptual shift, acknowledging that the shortest path is not always the most computationally efficient path to discover.
However, the authors note several areas for future research:
- Scaling: The current experiments were limited to 9-city TSPs; performance on larger, more complex state spaces remains to be seen.
- Parameter Sensitivity: The algorithm's performance depends on the weights used to balance path cost ($f$) and computational cost ($h_c$), which may require application-specific tuning.
- Heuristic Quality: Like all heuristic searches, $A_\epsilon$ is sensitive to the accuracy of $h$ and $h_c$. Poor heuristics could still lead the algorithm into unproductive regions of the search space.
In conclusion, $A_\epsilon$ provides a robust framework for balancing optimality and speed, offering a practical alternative to A* for complex problem-solving tasks where "near-optimal" is sufficient.
Summary updated