Skip to content

Glossary: Algorithms Beyond the Basics in C++

Dijkstra's algorithm

Also written: Dijkstra

An algorithm that finds the fastest route from a start to every other place by always handling the closest unhandled place next, using a min-heap. It requires weights of zero or more.

Where the book teaches it

Related terms

stale entrymin-heapnegative weight