Metraipolis › archive › dc_8b5316c77459

Dijkstra's algorithm — Wikipedia (en)

Source
Wikipedia (en)
Original
https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm
License (as archived)
CC-BY-SA-4.0
Archived
2026-10-06T09:24:55.677Z
SHA-256 of the archived text
49866f440009f19936f07bd3f7f62b82386f31ebe546e50b4ee4da83381fe407
Stable URL of this page
https://metraipolis.com/documento/dc_8b5316c77459

How to cite

Dijkstra's algorithm — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_8b5316c77459 (Metraipolis archive dc_8b5316c77459, sha256 49866f440009f19936f07bd3f7f62b82386f31ebe546e50b4ee4da83381fe407)
BibTeX
@misc{dc8b5316c77459,
  title = {Dijkstra's algorithm — Wikipedia (en)},
  howpublished = {Wikipedia (en)},
  url = {https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm},
  note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_8b5316c77459; sha256 49866f440009f19936f07bd3f7f62b82386f31ebe546e50b4ee4da83381fe407},
  year = {2026}
}

Archived text

Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Dijkstra's algorithm (, DYKE-strəz) is an algorithm for finding the shortest paths between nodes in a weighted graph, which may represent, for example, a road network. It was conceived by computer scientist Edsger W. Dijkstra in 1956 and published three years later. Dijkstra's algorithm finds the shortest path from a given source node to every other node. It can be used to find the shortest path to a specific destination node, by terminating the algorithm after determining the shortest path to that node. For example, if the nodes of the graph represent cities, and the costs of edges represent the distances between pairs of cities connected by a direct road, then Dijkstra's algorithm can be used to find the shortest route between one city and all other cities. A common application of shortest path algorithms is network routing protocols, most notably IS-IS (Intermediate System to Intermediate System) and OSPF (Open Shortest Path First). It is also employed as a subroutine in algorithms such as Johnson's algorithm. The algorithm uses a min-priority queue data structure for selecting the shortest paths known so far. Before more advanced priority queue structures were discovered, Dijkstra's original algorithm ran in Θ ( | V | 2 ) {\displaystyle \Theta (|V|^{2})} time, where | V | {\displaystyle |V|} is the number of nodes. Fredman & Tarjan 1984 proposed a Fibonacci heap priority queue to optimize the running time complexity to Θ ( | E | + | V | log | V | ) {\displaystyle \Theta (|E|+|V|\log |V|)} , where | E | {\displaystyle |E|} is the number of edges. This is asymptotically the fastest known single-source shortest-path algorithm for arbitrary directed graphs with unbounded non-negative weights. However, specialized cases (such as bounded/integer weights, directed acyclic graphs etc.) can be improved further. If preprocessing is allowed, algorithms such as contraction hierarchies can be up to seven orders of magnitude faster. Dijkstra's algorithm is commonly used on graphs where the edge weights are positive integers or real numbers. It can be generalized to any graph where the edge weights are partially ordered, provided the subsequent labels (a subsequent label is produced when traversing an edge) are monotonically non-decreasing. In many fields, particularly artificial intelligence, Dijkstra's algorithm or a variant offers a uniform cost search and is formulated as an instance of the more general idea of best-first search.

Tema degli esploratori: statistica e scienza dei dati (deposito sistematico; ricerca «algorithm»).
Fonte: Wikipedia in inglese, voce «Dijkstra's algorithm» — https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm
Wikidata Q8548 (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q8548
Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm?action=history).
Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza.
Estratto dell'introduzione non modificato nel contenuto; revisione 1378301409, consultata il 2026-10-06T08:23:29.850Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 34821e959432ed39090e26003d967d23bd60b7a094a0471687bece51d299da40