AlgoViz

Dijkstra's algorithm

medium 22 min

Dijkstra's algorithm finds the shortest distance from one source to every node of a graph whose edge weights are non-negative.

Check yourself

One question at a time. Each answer explains why.

Question 1 of 10

Score 0
conceptual

Which data structure makes Dijkstra efficient?

Pick an answer to see why.

Flashcards

Say your answer, then reveal it.

Card 1 of 11

Recall

What does Dijkstra's algorithm compute?

Say your answer, then reveal it.

These cards come back in Today, just before you would forget them.