Math 2.0

Combinatorics Concept

Dijkstra's algorithm

Summary

Dijkstra's algorithm computes the shortest-path distances from one source vertex to all other vertices of a graph whose edge weights are nonnegative. It is a greedy algorithm: it repeatedly settles the unsettled vertex with the smallest tentative distance and updates the tentative distances of its neighbours. With a binary heap it runs in time O((∣V∣+∣E∣)log⁡∣V∣)O((\abs{V} + \abs{E}) \log \abs{V}). It needs nonnegative weights; with negative weights one uses the Bellman–Ford algorithm instead.

Further reading

  1. Web https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm
About this page
TagVZZMASEEC8
URIm2://VZZMASEEC8
Kindconcept
WritingW0 stub
MSC05C85, 68R10, 90C35
SpecializesGreedy algorithm
Same as
Changed3 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

Definitions