Next Article in Journal
QoS and Grid-Shifting Ability Guaranteed Optimal Capacity Sizing Method of Battery Swapping Station Considering Seasonal Characteristics
Next Article in Special Issue
MIC-SSO: A Two-Stage Hybrid Feature Selection Approach for Tabular Data
Previous Article in Journal
Solar-Tracker Diffuse-Response Algorithm for Balancing Energy Gain and Mechanical Wear in Photovoltaic Systems
Previous Article in Special Issue
Re-Evaluating Android Malware Detection: Tabular Features, Vision Models, and Ensembles
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Lexicographic A*: Hierarchical Distance and Turn Optimization for Mobile Robots

1
Department of Industrial Engineering and Engineering Management, National Tsing Hua University, Hsinchu 300, Taiwan
2
Department of Industrial and Systems Engineering, College of Electrical Engineering and Computer Science, Chung Yuan Christian University, Taoyuan 320, Taiwan
3
Computer Science & Information Engineering, National Formosa University, Yunlin 632, Taiwan
4
Department of Computer Science and Information Engineering, Southern Taiwan University of Science and Technology, Tainan 710, Taiwan
5
Department of International Logistics and Transportation Management, Kainan University, Taoyuan 338, Taiwan
*
Author to whom correspondence should be addressed.
Electronics 2026, 15(3), 599; https://doi.org/10.3390/electronics15030599
Submission received: 17 December 2025 / Revised: 24 January 2026 / Accepted: 27 January 2026 / Published: 29 January 2026
(This article belongs to the Special Issue Feature Papers in Networks: 2025–2026 Edition)

Abstract

Autonomous mobile robots require efficient path planning algorithms for navigation in grid-based environments. While the A* algorithm guarantees optimally short paths using admissible heuristics, it exhibits path degeneracy: multiple geometrically distinct paths often share identical length. Classical A* arbitrarily selects among these equal-cost candidates, frequently producing trajectories with excessive directional changes. Each turn induces deceleration–acceleration cycles that degrade energy efficiency and accelerate mechanical wear. To address this, we propose Turn-Minimizing A* (TM-A*), a lexicographic optimization approach that maintains distance optimality while minimizing cumulative heading changes. Unlike weighted-cost methods that require parameter calibration, TM-A* applies a dual-objective framework: distance takes strict priority, with turn count serving as a tie-breaker among equal-length paths. A key contribution of this work is the explicit guarantee that the generated path has the minimum number of turns among all shortest paths. By formulating path planning as a lexicographic optimization problem, TM-A* strictly prioritizes path length optimality and deterministically selects, among all equal-length candidates, the one with the fewest directional changes. Unlike classical A*, which arbitrarily resolves path degeneracy, TM-A* provably eliminates this ambiguity. As a result, the method ensures globally shortest paths with minimal turning, directly improving trajectory smoothness and operational efficiency. We prove that TM-A* preserves the O(|E|log|V|) time complexity of classical A*. Validation across 30 independent Monte Carlo trials at resolutions from 200 × 200 to 1000 × 1000 demonstrates that TM-A* reduces turn count by 39–43% relative to baseline A* (p < 0.001). Although the inclusion of orientation expands the search space four-fold, the computation time increases by only a factor of approximately 3 (≈200%), indicating efficient scalability relative to problem complexity. With absolute latency remaining below 3300 ms for 1000 × 1000 grids, the approach is highly suitable for static global planning. Consequently, TM-A* provides a deterministic and scalable solution for generating smooth trajectories in industrial mobile robot applications.

1. Introduction

Autonomous Mobile Robots (AMRs) have become indispensable in modern infrastructure, driving efficiency in smart warehouses [1,2], hospitals [3], and logistics hubs [4]. In these structured yet dynamic environments, where fixed obstacles coexist with moving humans and machinery, a robot’s effectiveness depends on more than just reaching a destination. It relies on the ability to execute smooth, energy-efficient, and dynamically stable trajectories [5,6,7,8].
For decades, graph-based methods like Dijkstra’s algorithm [9,10] and A* [11,12] have served as the workhorses of path planning on occupancy grids. They are favored because they guarantee completeness and provide the shortest possible path (in terms of grid steps [13,14]) when using admissible heuristics. In a standard 4-connected grid, the classical A* search expands nodes by minimizing the cost function f(c) = g(c) + h(c), where g(c) is the cost from the start to cell c and h(c) is the heuristic distance from cell c to the goal [15].
However, while A* guarantees distance optimality, it is indifferent to geometric shape [16,17]. In grid environments, path degeneracy is common [18,19]. This means that hundreds of distinct paths may share the exact same optimal length yet differ drastically in their number of turns. Because standard A* treats these equal-cost candidates as interchangeable, it often arbitrarily selects trajectories filled with unnecessary zig-zags. In the physical world, this jagged motion is costly. Every unnecessary turn forces the robot to decelerate and re-orient, increasing energy consumption, accelerating wheel wear, and amplifying tracking errors, especially in narrow corridors where stability is critical.
An illustrative figure that visually demonstrates path degeneracy in grid-based planning is shown in Figure 1. The figure shows two geometrically different paths that have the same grid length:
  • Path A contains many unnecessary turns (zig-zag behavior).
  • Path B reaches the same goal with fewer turns while remaining equally short.
Researchers have attempted to close this smoothness gap through various strategies, such as post-processing with splines, grid inflation, or continuous-state variants like Hybrid A*. While these methods can reduce curvature, they often come with significant trade-offs [20,21]. They may sacrifice guaranteed distance optimality, require expensive collision-checking, or demand complex parameter tuning. A lightweight alternative is needed; one that embeds a smoothness preference directly into the discrete search without breaking the optimality guarantee.
Despite their widespread use, classical graph-based planners such as A* optimize only path length and ignore geometric quality, leaving a critical gap between theoretical optimality and practical execution. In grid environments, this indifference leads to severe path degeneracy, where multiple shortest paths exist but differ substantially in turn count, and standard A* resolves this ambiguity arbitrarily. Existing remedies—such as post-processing smoothing, grid inflation, or continuous-state planners—either forfeit strict distance optimality, incur high computational cost, or require careful parameter tuning. Consequently, there remains a clear research gap for a lightweight, discrete planning method that guarantees the shortest paths while explicitly minimizing unnecessary turns during the search itself.
To address this, we propose Turn-Minimizing A* (TM-A*). This algorithm augments classical A* with a rigorous lexicographic optimization framework. TM-A* maintains the shortest path length as the primary objective while treating the curvature count, or cumulative heading changes, as a secondary objective to resolve ties.
Formally, TM-A* orders candidates using a dual-cost pair (f1, f2). It prioritizes nodes based on distance (f1) first. Only when distances are equal does it compare turn counts (f2). This simple yet powerful modification ensures that the algorithm always selects the most directionally consistent trajectory among the optimal set.
A distinct advantage of TM-A* lies in its efficiency. Theoretical analysis confirms that it retains the same asymptotic time complexity as classical A*, O(|E|log|V|), where |V| is the number of grid nodes and |E| is the number of edges. It also maintains a standard space complexity of O(|V|). TM-A* adds only an O(1) comparison per node expansion while consistently producing straighter paths. Our simulations demonstrate that this approach significantly reduces turning effort and improves energy efficiency without the need for post-processing or complex weight tuning.
Our contributions are four-fold:
  • A Curvature-Aware Strategy: While prior tie-breaking methods [20,21] use fixed weights requiring parameter tuning, we introduce a lexicographic rule requiring no calibration to prefer those with minimal turning.
  • Discrete Curvature Modeling: We define a model for grid motion based on heading transitions that integrate seamlessly with admissible heuristics.
  • Lexicographic Formulation: We propose the TM-A* algorithm, proving that it preserves shortest-path guarantees while maintaining the theoretical bounds of standard A*.
  • Validation: Through 30 randomized Monte Carlo trials per resolution, we demonstrate that TM-A* achieves a statistically significant reduction in turns (≈42%, p < 0.001) compared to Standard A*. Although the algorithm requires increased computation time due to expanded state checks, the trade-off is justified by the substantial improvement in path smoothness, with runtimes remaining negligible for static planning tasks.
The main contributions of this work are summarized as follows, explicitly distinguishing theoretical, algorithmic, and experimental aspects.
  • Theoretical Contributions
  • We formulate path planning as a lexicographic optimization problem and theoretically establish that TM-A* guarantees minimum turn count among all shortest paths while strictly preserving distance optimality.
  • We prove that the proposed TM-A* algorithm retains the same asymptotic time complexity as classical A*, namely O(|E|log|V|), despite incorporating orientation into the state representation.
  • Algorithmic Contributions
  • We propose Turn-Minimizing A* (TM-A*), a lightweight extension of classical A* that resolves path degeneracy by using turn count as a deterministic tie-breaker among equal-length paths.
  • Unlike weighted or heuristic tuning approaches, TM-A* introduces a dual-objective cost structure that requires no parameter calibration and integrates seamlessly into standard grid-based search frameworks.
  • Experimental Contributions
  • We conduct extensive Monte Carlo simulations across grid resolutions ranging from 200 × 200 times to 1000 × 1000, demonstrating consistent turn reduction of 39–43% compared to baseline A*.
  • We empirically show that, although the state space increases four-fold, the observed computation time grows by only approximately 200%, with absolute planning latency remaining below 3300 ms, confirming the practical scalability of TM-A* for static global planning scenarios.
The remainder of this paper is organized as follows: Section 2 outlines the definitions and assumptions. Section 3 reviews related work on A* variants. Section 4 details the TM-A* algorithm and its complexity analysis. Section 5 presents simulation results, and Section 6 concludes with implications for practical deployment.

2. Acronyms, Nomenclatures, and Assumptions

Important acronyms, nomenclature, and assumptions related to the proposed TM-A* algorithm are presented in this section.

2.1. Acronyms

AMR:Autonomous Mobile Robot
OGN:Occupancy Grid Network
TM-A*:Proposed Turn-Minimizing A*

2.2. Nomenclatures

