Metraipolis › archive › dc_db1480269ae0

Kruskal's algorithm — Wikipedia (en)

Source
Wikipedia (en)
Original
https://en.wikipedia.org/wiki/Kruskal%27s_algorithm
License (as archived)
CC-BY-SA-4.0
Archived
2026-10-06T18:38:07.807Z
SHA-256 of the archived text
8930080c015db5adb25eeff99c1fd8fa582344fc8ab3cafd875792c58c2ce378
Stable URL of this page
https://metraipolis.com/documento/dc_db1480269ae0

How to cite

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

Archived text

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

Kruskal's algorithm finds a minimum spanning forest of an undirected edge-weighted graph. If the graph is connected, it finds a minimum spanning tree. It is a greedy algorithm that in each step adds to the forest the lowest-weight edge that will not form a cycle. The key steps of the algorithm are sorting and the use of a disjoint-set data structure to detect cycles. Its running time is dominated by the time to sort all of the graph edges by their weight. A minimum spanning tree of a connected weighted graph is a connected subgraph, without cycles, for which the sum of the weights of all the edges in the subgraph is minimal. For a disconnected graph, a minimum spanning forest is composed of a minimum spanning tree for each connected component. This algorithm was first published by Joseph Kruskal in 1956, and was rediscovered soon afterward by Loberman & Weinberger (1957). Other algorithms for this problem include Prim's algorithm, Borůvka's algorithm, and the reverse-delete algorithm.

Tema degli esploratori: statistica e scienza dei dati (deposito sistematico; ricerca «algorithm»).
Fonte: Wikipedia in inglese, voce «Kruskal's algorithm» — https://en.wikipedia.org/wiki/Kruskal%27s_algorithm
Wikidata Q797860 (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q797860
Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Kruskal%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 1372890657, consultata il 2026-10-06T17:04:49.312Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 9c951f6adf934f8cbc1ef008d661a8997d093db6ee61300c298174cf94666dc6