A* Search

A* Search finds a path by looking at distance already traveled plus a guess of what is left.

What it does

A* Search finds a path by looking at distance already traveled plus a guess of what is left.

Heuristic: A smart guess โ€ข Pathfinding: Finding the way

How it works

  • Start at the first spot.
  • Score nearby spots using cost so far and estimated distance left.
  • Keep choosing promising spots until the goal is reached.

Uses and applications

  • A game can move a character around walls.
  • A map app can find a route.
  • A warehouse robot can plan a path through shelves.

In short

A* is a smart path finder.

Related methods

Back to Reinforcement learning, agents and planning ยท All topics

The interactive demonstration and the Python walkthrough for this topic need JavaScript.