Metraipolis › archive › dc_3863c45d6d1f
Johnson's algorithm — Wikipedia (en)
- Source
- Wikipedia (en)
- Original
- https://en.wikipedia.org/wiki/Johnson%27s_algorithm
- License (as archived)
- CC-BY-SA-4.0
- Archived
- 2026-10-07T18:26:56.617Z
- SHA-256 of the archived text
453025048ea923f3d3bafe01e50f29ba7e38ecea2de8b971ca1597579b404d8b- Stable URL of this page
https://metraipolis.com/documento/dc_3863c45d6d1f
How to cite
Johnson's algorithm — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Johnson%27s_algorithm (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_3863c45d6d1f (Metraipolis archive dc_3863c45d6d1f, sha256 453025048ea923f3d3bafe01e50f29ba7e38ecea2de8b971ca1597579b404d8b)
BibTeX
@misc{dc3863c45d6d1f,
title = {Johnson's algorithm — Wikipedia (en)},
howpublished = {Wikipedia (en)},
url = {https://en.wikipedia.org/wiki/Johnson%27s_algorithm},
note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_3863c45d6d1f; sha256 453025048ea923f3d3bafe01e50f29ba7e38ecea2de8b971ca1597579b404d8b},
year = {2026}
}Archived text
Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Johnson%27s_algorithm. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Johnson's algorithm is a way to find the shortest paths between all pairs of vertices in an edge-weighted directed graph. It allows some of the edge weights to be negative numbers, but no negative-weight cycles may exist. It works by using the Bellman–Ford algorithm to compute a transformation of the input graph that removes all negative weights, allowing Dijkstra's algorithm to be used on the transformed graph. It is named after Donald B. Johnson, who first published the technique in 1977. A similar reweighting technique is also used in a version of the successive shortest paths algorithm for the minimum cost flow problem due to Edmonds and Karp, as well as in Suurballe's algorithm for finding two disjoint paths of minimum total length between the same two vertices in a graph with non-negative edge weights. Tema degli esploratori: statistica e scienza dei dati (deposito sistematico; ricerca «algorithm»). Fonte: Wikipedia in inglese, voce «Johnson's algorithm» — https://en.wikipedia.org/wiki/Johnson%27s_algorithm Wikidata Q2345824: «algorithm to find shortest paths between all pairs of vertices in a sparse, edge-weighted (possibly negatively), directed graph; uses the Bellman–Ford algorithm to remove negative weights and Dijkstra’s algorithm on the rest» (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q2345824 Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Johnson%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 1321323800, consultata il 2026-10-07T17:55:30.509Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 3e4d64ae671705e42146369bf22be25e7b04f7b43bc659fc8d49253d0c8f8f01