Lexicographic evaluation—The evaluation function is a lexicographic pair (f1, f2). When comparing two nodes, vi and vi:
( f 1 ( v i ) , f 2 ( v i ) ) ( f 1 ( v j ) , f 2 ( v j ) )
if and only if
f 1 ( v i ) < f 1 ( v j )   or f 1 v i = f 1 v j   and   f 2 ( v i ) < f 2 ( v j ) .
This ensures that the path length is always prioritized, and among all paths with equal lengths, the algorithm selects the path with fewer turns, producing a smoother trajectory.
OPEN
The frontier set, defined as a priority queue (min-heap) containing all candidate cells to be expanded. Each cell in OPEN is lexicographically ordered by its evaluation pair (f1, f2).
CLOSED
The explored set, defined as a set of cells that have already been expanded (i.e., their neighbors have been examined). Once a cell is moved to CLOSED, it will not be revisited.
turn_inc
The turn increment, defined as a binary variable used to detect a turn. If the direction to a neighbor differs from dir(current), turn_inc = 1; otherwise, turn_inc = 0. This increment is added to g2 to update the cumulative turn count.
tentative
The temporary candidate values, which are the provisional cost estimates computed when evaluating a neighbor cell. For example, tentative g1, tentative g2, tentative f1, and tentative f2 represent the values that would apply to the neighbor if the current path were selected. These tentative values are compared with existing records to decide whether to update the neighbor’s and parent’s costs.

2.3. Assumptions

  • Discrete Navigation: The AMR operates within an occupancy grid, moving discretely from one cell to another based on accessibility.
  • 4-neighbor connectivity: Motion is restricted to the four cardinal directions (North, South, East, West), defined by a Manhattan distance of 1. This constraint aligns with differential-drive kinematics and enhances computational efficiency by reducing the search branching factor.

3. Problem Formulation and Preliminaries

The central contribution of this work is a modified A* algorithm that guarantees both path length optimality and a minimal number of turns among all shortest paths. This section establishes the mathematical definitions for the occupancy grid representation and formalizes the path planning problem.

3.1. Environment Representation

We model the robot’s workspace as an Occupancy Grid [22,23], which provides a discrete representation of the environment by partitioning the continuous space into a regular cell lattice. Let Gm×n = (V, E) denote an m × n grid, where the set of vertices (cells) is defined as
V = {ci,j | i = 0, 1, …, (m − 1), j = 0, 1, …, (n − 1)}.
Each cell ci,j is associated with an occupancy probability Pr(ci,j) ∈ [0, 1]. Cells are classified as free or occupied by thresholding Pr(ci,j), and the edges E encode t, the adjacency relationships under the selected connectivity model.
Motion is defined as a sequence of discrete transitions. At any discrete time step τ, the robot occupies some c(τ) ∈ V. A path is an ordered sequence
P = {c1, c2, …, c|P|},
where all ciVfree and consecutive cells are valid neighbors. We adopt 4-neighbor connectivity model, restricting motion to the cardinal directions (North, South, East, West). Two cells ci,j and ck,l are 4-neighbors if and only if their Manhattan distance is exactly one:
dist(ci,j, ck,l) = |ik| + |jl| = 1
We selected this design for three strategic reasons.
  • Search Efficiency: It reduces the branching factor to four, improving computational speed.
  • Kinematic Alignment: It suits differential-drive robots that operate efficiently with orthogonal moves.
  • Collision Safety: It simplifies footprint verification during traversal.
