Skip to content

Glossary: Data Structures and Algorithms in JavaScript

Dijkstra's algorithm

Also written: Dijkstra

An algorithm for finding the fastest route in a weighted graph. The planner needs it because fewest stops isn't always fewest minutes; it is taught in the next book.

Where the book teaches it

Related terms

Weighted graphBreadth-first search (BFS)