Skip to content
Adaptive AgroTech NetworkUniversity of Southern Denmark · SDU Drone Center
Cover for What is the A-Star Algorithm?

Video by Adaptive AgroTech. If the embedded player is unavailable, open the original video ↗.

Motion planningInterview topic 081

What is the A-Star Algorithm?

A* searches a graph by combining the cost already accumulated with an estimate of the remaining cost. Its heuristic focuses exploration, while optimality depends on the graph, edge costs, and heuristic properties.

Understand the concept

The key idea

A* ranks candidate nodes with f = g + h, where g is the cost from the start and h estimates the cost to the goal. On a robot grid map, a distance based heuristic can prioritize promising cells and reduce exploration compared with an unguided search. The resulting optimum is a least cost path in the chosen graph, under conditions such as a consistent heuristic and nonnegative edge costs. It does not establish the best motion among every continuous movement the physical robot could make.

What to remember

  • Rank nodes using accumulated cost plus a heuristic.
  • A useful heuristic directs search toward promising cells.
  • Graph optimality depends on the model and assumptions.
Pause & think

Check your understanding

What do g and h represent in A*?

Show the explanation

g is the cost already paid from the start; h estimates the remaining cost to the goal.