AlgoFrames

Admissible heuristic

Warm-up · Multiple choice · about 3 min

A robot moves on a grid one step up, down, left or right. Each step costs 1. You run A* to the goal at (gr, gc). Which heuristic h(r, c) guarantees the shortest route?

Learn the idea first: A* search with heuristics, a visual lesson.

More A* search with heuristics problems