Dijkstra's Algorithm
Version 1.0.0 · Updated 2026-07-30
CORE DEFINITION
A classic algorithm for computing the shortest paths from a starting node to all other nodes in a graph. It uses a greedy strategy, each time selecting the unvisited node with the current shortest distance.
SCAFFOLDING EFFECT
Reduce cognitive load
The power of optimal substructure. Subpaths of shortest paths are also shortest paths—this property allows the problem to be decomposed.
Anchor fast decisions
In a non-negative weighted graph, use a greedy approach with a priority queue to find the single-source shortest path, progressively locking in the shortest distances.
MINIMUM ACTION
In progress 0/1Practice this model in one real situation:
account_treeGenealogyexpand_more
menu_bookReferencesexpand_more
Source support: Explicit
- en.wikipedia.orghttps://en.wikipedia.org/wiki/Dijkstra%27s_algorithmverified
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS