MicrolearnENPTES

Dijkstra's shortest paths

Lesson 17 of 20 · Algo.Micro

When roads have different lengths, always expand the closest unfinished place.

Now each edge has a number: minutes, kilometres, price. The shortest path is the one with the smallest total weight, not the fewest edges. Each badge shows the best distance from A known so far.

Check yourself

Which node does Dijkstra process next?

Do it in the browser: a real algorithms tool, a short mission and instant feedback. No install.

Start this lesson — free
← Depth-first searchRecursion →

All lessons · Algo.Micro