Skip to content

A* search

networks

Level 3 of 3

Also called A-star and Best-first search with a heuristic.

Finds the shortest way from one place to another, like Dijkstra's method, but with a guess. Each place is judged by the distance to it so far plus the straight line from it to the place to reach, so places in the wrong direction are left alone.

roads looked along
0
places weighed up
0

step 1 of 1

Examples

Tap a spot to put your pen down there, then tap a spot next to it to draw a road. Keep tapping to draw on.

Places stand in two rows, A to D above and E to H below. A road joins places next to each other (one road across each square), at least 10 long across or down and 15 corner to corner, at most 99: A-B 12. Then a semicolon, where to start and where to reach: A-B 12, B-F 10; A F.