Skip to content

Glossary: Algorithms Beyond the Basics in JavaScript

Shortest path

Also written: shortest paths

The route between two places with the smallest total weight, such as the fewest driving minutes. It can differ from the route with the fewest roads, which is what BFS finds.

Where the book teaches it

Related terms

Dijkstra's algorithmWeighted graph