Under this 4-neighbor constraint, the Manhattan distance [24] serves as the ideal consistent and admissible heuristic for A*. It provides an exact lower bound for the minimum number of grid steps required to reach the goal. In contrast, Euclidean distance [25,26] tends to underestimate the true path length in 4-connected systems because diagonal shortcuts are physically impossible. Furthermore, Manhattan distance computations require only integer arithmetic, avoiding computationally expensive floating-point and square-root operations.
The choice of a 4-connected grid is reasonable and well-aligned with the goals of this study, as it provides a clear and widely adopted abstraction for analyzing distance optimality, heuristic admissibility, and turn behavior. Under 4-neighbor motion constraints, Manhattan distance is both exact and computationally efficient, allowing the effects of path degeneracy and turn minimization to be isolated without confounding diagonal shortcuts. However, compared to 8-connected grids, this choice restricts diagonal motion, which can reduce path length and inherently lower turn counts by allowing smoother trajectories. While the proposed framework is not limited to 4-connected settings and can be extended to 8-connected grids with appropriate cost models and heuristics, such extensions may alter the trade-off between path length, smoothness, and computational complexity, and therefore warrant separate investigation.
Finally, regarding the environment contents, the cells are classified as free or occupied based on sensor data. While the global map is static, containing fixed obstacles like walls and shelves mapped via LiDAR [27], the environment also contains dynamic elements such as humans and other vehicles. We manage these through periodic grid updates derived from real-time sensor feedback. This ensures that the planner operates on an occupancy grid that reflects the most current valid state of the environment.
A simple tie-breaking rule applied to purely positional states cannot reliably minimize the number of turns, because orientation information is lost when multiple arrivals at the same cell are merged into a single state. For example, in a 4-connected grid with start cell s = (0,0) and goal cell t = (2,1), two shortest paths of equal length L = 3 exist: Path A, 0,0 ) ( 1,0 ) ( 2,0 ) ( 2,1 , with one turn, and Path B, 0,0 ) ( 0,1 ) ( 1,1 ) ( 2,1 , with two turns. In a positional A* search, the cell (1,1) is treated as a single node regardless of the arrival direction. Once this cell is closed, alternative arrivals that would lead to fewer turns are discarded, and the search may therefore commit to Path B due to incidental expansion order, even though Path A is geometrically smoother. It avoids this issue by explicitly accounting for arrival direction in the search process and by preserving orientation-dependent alternatives until dominance is established in both path length and turn count. As a result, It performs a true lexicographic optimization among shortest paths rather than a heuristic tie-breaking over collapsed positional states.

3.2. Problem Formulation

Building upon this grid structure, we assign a traversal cost C(c) to each cell cV to reflect its accessibility:
C ( c ) = 1 if   c V f r e e if   c O .
Given a start cell s and a target cell t, a valid path P is a sequence of connected free cells. The primary objective of the A* search is to minimize the total path length L(P), defined as the sum of traversal costs:
L ( P ) = c P C ( c ) .
Standard A* tends to produce jagged trajectories because the grid structure allows for many different paths that all share the same minimum length, Lmin, standard A* often produces jagged trajectories. We address this limitation by incorporating curvature count as a secondary optimization criterion.
To minimize turns during the search process, the algorithm must track the robot’s orientation at every step. In a standard grid with 4-neighbor connectivity, the heading direction θ is discrete:
θ ∈ {0°, 90°, 180°, 270°}.
Unlike classical A*, which treats nodes simply as coordinate pairs (x, y), TM-A* requires awareness of the arrival direction. When expanding a cell c, the cost of moving to a neighbor cnext depends on the transition from the current heading θcurr to the new heading θnext.
The curvature count M(P) for a trajectory P = {c1, c2, …, cM} is calculated cumulatively. Formally, the number of turns is the sum of directional changes:
M P = i = 1 | P | 1 Ψ ( θ i ( P ) , θ i + 1 ( P ) ) ,
where Ψ ( θ i + 1 ( P ) , θ i ( P ) ) is the indicator function that contributes cost when the heading changes:
Ψ ( θ i ( P ) , θ i + 1 ( P ) ) = 1 , i f   θ i + 1 P θ i P , 0 , o t h e r w i s e . .
If the robot continues in a straight line, Ψ remains zero. This metric prioritizes directional consistency. A path with a lower accumulated M(P) value indicates a smoother trajectory, which is desirable for motion-planning tasks requiring energy efficiency, stability, or reduced mechanical stress.
The goal of TM-A* is to find the path P* that minimizes the turn count M(P) strictly within the set of distance-optimal paths:
P * = argmin   P M ( P )   subject   to   L ( P ) = L min .
where Lmin is the optimal path length returned by standard A*.

3.3. Classical A* Path Planning on Manhattan Grids

A* is a best-first search algorithm that efficiently determines the shortest path from the source to the target [28,29] by combining the actual path cost g(c) with the estimated remaining cost h(c) [30]. At each iteration, A* expands the node from the priority queue (OPEN list) that possesses the minimum global cost f(c), defined as
f(c) = g(c) + h(c),
where g(c) represents the accumulated cost from the start node to cell c, and h(c) is the heuristic estimate from c to the goal.
For 4-neighbor, unit-cost grids, g(c) is equal to the number of grid steps from the start. As established in Section 3.1, the Manhattan distance serves as an admissible and consistent heuristic, yielding strong guidance and guaranteeing optimality regarding path length.

3.3.1. Baseline A* Algorithm and Tie-Breaking

When several OPEN list nodes share the same f-value, tie-breaking determines which equal-length solution A* is ultimately returned. Common rules include stable FIFO (expand the earliest inserted) [31], directional preference (prioritize a subset of cardinal directions) [32] or LIFO (reverse the insertion order) [33]. Although these policies preserve the length optimality under admissible heuristics, they can dramatically alter the geometry of the selected path among multiple shortest alternatives.
The baseline algorithm logic is presented below (Algorithm 1). Note that this version prioritizes distance only, without any awareness of turning costs.
Algorithm 1: Baseline A*(s, t) with FIFO tie-breaking
Input: Occupancy grid Gm×n = (V, E), source cell s = (0, 0), target cell t = (m − 1, n − 1), obstacle set O .
Output: Shortest path PA* from s to t, or null if no path exists.
STEP 0. Initialize: OPEN = {s}, CLOSED = ∅, g(s) = 0, f(s) = g(s) + h(s), and parent(s) = null.
STEP 1.While OPEN is not empty do
STEP 2.  u = node in OPEN with lowest f value (break ties via FIFO)
STEP 3.  If u = t then Return ReconstructPath(u)
STEP 4.  Move u from OPEN to CLOSED
STEP 5.  For each neighbor v of u do
STEP 6.   If v ∈ CLOSED or v O then Continue
STEP 7.   tentative_g = g(u) + 1
STEP 8.   If v ∉ OPEN or tentative_g < g(v) then
STEP 9.      parent(v) = u
STEP 10.    g(v) = tentative_g
STEP 11.    f(v) = g(v) + h(v)
STEP 12.    If v ∉ OPEN then let OPEN = OPEN ∪ {v}
STEP 13.Return Failure (No Path Found)
This baseline uses FIFO as the tie-breaker; when multiple nodes share the same (f), the node inserted earliest is expanded first. The rule is simple and maintains standard optimality guarantees, but it does not control the path smoothness; among equally short solutions, the returned path may be geometrically jagged with unnecessary heading changes.

3.3.2. Complexity Analysis I

With a binary heap implementation and a consistent heuristic, the asymptotic time complexity of A* on a graph is O(|E|log|V|). For a standard grid map using 4-connectivity, the number of edges is linear to the number of vertices (|E| ≈ 4|V|). Consequently, the time complexity simplifies to O(|V|log|V|), and the space complexity is O(|V|) to store the open and closed lists.
However, the effective computational effort depends heavily on the heuristic quality. In the worst-case scenario with a poor heuristic, the number of node expansions can grow exponentially with the solution depth d, denoted as O(bd) where b is the effective branching factor.

3.3.3. Limitations for Robot Navigation

Despite its dominance in general pathfinding, classical A* presents several practical limitations when deployed on autonomous mobile robots [12,34]:
  • Sensitivity to tie-breaking: It returns only one of potentially many shortest paths. Without explicit guidance, it may select a trajectory with excessive turns, leading to erratic motion.
  • No explicit smoothness objective: The algorithm optimizes purely for length. Directional consistency (minimizing heading changes) is ignored, which increases mechanical wear and energy consumption.
  • Limited Dynamic Robustness: Classical A* assumes a static map. In dynamic environments with moving humans or machinery, the rigid adherence to a pre-calculated path often requires frequent, computationally expensive replanning.
These limitations motivated the development of an enhanced A* variant that maintains length optimality while systematically selecting paths with minimal turns among all shortest alternatives.
Despite its widespread use in general pathfinding, classical A* exhibits several limitations when deployed in real-world scenarios, particularly for autonomous mobile robots. One major limitation is its sensitivity to tie-breaking, as it often selects a single shortest path without considering multiple alternatives. Without explicit criteria, this can lead to paths with excessive turns, resulting in erratic motion and inefficient navigation. Additionally, classical A* does not explicitly optimize for smoothness, focusing solely on path length. As a result, it ignores directional consistency, which can increase mechanical wear and energy consumption due to frequent heading changes. Another limitation is its limited dynamic robustness: classical A* assumes a static map and fails to adapt efficiently in dynamic environments, where obstacles such as moving humans or machinery may require frequent and computationally expensive replanning. Moreover, these limitations are more pronounced when extending classical A* to non-grid or continuous environments, where the algorithm’s grid-based assumptions do not hold. In such settings, the rigid structure of A* becomes less effective, requiring more sophisticated methods to account for continuous motion and more flexible path planning. These challenges motivated the development of enhanced A* variants, like the Turn-Minimizing A* (TM-A*), which address some of these issues by reducing turns and maintaining length optimality while still needing further adjustments for continuous or non-grid environments.

3.4. Related Work on Path Smoothness and Turn Minimization

Path planning for AMRs has been studied extensively, with algorithms broadly classified into graph-based, sampling-based, and optimization-based approaches. Graph-based methods such as Dijkstra’s algorithm [9] and A* [11,12] remain dominant in occupancy-grid navigation because of their theoretical completeness and optimality guarantees. However, classical A* focuses solely on minimizing the geometric distance without considering the path smoothness or number of turns [35]. Consequently, A* paths often contain frequent or unnecessary turns, which degrade the control stability, increase energy consumption, and reduce the mechanical lifetime during execution.
In robotic navigation, path smoothness is characterized by directional consistency. Fewer turns and heading changes result in a smoother and more efficient motion. Excessive turning induces higher control effort, greater wheel slippage, increased power consumption, and reduced trajectory-tracking accuracy. Therefore, modern path planning has increasingly emphasized not only distance optimality but also geometric quality in terms of turn minimization.

3.4.1. Existing Approaches to Path Smoothing

Several strategies have been proposed to improve the smoothness of A*-generated paths. We categorize them by their limitations regarding optimality and computational cost.
  • Continuous State-Space Planners (Hybrid A*)
Hybrid A* incorporates continuous curvature constraints by extending A* into a hybrid discrete–continuous state space with explicit heading angles [20]. Although Hybrid A* produces curvature-continuous and dynamically feasible paths that are suitable for nonholonomic vehicles, it requires fine-grained discretization of both the position and heading, significantly increasing the state-space size and computational cost. This overhead may be prohibitive for industrial AMRs on high-resolution grids.
2.
Post-Processing Techniques
Post-processing methods apply smoothing after A* planning using techniques such as spline fitting [36], Bézier curves [34], corner cutting [37], and elastic-band deformation [38]. These approaches can visually smooth trajectories but suffer from the following critical drawbacks: (1) they may increase the path length, violating optimality; (2) smoothed paths may penetrate obstacles or reduce clearance; and (3) the smoothing degree is difficult to control and may require iterative refinement.
3.
Cost-Penalized A Variants*
A common approach is to introduce an additional term into the evaluation function to penalize heading changes, as follows:
f(c) = g(c) + h(c) + wturn × turns(c),
where wturn is a weight parameter and turns(c) counts the accumulated direction changes. Although this encourages smoother paths, it fundamentally alters the optimality criterion; the algorithm may return paths longer than Lmin depending on the weight selection. Furthermore, appropriate weight tuning is problem-dependent and non-trivial, and different weights yield different path lengths, making it difficult to ensure strict optimality.
4.
Line-of-sight algorithms
Algorithms like Theta*, Lazy Theta*, and Field D* reduce unnecessary turns by allowing direct visibility connections between non-adjacent cells. Although they are effective in open environments, these algorithms (1) require expensive line-of-sight checks for every node expansion, (2) may miss optimal paths in cluttered spaces in which grid-aligned paths are genuinely the shortest, and (3) significantly increase the computational cost on dense grids.

3.4.2. Research Gap: Selecting Minimum-Turn Paths Among Shortest Alternatives

Despite these advances, a critical gap remains in the literature: efficiently identifying and selecting the path with the minimum number of turns among all shortest paths of equal length.
Standard A* algorithms regard all paths with an equal total cost as equivalent and terminate upon identifying the first goal node, regardless of the number of turns. The selected path depends entirely on the arbitrary tie-breaking policy employed (e.g., FIFO, LIFO, or random selection), with no consideration of geometric quality. In practice, such ties occur frequently in grid-based environments with the following:
  • Symmetric Obstacle: Creating multiple equivalent routes around an object.
  • Open Spaces: Allowing numerous shortest paths with different turn patterns.
  • Manhattan Geometry: On 4-connected grids, the staircase effect produces many equal-length alternatives.
Existing methods either sacrifice optimality (Weighted A*), substantially increase computational cost (Hybrid A*, Theta*), or alter path validity (post-processing). None of them efficiently solve the fundamental problem: selecting the minimum-turn path strictly from the set of shortest paths.
The proposed TM-A* algorithm directly addresses this gap. Rather than adjusting the cost function weights or post-processing the result, TM-A* employs a lexicographic tie-breaking rule. This ensures that the algorithm selects the sequence with fewer heading changes while rigorously preserving the shortest-path property.

4. TM-A* Algorithm

Classical A* guarantees distance-optimal paths but arbitrarily selects among multiple shortest alternatives, often producing trajectories with excessive turns that degrade the robot performance. This section presents the TM-A* algorithm, which guarantees both distance optimality and a minimum turn count through a lexicographic tie-breaking mechanism that requires no modification to the A* cost function.
A key strength of TM-A* is that it eliminates the need for parameter tuning, which is often a major challenge in weighted A* variants. Unlike approaches that introduce weighted costs or heuristics to bias the search toward smoother paths—requiring careful calibration to balance distance versus turn penalties—TM-A* achieves turn minimization purely through a lexicographic tie-breaking mechanism. The standard distance cost remains unchanged, ensuring that shortest-path optimality is preserved, while the secondary turn criterion automatically selects the smoothest trajectory among equal-length paths. This parameter-free design not only simplifies implementation but also guarantees deterministic, predictable behavior across diverse grid environments, making TM-A* especially practical for industrial robotics applications.

4.1. Lexicographic Cost Structure

The proposed TM-A* algorithm extends the classical A* framework by integrating an additional curvature-based criterion into the node selection process. Whereas the primary objective of A*, which is to minimize the total path cost, remains unchanged, TM-A* introduces a secondary evaluation that promotes smoother trajectories with fewer turns.
Intuitively, the lexicographic cost formulation treats path length and smoothness as two ordered priorities rather than a single blended cost. The algorithm first behaves exactly like standard A*, expanding nodes to minimize travel distance and guaranteeing shortest paths. Only when multiple candidates are equally short does the second criterion become active, selecting the path with fewer heading changes. This strict ordering ensures that smoothness is improved without ever sacrificing distance optimality or requiring weight tuning between competing objectives.
Specifically, the algorithm adopts a lexicographic cost structure F(c), defined as
F(c) = [f1(c), f2(c)],
where the first component represents the standard path-length cost:
f1(c) = g1(c) + h1(c).
Here, g1(c) is the accumulated distance from the start, and h1(c) is the Manhattan distance heuristic.
The second component, f2(c), represents the total number of heading changes (turns) from the start to cell c:
f2(c) = Total turns from s to c.
In this formulation, f2(c) directly counts the number of heading changes along the path. Unlike the distance component, this secondary cost does not employ a heuristic lookahead, as predicting future turns is unnecessary for resolving local ties among distance-optimal paths.
The nodes in the open list are expanded according to the lexicographically smallest pair F(c), ensuring that path optimality is preserved, while tie cases favor directionally consistent motion.
Formally, let Ω denote the open list. For any two candidate cells u, v ∈ Ω, the priority comparison follows the lexicographic operator ≺:
uv if and only if f1(u) < f1(v) or [f1(u) = f1(v) and f2(u) < f2(v)].
This rule guarantees that, among all paths with identical total costs, the algorithm prioritizes the path with the smaller accumulated curvature, thereby achieving smoother and more natural trajectories. Because tie-breaking applies only when f1 values are equal, the optimality of A* in terms of the minimum path length is fully preserved.
In standard A*, a node in the OPEN list is updated whenever a lower scalar cost f = g+h is found. In contrast, the proposed approach updates and orders the OPEN list using a lexicographic cost pair [f1,f2], where distance optimality (f1) has strict priority and turn count (f2) is used only to break ties among equal-distance candidates. As a result, nodes with identical path length are no longer treated as interchangeable, and the OPEN list deterministically favors paths with fewer heading changes while preserving the standard A* expansion logic.

4.2. Algorithm Description

The complete Turn-Minimizing A* (TM-A*) procedure follows the standard best-first search structure of classical A*, but it fundamentally alters the node selection logic. Instead of a scalar cost comparison, it employs the lexicographic evaluation defined in Equation (17). This ensures that while the algorithm explores the grid, it strictly prefers nodes that minimize the cumulative turn count f2 among those with the optimal total distance f1.

4.2.1. Pseudocode

The detailed steps of the TM-A* algorithm are presented below in Algorithm 2.
Algorithm 2: TM-A*
Input: OGN Gm×n, start s, target t.
Output: Path P* (lexicographically optimal), or null if no feasible path exists
STEP 0. Initialization
1. OPEN ← {(s,null)}
2. CLOSED ← ∅
● g(s, null)=0
● f2 (s, null)=0
● f1 (s, null)=h(s)
3. parent(s,null) ← null
STEP 1. Main loop
While OPEN is not empty:
1. Select current from OPEN with lexicographically smallest (f1,f2)
● f1 has priority over f2
2. If current.v = t, return reconstruct_path(current)
3. Move current from OPEN to CLOSED
STEP 2. Neighbor expansion
For each traversable neighbor cell v′ of current.v:
1. Let d′=direction(current.v,v′)
Define successor state: n′=(v′,d′)
2. If n′∈CLOSED, continue
3. Compute tentative path-length:
g′=g(current)+1
4. Compute turn increment:
● If current.d = null or d′=current.d, then turn_inc=0
● Else, turn_inc = 1
5. Compute tentative costs:
f1′ = g′ + h(v′)
f2′ = f2 (current)+turn_inc
6. If n′∈OPEN and (f1(n′),f2(n′))⪯(f1′,f2′), continue
7. Update state information:
● g(n′)←g′
● f1 (n′)←f1′
● f2 (n′)←f2′
● parent(n′)←current
8. Insert or update n′ in OPEN
Return to STEP 1
STEP 3. Path reconstruction
Trace parent pointers from current (reaching target t) back to start s to construct P*

4.2.2. Complexity Analysis II

The computational complexity of the proposed TA-A* algorithm can be analyzed based on its operational structure.
The core computational effort occurs in STEP 1 and STEP 2. In the main loop (STEP 1), the algorithm repeatedly extracts the node with the lexicographically smallest pair (f1, f2). With a binary heap implementation, each extraction requires O(log|V|) time.
During neighbor expansion (STEP 2), the calculation of tentative costs (f1, f2) involves only basic integer addition and comparison, which are O(1) operations. However, inserting or updating a neighbor in the priority queue takes O(log|V|). The total number of heap operations is proportional to the number of edges |E|. Thus, the total time complexity is
T = O(|E|log|V|).
On a standard 4-connected grid where |E| ≈ 4|V|, this simplifies to O(|V|log|V|). This confirms that the logic overhead of tracking turns does not degrade the asymptotic performance compared to classical A*.
Finally, STEP 3 traces the parent pointers from the goal cell t back to the start cell s. This process has a linear cost proportional to the length of the final path N, where N ≤ |V|. This step is negligible compared to the search process.
The memory requirement is O(|V|), as the algorithm must store cost values, parent pointers, direction states, and list membership status for each node in the grid. The lexicographic comparison introduces only a constant-time overhead per expansion and does not affect the asymptotic bound. Consequently, TM-A* achieves the same theoretical complexity as classical A* while producing smoother and more directionally consistent paths.
Although TM-A* tracks heading and effectively expands each grid cell for all four possible orientations—resulting in a four-fold increase in the number of states—this expansion has a limited practical impact on computational performance. Because neighbor cost calculations involve only simple integer arithmetic and priority queue operations remain O(log|V|), the overall time complexity remains O(|E|log|V|), identical in asymptotic terms to classical A*. On a standard 4-connected grid, where |E| ≈ 4|V|, the increase in state space translates to only a modest rise in absolute computation time, typically around a factor of three in practice. Memory requirements grow linearly with the number of states, but storing additional direction information introduces only constant per-node overhead. As a result, the four-fold state expansion enables precise turn tracking and smoother paths without substantially affecting scalability or runtime, making TM-A* practical for large, high-resolution grids.

4.3. Illustrative Example

To demonstrate the behavior of the proposed TM-A* algorithm, consider the 5 × 5 grid map shown in Figure 2. The start position is located at S = (0, 0) and the target is fixed at T = (4, 4). In this representation, cells marked with “0” denote static obstacles, while all other unmarked cells represent navigable free space.
STEP 0. 
(Initialize)
  • OPEN = { (0, 0) }, CLOSED = ∅
  • g1(0, 0) = 0, h1(0, 0) = |4 − 0| + |4 − 0| = 8, f1(0, 0) = 8.0
  • f2(0, 0) = 0
  • parent(0, 0) = dir(0, 0) = null
STEP 1. 
Select current = (0, 0) from OPEN because OPEN initially contains only the start node (0, 0). As current ≠ t, move (0, 0) to CLOSED and continue to expand its neighbors.
STEP 2. 
Neighbor expansion from (0, 0):
5.
(1, 0) (DOWN): Because tentative_g1 = 0 + 1 = 1, dir(current) = null, letting turn_inc = 0 and h1(1, 0) = |4 − 1| + |4 − 0| = 7, we obtain f1 = 1 + 7 = 8, f2 = 0, and add (1, 0) to OPEN.
STEP 1. 
Select current = (1, 0) with the smallest (f1, f2) = (8, 0), which is the lexicographically next smallest cell. As current ≠ t, move (1, 0) to CLOSED and continue to neighbor expansion in STEP 2.
STEP 2. 
Neighbor expansion from (1, 0):
6.
(2, 0) (DOWN) Because g1 = 2, turn_inc = 0, which implies that f2 = 0; with h1 = 6, we obtain f1 = 8 and f2 = 0, and add (2, 0) to OPEN.
7.
(1, 1) (RIGHT) Because g1 = 2, turn_inc = 1, which implies that f2 = 1; with h1 = |4 − 1| + |4 − 1| = 6, we obtain f1 = 8 and f2 = 1, and add (1, 1) to OPEN.
STEP 1. 
Select current = (2, 0) with the smallest (f1, f2) = (8, 0). As current ≠ t, move (2, 0) to CLOSED and continue to STEP 2.
STEP 2. 
Neighbor expansion from (2, 0):
8.
(3, 0) (DOWN): Because g1 = 3, f2 = 0, and h1 = 5, we obtain f1 = 8 and f2 = 0, and add (3, 0) to OPEN.
9.
(2, 1) (RIGHT): Because g1 = 3, f2 = 1, and h1 = |4 − 2| + |4 − 1| = 5, we obtain f1 = 8 and f2 = 1, and add (2, 1) to OPEN.
STEP 1. 
Select current = (3, 0) with (f1, f2) = (8, 0), which is lexicographically next smallest. As current ≠ t, move (3, 0) to CLOSED and continue to STEP 2.
STEP 2. 
Neighbor expansion from (3, 0):
10.
(4, 0) (DOWN): Because g1 = 4, f2 = 0, and h1 = |4 − 4| + |4 − 0| = 4, we obtain f1 = 8 and f2 = 0, and add (4, 0) to OPEN.
STEP 1. 
Select current = (4, 0) with (f1, f2) = (8, 0), which is lexicographically next smallest. As current ≠ t, move (4, 0) to CLOSED and continue to STEP 2.
STEP 2. 
Neighbor expansion from (4, 0):
11.
(4, 1) (RIGHT): Because g1 = 5, turn_inc = 1, which implies that f2 = 1; with h1 = |4 − 4| + |4 − 1| = 3, we obtain f1 = 8 and f2 = 1, and add (4, 1) to OPEN.
STEP 1. 
Select current = (4, 1) with (f1, f2) = (8, 1), which is lexicographically next smallest. As current ≠ t, move (4, 1) to CLOSED and continue to STEP 2.
STEP 2. 
Neighbor expansion from (4, 1):
11.
(4, 2) (RIGHT): Because g1 = 6, f2 = 1, and h1 = 2, we obtain f1 = 8 and f2 = 1, and add (4, 2) to OPEN.
STEP 1. 
Select current = (4, 2) with (f1, f2) = (8, 1), which is lexicographically next smallest. As current ≠ t, move (4, 2) to CLOSED and continue to STEP 2.
STEP 2. 
Neighbor expansion from (4, 2):
13.
(4, 3) (RIGHT): Because g1 = 7, f2 = 1, and h1 = 1, we obtain f1 = 8 and f2 = 1, and add (4, 3) to OPEN.
STEP 1. 
Select current = (4, 3) with (f1, f2) = (8, 1), which is lexicographically next smallest. As current ≠ t, move (4, 1) to CLOSED and continue to STEP 2.
STEP 2. 
Neighbor expansion from (4, 3):
14.
(4, 4) (RIGHT): Because g1 = 8, f2 = 1, and h1 = 0, we obtain f1 = 8 and f2 = 1, and add (4, 4) to OPEN.
STEP 1. 
Select current = (4, 4) = t. Since the goal is reached, proceed to STEP 4 to reconstruct the path.
STEP 4. 
(Path reconstruction)
15.
Trace back using parent links: P* = {(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (4, 1), (4, 2), (4, 3), (4, 4)}.
Hence, the resulting path has a total length of L(P*) = 8 and a single directional change, f2(P*) = 1. The TM-A* algorithm selects, among equal-length candidates, the trajectory with fewer turns, producing smoother and more energy-efficient motion in structured indoor settings.

4.4. Theoretical Analysis

This section establishes the theoretical foundation of the proposed Turn-Minimizing A* (TM-A*) algorithm. We prove that TM-A inherits the completeness and optimality guarantees of classical A* for shortest-path search and, among all shortest paths, returns one with the minimum number of turns.

4.4.1. Problem Formulation and Dominance Relation

We consider pathfinding on a 4-neighbor grid with a uniform step cost of 1. Let c denote a grid cell and let θ ∈ Θ = {N, E, S, W} denote the arrival direction (heading) at c. TM-A* operates on the orientation-augmented state space:
x:= (c, θ)
Thus, the same cell reached with different arrival directions is treated as a distinct search state.
For a state x = (c, θ), we define:
  • g1(x): the path length (number of steps) from start to x.
  • g2(x): the accumulated number of turns from start to x.
  • h1(c): a heuristic estimate of the remaining distance from cell c to the goal.
The primary evaluation function is
f1(x) = g1(x) + h1(c)
TM-A* orders nodes in the OPEN list by the lexicographic key:
key(x) = (f1(x), g2(x))
That is, it first minimizes f1, and uses g2 only to break ties among equal f1.
Dominance Relation: For any state x = (c, θ), consider two paths p and p’ terminating at x with cost pairs (g1(p), g2(p)) and (g1(p’), g2(p’)). We say path p dominates path p’ (denoted (g1(p), g2(p)) ≺ (g1(p’), g2(p’))) if and only if
  • g1(p) < g1(p’), or
  • g1(p) = g1(p’) and g2(p) < g2(p’)
A cost pair (g1, g2) for state x is non-dominated if no other path to x has a strictly better cost pair under this relation.
Update Rule: For each state x, TM-A* maintains the best-known cost pair (g1(x), g2(x)). When a new path to x is discovered, if its cost pair dominates the stored pair, the record is updated and x is (re)inserted into OPEN. The CLOSED set is keyed by the full state (c, θ).

4.4.2. Assumptions and Sufficient Conditions

The following conditions are sufficient to guarantee TM-A*’s theoretical properties.
  • Admissible and Consistent Primary Heuristic: h1(c) is admissible (h1(c) ≤ h1*(c) where h1*(c) is the true optimal distance from cell c to goal) and consistent (h1(c) ≤ cost(c, c’) + h1(c’) for any neighbor c’).
  • Non-Negative Heuristic: h1(c) ≥ 0 for all cells c. This is satisfied by common heuristics like Manhattan distance.
  • Monotonic Secondary Cost: The turn count g2 is non-decreasing along any path. Specifically, each transition adds 0 turns (continuing in same direction) or 1 turn (changing direction), so g2 cannot decrease.
  • Proper State-Space Augmentation: The search state includes both position and orientation (c, θ). This ensures that paths with different arrival directions to the same cell are treated separately, preserving turn count information.
  • Lexicographic Node Ordering and Update: OPEN is ordered by (f1, g2), and the update rule maintains for each state x a non-dominated cost pair.
Note on Condition 2: From admissibility and non-negativity, we have 0 ≤ h1(t) ≤ h1*(t) = 0 for the goal cell t, so h1(t) = 0.

4.4.3. Fundamental Lemmas

Lemma 1.
(Non-decreasing expansion in primary key).
TM-A* expands states in non-decreasing order of f1. That is, if state x is expanded before state y, then f1(x) ≤ f1(y).
Proof. 
TM-A* always selects from OPEN the state with the smallest key(x) = (f1(x), g2(x)). At the moment x is chosen, it has the minimum f1 among all states in OPEN. By heuristic consistency (which ensures f1 is non-decreasing along paths), every generated successor x’ satisfies f1(x’) ≥ f1(x), so inserting successors cannot introduce states with smaller f1 than the current minimum. Therefore, the sequence of expanded f1 values is non-decreasing. □
Lemma 2.
(Optimal cost pair at expansion).
When a state x = (c, θ) is expanded, its stored cost pair (g1(x), g2(x)) is non-dominated. That is, no path from the start to x has a strictly better (lexicographically smaller) cost pair.
Proof. 
We prove this by contradiction using a generation-order argument along an optimal path.
Suppose, for contradiction, that when state x is expanded, there exists a path p* from start to x with a strictly better cost pair (g1*, g2*) ≺ (g1(x), g2(x)). Consider the set of states along p* in order from start to x. Let y be the first state on p* (closest to start) that is not expanded with its optimal cost pair before x is expanded. Note that y must exist because x itself is on p* and is being expanded with non-optimal cost by assumption.
There are two cases for y.
  • y is the start state: The start state is expanded first with cost (0, 0), which is trivially optimal. So, y cannot be the start.
  • y is not the start state: Let z be the predecessor of y on p*. By our choice of y, state z was expanded with its optimal cost pair (or is the start state). When z was expanded, it generated successor y with cost at least as good as the cost along p* (since the edge cost is deterministic given the arrival direction). Therefore, y would have received a cost pair (g1’, g2’) that is at least as good as the prefix of p* to y. Since p* is optimal to x, its prefix to y must be optimal to y (by the principle of optimality for additive, monotonic costs under lexicographic ordering). Thus, y would have been inserted into OPEN with its optimal cost.
Now, since y has its optimal cost in OPEN (or has already been expanded with it), and y is on the path to x, the algorithm will eventually expand y (if not already) and generate the remainder of p* to x. This would give x the cost (g1*, g2*), which is better than the current stored cost (g1(x), g2(x)). This would cause an update to x and reinsertion into OPEN with key (g1* + h1(c), g2*).
Because h1(c) is the same for all paths to cell c, and (g1*, g2*) ≺ (g1(x), g2(x)), we have
(g1* + h1(c), g2*) ≺ (g1(x) + h1(c), g2(x))
Thus, x would have a better key than the one with which it was expanded, contradicting the fact that TM-A* always expands the state with the smallest key from OPEN. Therefore, no such better path p* can exist, and every state is expanded with its optimal cost pair. □
Corollary 1.
(Minimum turns for given length).
For any expanded state x = (c, θ), among all paths from the start to x with length equal to g1(x), the expanded path has the minimum number of turns.
Proof. 
This follows directly from Lemma 2. If there existed a path to x with the same length but fewer turns, its cost pair would dominate (g1(x), g2(x)), contradicting Lemma 2. □

4.4.4. Main Theorem

Theorem 1.
(Completeness and Lexicographic Optimality).
If a path from the start to the goal exists, TM-A* terminates and returns a path P* such that
  • Length Optimality: L(P*) = Lmin, where Lmin is the minimum path length from start to goal.
  • Turn Optimality Among Shortest Paths: M(P*) = min{M(P) | L(P) = Lmin}, where M(P) is the number of turns in path P.
Proof
We prove each property separately.
  • Part 1: Completeness.
The orientation-augmented state space is finite for a finite grid (at most 4N states for N cells). TM-A* systematically explores states by removing one state from OPEN at each iteration. Each state can be updated only finitely many times because
  • Cost pairs (g1, g2) are non-negative integers
  • Each update strictly improves the lexicographic order (either decreases g1 or keeps g1 same and decreases g2)
  • There are only finitely many possible cost pairs for any state (bounded by the grid size and maximum possible turns)
Therefore, the algorithm must terminate. If a goal-reaching state is reachable, it will eventually be generated and expanded.
  • Part 2: Length Optimality.
Let t denote the goal cell. For any goal state xt = (t, θ), by our assumptions we have h1(t) = 0. Thus, f1(xt) = g1(xt) for any goal state.
Let Lmin be the true optimal path length from start to goal. Consider the first goal state expanded by TM-A, call it xt* = (t, θ*) with g1 = g. We prove that g = Lmin using the standard A optimality argument adapted to our setting.
By Lemma 1, states are expanded in non-decreasing order of f1. Since f1(xt*) = g, all states expanded before xt* have f1 ≤ g.
Now consider any optimal path from start to goal with length Lmin. Let y be the first state on this optimal path that is not expanded before xt* is expanded. Let z be the predecessor of y on this path (or the start state if y is the first state).
Since z is expanded before xt* (or is the start state), and z is on an optimal path, when z was expanded (or initially), it generated successor y with cost g1(y) = g1(z) + 1. By admissibility, f1(y) = g1(y) + h1(y) ≤ g1(z) + 1 + h1(z) ≤ g1(z) + h1(z) + 1 = f1(z) + 1. But since z is on an optimal path, f1(z) ≤ Lmin (by admissibility: f1(z) = g1(z) + h1(z) ≤ Lmin because h1(z) ≤ h1*(z) = Lmin − g1(z)). Thus, f1(y) ≤ Lmin + 1.
However, note that f1(y) = g1(y) + h1(y) ≥ g1(y) (since h1(y) ≥ 0). Since y is on an optimal path, g1(y) ≤ Lmin, so f1(y) ≤ Lmin actually holds (the +1 is not needed because h1(z) ≤ h1*(z) = Lmin − g1(z) gives f1(z) ≤ Lmin and consistency gives f1(y) ≤ f1(z)).
Therefore, f1(y) ≤ Lmin. Since y is not expanded before xt*, and xt* is the first goal state expanded with f1 = g, we must have g ≤ f1(y) ≤ Lmin.
But by admissibility, any goal state must have g1 ≥ Lmin, so g ≥ Lmin. Thus, g = Lmin.
  • Part 3: Turn Optimality Among Shortest Paths.
Let Xgoal = {(t, θ) | θ ∈ Θ} be the set of all goal states. From Part 2, the first goal state expanded, xt* = (t, θ*), has g1 = Lmin.
We now show that xt* has the minimum g2 among all goal states with g1 = Lmin. Suppose there exists another goal state xt’ = (t, θ’) with g1 = Lmin and g2’ < g2(x xt*). When x t’ was generated (which must have happened before x xt* expansion, as all shortest paths are discovered by this point), it would have been inserted into OPEN with key (Lmin, g2’).
Since xt* was expanded with key (Lmin, g2(xt*)) and g2’ < g2(xt*), the OPEN list ordering would have selected xt’ for expansion first, contradicting that xt* was the first goal state expanded. Therefore, xt* has the minimum g2 among all goal states with g1 = Lmin.
Now, any shortest path to the goal must end at some goal state (t, θ’) ∈ Xgoal with g1 = Lmin. Since xt* has the minimal g2 among all such goal states, and by Corollary 2.1, the path to xt* has the minimum turns among all paths to xt* with length Lmin, it follows that no shortest path to any goal state can have fewer turns than the path to xt*.
Thus, P* is turn-minimal among all shortest paths. □

4.4.5. Complexity Analysis III

Theorem 2.
(Worst-Case Time Complexity).
For a grid with N cells, TM-A* expands at most O(4N · Lmax2) states in the worst case, where Lmax is an upper bound on the length of any simple (cycle-free) path from start to goal in the grid.
Proof. 
Let Lmax be the maximum number of steps in any simple path from start to goal. In the worst case (e.g., a snaking corridor through all cells), Lmax = O(N). For each state (c, θ):
  • The g1 component can take at most Lmax + 1 distinct values (0 to Lmax).
  • For each fixed g1, the g2 component can take at most g1 + 1 ≤ Lmax + 1 distinct values (0 to g1).
Thus, there are at most O(Lmax2) possible distinct cost pairs (g1, g2) for each state. Each time a state is expanded, it must be with a distinct cost pair (since re-expansion only occurs when a strictly better cost pair is found, and there are finitely many such improvements).
With at most 4N distinct states in the orientation-augmented state space, the total number of expansions is bounded by 4N · O(Lmax2) = O(4N · Lmax2).
In the worst case where Lmax = O(N), this gives O(4N3) expansions. However, we emphasize that this is a loose upper bound; in practice, re-expansions are rare. □
Theorem 3.
(Space Complexity).
TM-A* requires O(4N) space in the worst case.
Proof. 
The algorithm maintains the following for each state (c, θ):
  • g1 and g2 values: O(1) per state.
  • Parent pointer for path reconstruction: O(1) per state.
  • Additional flags for OPEN/CLOSED management: O(1) per state.
At most 4N states, this requires O(4N) space. The OPEN list can contain up to 4N states in the worst case, requiring additional O(4N) space. Thus, the total space complexity is O(4N). □
Remark 1.
(Practical Efficiency).
Although the worst-case time complexity is cubic in N, TM-A* exhibits near-linear scaling in practice for typical grid environments. This is because
  • e-expansions are rare—most states are expanded once with their optimal cost pair.
  • The heuristic h1 effectively prunes the search space.
  • For realistic grid sizes and obstacle configurations, Lmax is much smaller than N.
This theoretical analysis establishes that TM-A* is both complete and lexicographically optimal, guaranteeing a shortest path with minimal turns while maintaining reasonable computational complexity.

5. Experimental Setup

To evaluate the performance of TM-A* relative to standard A*, simulations were conducted on 2D grids of size: 200 × 200, 500 × 500, and 1000 × 1000, with a fixed obstacle density of 0.3. This density provides sufficient navigation challenge while remaining computationally feasible. For each resolution, 30 independent Monte Carlo trials were executed, each with randomly generated obstacle layouts and randomized start/goal positions.
All simulations were implemented in Python 3.13 and executed on an Intel Core i9-13980HX processor with 64 GB RAM. Performance was measured using three metrics:
  • Path Length (L)—to evaluate path optimality.
  • Number of Turns (T)—to evaluate path smoothness.
  • Computation Time (t)—to evaluate algorithmic efficiency.

5.1. Numerical Results

Table 1 summarizes the mean performance across trials.
Observations:
  • TM-A* preserves path length across all resolutions, confirming length optimality.
  • TM-A* reduces turns by 39–43%, demonstrating effective turn minimization.
  • Runtime increases by 2.5–3× due to additional state checks, but absolute times remain practical for static path planning.

5.2. Visual Analysis of Turn Distributions

Figure 3, Figure 4 and Figure 5 present box plots of turn counts for each resolution, including median and standard deviation (SD), which are also reported in Table 2.
Interpretation:
  • TM-A* exhibits a compact distribution with low variance, even in large grids.
  • Standard A* shows wide variability, producing jagged paths in obstacle-dense regions.
  • Figure captions have been updated to indicate median, SD, whiskers, and outliers.

5.3. Statistical Significance Test (Turn Reduction)

A one-tailed Welch’s t-test (α = 0.05) was performed and results are shown in Table 3. The hypotheses were defined as follows:
  • Null Hypothesis (H0): μA* ≤ μTM-A* (there is no significant reduction in turns).
  • Alternative Hypothesis (H1): μA* < μTM-A* (TM-A* significantly reduces turns).
Confirm:
  • Turn reduction is statistically significant (p < 0.001) for all resolutions.
  • Computation time increase is significant (p < 0.001) but remains within practical limits.
These results validate that TM-A* reliably minimizes turns without compromising path length.

5.4. Theoretical Guarantee of TM-A*

TM-A* applies a lexicographic cost F(c) = [f1(c),f2(c)], where f1 is path length and f2 is the number of turns.
Lemma (summarized):
For finite grids with admissible heuristics, TM-A* always returns a path that is length-optimal (f1 minimized) and has the minimal number of turns (f2) among all shortest paths.
Proof Sketch: The lexicographic ordering ensures that no path with shorter length is overlooked, and among paths of equal length, the algorithm systematically selects the one with the fewest turns. Completeness is preserved because all reachable states are eventually expanded.
This formal guarantee distinguishes TM-A* from heuristic tie-breaking or post-processing methods, which do not systematically enforce minimal turns.

5.5. Comparison with State of the Art

TM-A* is compared to (Table 4):
  • Tie-breaking or weighted-cost A*—may reduce turns heuristically but does not guarantee path length preservation.
  • Angle-constrained A*—reduces heading changes using predefined angles but may yield suboptimal paths and is limited to specific movement models.
  • Post-processing smoothing—improves path smoothness after planning but does not guarantee minimal turns within shortest paths.
TM-A* systematically applies the lexicographic objective during the search, ensuring both length optimality and turn minimization, unlike prior approaches.

5.6. Computational Scaling

TM-A* runtime grows roughly linearly with grid size in 2D, based on observed trials:
  • 200 × 200 → 0.13 s
  • 500 × 500 → 1.04 s
  • 1000 × 1000 → 3.22 s
This scaling makes TM-A* practical for large 2D grids in static global planning. For 3D extensions, runtime will increase due to a larger state space, but hierarchical or incremental search strategies can mitigate overhead.

5.7. Summary

TM-A* achieves:
  • Length-optimal paths identical to Standard A*.
  • Significant and statistically robust turn reduction (39–43%).
  • Stable performance with low variance in turn counts.
  • Moderate computational overhead, justified by mechanical and energy savings.
  • Formal guarantees and systematic novelty, differentiating it from prior heuristic or post-processing methods.
Section 5 fulfills the objective of comparison with the state of the art by integrating theoretical rigor, empirical validation, and a clear comparison with existing methods.

6. Discussion and Conclusions

The experimental results presented in this study confirm that the proposed Turn-Minimizing A* (TM-A*) algorithm effectively bridges the gap between theoretical optimality and practical path smoothness. Validation via Welch’s t-test across 30 Monte Carlo trials per resolution demonstrates that TM-A* achieves a statistically significant reduction in navigation complexity, lowering the average number of turns by approximately 42% (p < 0.001) while strictly preserving the shortest path length (LTM-A* = LA*). Although this geometric improvement incurs a statistically significant computational overhead (p < 0.001) due to the expanded state-space search, the absolute runtime remains negligible for static planning tasks (e.g., 3.22 s for a 1000 × 1000 grid).
Beyond these quantitative metrics, TM-A* demonstrates strong adaptability to real-world navigation constraints. To ensure the algorithmic determinism required for industrial robotics, ties among paths with equal turn counts are resolved using lexicographic coordinate ordering. While this study focused on 4-connected uniform grids, the theoretical framework (Lemmas 1–4) generalizes to non-uniform edge costs and 8-connected topologies with appropriate heuristic adjustments.
The lexicographic formulation is conceptually important because it ensures algorithmic determinism by decisively resolving ties between paths with equal turn counts, a crucial factor for industrial robotics. Additionally, this framework is adaptable to more complex navigation scenarios, such as non-uniform edge costs and 8-connected topologies, broadening its applicability in real-world environments.
In summary, TM-A* offers a viable, scalable, and deterministic solution for autonomous systems. By suppressing redundant heading changes without compromising path optimality, it provides a robust foundation for next-generation navigation stacks in unstructured environments.
The experimental results presented in this study demonstrate that the Turn-Minimizing A* (TM-A*) algorithm not only bridges the gap between theoretical optimality and practical path smoothness but also has significant implications for the deployment of industrial and service robots in real-world settings. In environments where both path efficiency and smoothness are critical—such as in warehouses, factories, or healthcare facilities—TM-A* reduces unnecessary turns by approximately 42%, leading to smoother and more efficient trajectories. This reduction in navigation complexity can enhance robot mobility and reduce wear and tear on mechanical components, which is particularly valuable in high-throughput industrial environments. Additionally, while the algorithm incurs a slight computational overhead, the runtime remains low enough to be practical for static planning tasks, even in larger environments with up to 1000 × 1000 grids. The adaptability of TM-A* to handle real-world constraints, such as resolving ties between paths through lexicographic coordinate ordering, ensures that it can be seamlessly integrated into deterministic and reliable navigation stacks required for industrial and service robots. With its ability to generalize to non-uniform edge costs and 8-connected topologies, TM-A* provides a scalable and robust solution for diverse robotic applications, ranging from automated material handling in warehouses to autonomous delivery systems in healthcare settings.
In the future, TM-A* can be effectively integrated with replanning methods to enhance its adaptability in dynamic environments. Since TM-A* optimizes for smooth, turn-minimized paths while ensuring optimality, it can be paired with reactive replanning algorithms that update paths in real-time when obstacles are detected or when the environment changes. For instance, after an initial TM-A* plan is generated, the algorithm could be used to reoptimize the path in response to new obstacles, preserving the smoothness and optimality of the trajectory. Additionally, the flexibility of TM-A* to handle varying edge costs and topologies makes it well-suited for environments where replanning is frequent, such as in robotic systems that operate in highly dynamic or unstructured spaces. This combination of turn-minimizing pathfinding and real-time replanning would enable robots to navigate more efficiently while adapting to unforeseen changes in their environment.
In the future, this work can be extended to studies on incorporating 8-neighborhood connectivity or modifying admissible heuristics to handle non-uniform costs. In addition, measuring actual energy consumption or path tracking error can be incorporated into future work to more accurately conclude whether the reduction in turns corresponds to energy savings. The heuristic framework integrates naturally with incremental replanning algorithms, such as D* Lite or LPA*, making it suitable for dynamic environments where obstacles appear in real time; this can also be planned as part of future work. In future work, the turn indicator function can be incorporated to clarify whether 180-degree reversals are permitted or explicitly excluded. In future research, further exploration can be conducted on the assumptions under which the proofs hold (e.g., heuristic consistency) for the theoretical analysis of the proposed Turn-Minimizing A* (TM-A*) algorithm. In future discussions, how these sizes relate to real indoor environments would add practical relevance to the choice of grid resolutions. Additional metrics, such as path curvature distribution or heading variance, could further strengthen the analysis and could be incorporated into future research. Statistical testing could be included in future research to ensure that the hypotheses are stated more clearly in plain language before presenting the results. Adding representative trajectory visualizations in the box plots to enhance interpretability could be incorporated into future research. In future research, a more in-depth discussion on acceptable planning latency in real robotic systems could be explored. Memory usage implications could also be briefly mentioned in future research. The comparison with Hybrid A* for a short quantitative comparison in a simple scenario to strengthen the argument could be explored in future research. Future work could include extending the method to 8-connected grids or incorporating curvature constraints beyond simple turn counts. Discussing learning-based approaches, such as DDPG, as potential future work, particularly for comparisons in continuous-state or learning-enhanced path planning [39].
In future work, the discussion could further explore the clear gap between the declared modeling and the actual state management in the algorithm. Specifically, it could address how the algorithm does not sufficiently distinguish between a simple tie-breaking rule applied to purely positional states and a true lexicographic optimization in an orientation-extended state space. To minimize turns, it is recognized that the algorithm must track the orientation at each step and that TM-A* requires awareness of the arrival direction, which could be added in future research. This study raises the risk that the method could indeed reduce the number of turns on average, but the guarantee of minimality among the shortest paths is not convincingly demonstrated. This could be further explored in future research. Future research could explore the algorithm’s oscillations between u and current in the description of the neighbor loop (For each neighbor v … of u). In the future, the discussion could address the choice of a single density, which hinders interpretation: in sparse environments, degeneracy is maximal, and the tie-breaking effect can be amplified; in dense environments, the scarcity of alternatives can drastically reduce the solution space of equal length. It could also provide evidence to determine whether this stability depends on a specific map generation procedure or the intrinsic properties of the algorithm. In future work, the comparison with the state of the art could be strengthened, as the gap argument appears insufficiently documented. It would be necessary to clarify the extent to which the proposal differs from secondary tie-breakers already studied, and, above all, to formalize the correctness condition.

Author Contributions

Conceptualization, W.-C.Y., J.-Y.T., T.-Y.H. and Y.-Z.L.; methodology, W.-C.Y., J.-Y.T., T.-Y.H., Y.-Z.L. and C.-L.H.; software, W.-C.Y. and J.-Y.T.; validation, W.-C.Y. and J.-Y.T.; formal analysis, W.-C.Y., J.-Y.T., T.-Y.H., Y.-Z.L. and C.-L.H.; investigation, W.-C.Y., J.-Y.T., T.-Y.H. and Y.-Z.L.; resources, W.-C.Y., J.-Y.T., T.-Y.H. and Y.-Z.L.; data curation, W.-C.Y., J.-Y.T., T.-Y.H. and Y.-Z.L.; writing—original draft preparation, W.-C.Y., J.-Y.T., T.-Y.H., Y.-Z.L. and C.-L.H.; writing—review and editing, W.-C.Y., J.-Y.T., T.-Y.H., Y.-Z.L. and C.-L.H.; visualization, W.-C.Y., J.-Y.T. and T.-Y.H.; supervision, W.-C.Y.; project administration, W.-C.Y.; funding acquisition, W.-C.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported in part by the National Science and Technology Council (NSTC) of Taiwan, under grants NSTC 114-2923-E-007-003-MY2 and NSTC 114-2918-I-007-001, and by Asia Optical Co., Inc. under Industry-Academia Collaboration Project 114A0271JB.

Data Availability Statement

No new data were created.

Acknowledgments

The authors would like to thank the associate editor and the anonymous referees for their constructive comments and recommendations, which have significantly improved the quality and presentation of this paper. We also gratefully acknowledge the support of the NVIDIA Academic Grant Program and the Strategic Researcher Engagement team.

Conflicts of Interest

The authors declare no conflicts of interest.

Notations

|∙|:The number of elements in ∙.
ci,j:The cell is located at the i-th row and j-th column. It is commonly abbreviated as cᵢⱼ or identified by its coordinates (i, j).
ck:The k-th cell.
Pr(c):The occupancy probability of cell c, where Pr(c) ∈ [0, 1]. It is used to classify cells as free or occupied and define network connectivity.
Gm×n:The Occupancy Grid Network (OGN) consists of m rows and n columns.
V:The set of all grid cells, defined as V = {ci,j|i = 0, 1, …, (m − 1), j = 0, 1, …, (n − 1)}.
E:The set of edges representing connectivity between cells. An edge (u, v) ∈ E exists if cells u, vV are neighbors and both are free (unoccupied).
s:The start/source cell, defined as s = (0, 0).
t:The target/goal/sink cell, defined as t = (m − 1, n − 1).
O :The set of obstacle cells.
Vfree:The set of traversable (free) cells, defined as the complement of the obstacle set: Vfree = V\ O .
P:A path consisting of a sequence of cells P = {c1, c2,…, c|P|}, where c1 = s and c|P| = t.
dist(u, v):The Manhattan distance between cells u = (i, j) and v = (k, l), defined as dist(u, v) = |ik| + |jl|.
θi(P):The heading direction (or orientation) of the robot when moving to the i-th cell in path P.
Ψ(θi+ 1(P),θi(P)):Turn indicator: A function (curvature cost) returns 1 if θ i + 1 P θ i P (turn) and 0 otherwise.
M(P):The total number of turns along path P.
L(P):The total traversal cost (or path length) of a path P.
Lmin:The minimum total cost (or optimal path length) among all feasible paths.
g1(v):Path Length Cost: The cumulative distance from s to the current cell v.
h1(v):Length Heuristic: The estimated Manhattan distance from the current cell v = (x, y) to the target cell t = (m − 1, n − 1), defined as h1(v) = |(m − 1) − x| + |(n − 1) − y|.
f1(v):The total length estimate, defined as f1(v) = g1(v) + h1(v), representing the estimated total path length from start cell s to target cell t through v.
f2(v):The total turn estimate, defined as the estimated total turn from start cell s to target cell t through v.
wturn:Turn Penalty Weight: A tunable parameter that determines the cost penalty for making a turn.
f(v):Total Cost Function: The priority score for A*, defined as f(v) = (g1(v) + h1(v)) + wturn × f2(v).
C(c):The local traversal cost to cell c, defined as C(c) = 1 , i f   c   i s   a   f r e e   c e l l , , o t h e r w i s e .
dir(v):Entry Direction: The direction used to reach cell v from its parent, where dir ∈ {UP, DOWN, LEFT, RIGHT}. For the start cell s, dir(s) = null, as it has no incoming direction.
parent(v):The predecessor cell, defined as the immediate predecessor of cell v in the current best-known path. It is used during path reconstruction to backtrack from the target cell to start cell s.
The lexicographic comparison operator used for priority queue ordering. For two cells u, v, the relation u ≺ v holds if and only if f1(u) < f1(v) or [f1(u) = f1(v) and f2(u) < f2(v)].

References

  1. Zhen, L.; Tan, Z.; de Koster, R.; He, X.; Wang, S.; Wang, H. Optimizing Warehouse Operations with Autonomous Mobile Robots. Transp. Sci. 2025, 59, 1130–1152. [Google Scholar] [CrossRef]
  2. Do, T.C.; Dang, T.D. Development and Implementation of Autonomous Mobile Robots for Warehouse Applications. Int. J. Mech. Eng. Robot. Res. 2025, 14, 360–366. [Google Scholar] [CrossRef]
  3. Rondoni, C.; Scotto di Luzio, F.; Tamantini, C.; Tagliamonte, N.L.; Chiurazzi, M.; Ciuti, G.; Zollo, L. Navigation benchmarking for autonomous mobile robots in hospital environment. Sci. Rep. 2024, 14, 18334. [Google Scholar] [CrossRef]
  4. Dobrzańska, M.; Dobrzański, P. Simulation Model as an Element of Sustainable Autonomous Mobile Robot Fleet Management. Energies 2025, 18, 1894. [Google Scholar] [CrossRef]
  5. Solanes, J.E.; Gracia, L. Mobile robots: Trajectory analysis, positioning and control. Appl. Sci. 2025, 15, 355. [Google Scholar] [CrossRef]
  6. Teso-Fz-Betoño, D.; Aramendia, I.; Ramos-Hernanz, J.A.; Caballero-Martin, D.; Affou, H.; Lopez-Guede, J.M. Optimization of Energy Efficiency with a Predictive Dynamic Window Approach for Mobile Robot Navigation. Sustainability 2025, 17, 4526. [Google Scholar] [CrossRef]
  7. Yeh, W.C. Search for MC in modified networks. Comput. Oper. Res. 2001, 28, 177–184. [Google Scholar] [CrossRef]
  8. Yeh, W.C. Search for all d-mincuts of a limited-flow network. Comput. Oper. Res. 2002, 29, 1843–1858. [Google Scholar] [CrossRef]
  9. Costa, J.; Castro, L.; de Freitas, R. Exploring monotone priority queues for Dijkstra optimization. RAIRO-Oper. Res. 2025, 59, 2419–2436. [Google Scholar] [CrossRef]
  10. Yeh, W.C. A MCS-RSM approach for network reliability to minimise the total cost. Int. J. Adv. Manuf. Technol. 2003, 22, 681–688. [Google Scholar] [CrossRef]
  11. Liao, T.; Chen, F.; Wu, Y.; Zeng, H.; Ouyang, S.; Guan, J. Research on path planning with the integration of adaptive a-star algorithm and improved dynamic window approach. Electronics 2024, 13, 455. [Google Scholar] [CrossRef]
  12. Yoo, Y.D.; Moon, J.H. Study on A-star algorithm-based 3D path optimization method considering density of obstacles. Aerospace 2025, 12, 85. [Google Scholar] [CrossRef]
  13. Yeh, W.C.; Wei, S.C. Economic-based resource allocation for reliable Grid-computing service based on Grid Bank. Future Gener. Comput. Syst. 2012, 28, 989–1002. [Google Scholar] [CrossRef]
  14. Liu, Z.; Hu, L.M.; Yeh, W.C. Risk-averse two-stage stochastic programming-based closed-loop supply chain network design under uncertain demand. Appl. Soft Comput. 2023, 147, 110743. [Google Scholar] [CrossRef]
  15. Xu, B. Precise path planning and trajectory tracking based on improved A-star algorithm. Meas. Control 2024, 57, 1025–1037. [Google Scholar] [CrossRef]
  16. Tang, G.; Tang, C.; Claramunt, C.; Hu, X.; Zhou, P. Geometric A-star algorithm: An improved A-star algorithm for AGV path planning in a port environment. IEEE Access 2021, 9, 59196–59210. [Google Scholar] [CrossRef]
  17. Yeh, W.C.; He, M.F.; Huang, C.L.; Tan, S.Y.; Zhang, X.; Huang, Y.; Li, L. New genetic algorithm for economic dispatch of stand-alone three-modular microgrid in DongAo Island. Appl. Energy 2020, 263, 114508. [Google Scholar] [CrossRef]
  18. Nakahara, T.; Hara, Y.; Nakamura, S. Localizability based path planning on occupancy grid maps. Adv. Robot. 2025, 39, 127–143. [Google Scholar] [CrossRef]
  19. Sun, Z.; Wang, T.; Jin, H.; Li, X.; Wei, Y.; Wang, J. Quantum Geometric Engineering of Dual Hall Effects in 2D Antiferromagnetic Bilayers via Interlayer Magnetic Coupling. Adv. Sci. 2025, 12, e05860. [Google Scholar] [CrossRef]
  20. Wang, M.; Xu, J.; Zhang, J.; Cui, Y. An autonomous navigation method for orchard rows based on a combination of an improved a-star algorithm and SVR. Precis. Agric. 2024, 25, 1429–1453. [Google Scholar] [CrossRef]
  21. Chang, T.; Tian, G. Hybrid A-Star path planning method based on hierarchical clustering and trichotomy. Appl. Sci. 2024, 14, 5582. [Google Scholar] [CrossRef]
  22. Jayalakshmi, K.P.; Nair, V.G.; Sathish, D. MRSimEx-DSTC: A Dynamic Spanning Tree Coverage Approach for Multi-Robot Exploration and Coverage Path Planning. IEEE Access 2025, 13, 163085–163102. [Google Scholar] [CrossRef]
  23. Malla, O.; Shanmugavel, M. Optimizing the feasible object-constrained cooperative task space for enhanced dual-arm manipulation. Robot. Intell. Autom. 2025, 45, 565–575. [Google Scholar] [CrossRef]
  24. Hua, H.; Lai, Q.; Zhang, Y.; Banerjee, S.; Jafari, S. High robustness image encryption scheme utilizing memristive hyperchaotic map and Manhattan distance. Nonlinear Dyn. 2025, 113, 1857–1878. [Google Scholar] [CrossRef]
  25. Ma, C.; Song, M.; Zeng, W.; Wang, X.; Chen, T.; Wu, S. Enhancing urban emergency response: A Euclidean distance-based framework for optimizing rescue facility layouts. Sustain. Cities Soc. 2025, 118, 106006. [Google Scholar] [CrossRef]
  26. Feng, D.; Chen, L.; Li, M.; Zhang, Q. Node clustering in complex networks based on the euclidean distance of structural characteristics. Chaos Solitons Fractals 2025, 201, 117249. [Google Scholar] [CrossRef]
  27. Vinci, G.; Vanzani, F.; Fontana, A.; Campana, S. LiDAR applications in archaeology: A systematic review. Archaeol. Prospect. 2025, 32, 81–101. [Google Scholar] [CrossRef]
  28. Huang, J.; Chen, C.; Shen, J.; Liu, G.; Xu, F. A self-adaptive neighborhood search A-star algorithm for mobile robots global path planning. Comput. Electr. Eng. 2025, 123, 110018. [Google Scholar] [CrossRef]
  29. Dai, Y.; Lv, W.; Li, S.; Zong, M. Improving the Lifelong Planning A-star algorithm to satisfy path planning for space truss cellular robots with dynamic obstacles. Robotica 2025, 43, 1243–1257. [Google Scholar] [CrossRef]
  30. Linh, T.H.; Khang, N.H.D.; Chuong, H.D.; Tam, H.D. Combining deep learning Algorithm and a-star algorithm to increase the accuracy of tracking lost gamma source. Appl. Radiat. Isot. 2025, 225, 112001. [Google Scholar] [CrossRef]
  31. Chen, C.S.; Lin, C.J.; Lin, Y.J.; Lin, F.C. Application of Multi-Objective Optimization for Path Planning and Scheduling: The Edible Oil Transportation System Framework. Appl. Sci. 2025, 15, 8539. [Google Scholar] [CrossRef]
  32. Wang, D.; Li, N.; Wu, S.; Zhou, T. The Impact of Corridor Directional Configuration on Wayfinding Behavior During Fire Evacuation in Underground Spaces: An Empirical Study Based on Virtual Reality. Fire 2024, 7, 294. [Google Scholar] [CrossRef]
  33. Bai, J.; Zhu, W.; Liu, S.; Xu, L.; Wang, X. Path Planning Method for Unmanned Vehicles in Complex Off-Road Environments Based on an Improved A* Algorithm. Sustainability 2025, 17, 4805. [Google Scholar] [CrossRef]
  34. Chatzisavvas, A.; Dossis, M.; Dasygenis, M. Optimizing mobile robot navigation based on A-star algorithm for obstacle avoidance in smart agriculture. Electronics 2024, 13, 2057. [Google Scholar] [CrossRef]
  35. Yin, C.; Tan, C.; Wang, C.; Shen, F. An improved a-star path planning algorithm based on mobile robots in medical Testing laboratories. Sensors 2024, 24, 1784. [Google Scholar] [CrossRef] [PubMed]
  36. Li, Y.; Dong, X.; Ding, Q.; Xiong, Y.; Liao, H.; Wang, T. Improved A-STAR algorithm for power line inspection UAV path planning. Energies 2024, 17, 5364. [Google Scholar] [CrossRef]
  37. Guo, H.; Yang, X.; Zhu, D. Reversed design of selective infrared emitter based on the combination of equivalent medium theory and A-star algorithm. Opt. Laser Technol. 2024, 176, 110975. [Google Scholar] [CrossRef]
  38. Alfaro, J.G.C.; Trejos, A.L. Analysis of embroidered strain sensors in the presence of dynamic forces. IEEE Sens. J. 2024, 25, 2422–2431. [Google Scholar] [CrossRef]
  39. Ben Hazem, Z.; Guler, N.; Altaif, A.H. Model-free trajectory tracking control of a 5-DOF mitsubishi robotic arm using deep deterministic policy gradient algorithm. Discov. Robot. 2025, 1, 4. [Google Scholar] [CrossRef]
Figure 1. Illustration of path degeneracy in grid-based planning.
Figure 1. Illustration of path degeneracy in grid-based planning.
Electronics 15 00599 g001
Figure 2. A 5 × 5 grid map illustrating the node expansion process. S marks the start, T marks the target, and “0” marks obstacles.
Figure 2. A 5 × 5 grid map illustrating the node expansion process. S marks the start, T marks the target, and “0” marks obstacles.
Electronics 15 00599 g002
Figure 3. Distribution of turns (200 × 200).
Figure 3. Distribution of turns (200 × 200).
Electronics 15 00599 g003
Figure 4. Distribution of turns (500 × 500).
Figure 4. Distribution of turns (500 × 500).
Electronics 15 00599 g004
Figure 5. Distribution of turns (1000 × 1000).
Figure 5. Distribution of turns (1000 × 1000).
Electronics 15 00599 g005
Table 1. Comparative performance of Standard A and TM-A*.
Table 1. Comparative performance of Standard A and TM-A*.
Grid ResolutionAlgorithmLTtReduction in Turns (%)
200 × 200Standard A*400.13148.630.0514
TM-A*400.1390.230.130539.3%
500 × 500Standard A*1003.80377.700.3659
TM-A*1003.80215.071.041043.1%
1000 × 1000Standard A*2003.20746.401.0700
TM-A*2003.20430.473.222642.3%
Table 2. Turns counts.
Table 2. Turns counts.
GridTM-A* Median TTM-A* SD TStandard A* Median TStandard A* SD T
200 × 200905.114912.4
500 × 5002159.237821.7
1000 × 100043014.774638.2
Table 3. Statistical significance analysis: A* vs. TM-A*.
Table 3. Statistical significance analysis: A* vs. TM-A*.
Grid ResolutionMean Differencet-Statisticp-ValueResult
200 × 200Δ = 58.40t(41) ≈ 10.21p < 0.001Significant
500 × 500Δ = 162.63t(38) ≈ 9.15p < 0.001Significant
1000 × 1000Δ = 315.93t(35) ≈ 7.74p < 0.001Significant
Note: The Degrees of Freedom (df) are adjusted using the Welch–Satterthwaite equation due to unequal variances.
Table 4. Comparison with the state of the art.
Table 4. Comparison with the state of the art.
PropertyTM-A*Tie-Breaking/Weighted-CostAngle-Constrained/Post-Processing
Path length optimalityGuaranteedNot guaranteedNot guaranteed
Turn minimizationGuaranteed among shortest pathsHeuristicHeuristic or post hoc
CompletenessCompleteCompleteComplete
Systematic lexicographic costYesNoNo
Statistical robustnessVerified across 30 trialsRarely reportedRarely reported
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Yeh, W.-C.; Tu, J.-Y.; Huang, T.-Y.; Liao, Y.-Z.; Huang, C.-L. Lexicographic A*: Hierarchical Distance and Turn Optimization for Mobile Robots. Electronics 2026, 15, 599. https://doi.org/10.3390/electronics15030599

AMA Style

Yeh W-C, Tu J-Y, Huang T-Y, Liao Y-Z, Huang C-L. Lexicographic A*: Hierarchical Distance and Turn Optimization for Mobile Robots. Electronics. 2026; 15(3):599. https://doi.org/10.3390/electronics15030599

Chicago/Turabian Style

Yeh, Wei-Chang, Jiun-Yu Tu, Tsung-Yan Huang, Yi-Zhen Liao, and Chia-Ling Huang. 2026. "Lexicographic A*: Hierarchical Distance and Turn Optimization for Mobile Robots" Electronics 15, no. 3: 599. https://doi.org/10.3390/electronics15030599

APA Style

Yeh, W.-C., Tu, J.-Y., Huang, T.-Y., Liao, Y.-Z., & Huang, C.-L. (2026). Lexicographic A*: Hierarchical Distance and Turn Optimization for Mobile Robots. Electronics, 15(3), 599. https://doi.org/10.3390/electronics15030599

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop