Borůvka's algorithm
Borůvka's algorithm is a greedy algorithm for finding a minimum spanning tree in a graph, or a minimum spanning forest in the case of a graph that is not connected.[src] It was first published in 1926 by Otakar Borůvka as a method of constructing an efficient electricity network for Moravia.[src] The algorithm was rediscovered by Choquet in 1938; again by Florek, Łukasiewicz, Perkal, Steinhaus, and Zubrzycki in 1951; and again by Georges Sollin in 1965.[src] This algorithm is frequently called Sollin's algorithm, especially in the parallel computing literature.[src] The algorithm begins by finding the minimum-weight edge incident to each vertex of the graph, and adding all of those edges to the forest.[src] Then, it repeats a similar process of finding the minimum-weight edge from each tree constructed so far to a different tree, and adding all of those edges to the forest.[src] Each repetition of this process reduces the number of trees, within each connected component of the graph, to at most half of this former value, so after logarithmically many repetitions the process finishes.[src] When it does, the set of edges it has added forms the minimum spanning forest.[src]
Borůvka's algorithm is a greedy algorithm for finding a minimum spanning tree in a graph, or a minimum spanning forest in the case of a graph that is not connected.[src] It was first published in 1926 by Otakar Borůvka as a method of constructing an efficient electricity network for Moravia.[src] The algorithm was rediscovered by Choquet in 1938; again by Florek, Łukasiewicz, Perkal, Steinhaus, and Zubrzycki in 1951; and again by Georges Sollin in 1965.[src] This algorithm is frequently called Sollin's algorithm, especially in the parallel computing literature.[src] The algorithm begins by finding the minimum-weight edge incident to each vertex of the graph, and adding all of those edges to the forest.[src] Then, it repeats a similar process of finding the minimum-weight edge from each tree constructed so far to a different tree, and adding all of those edges to the forest.[src] Each repetition of this process reduces the number of trees, within each connected component of the graph, to at most half of this former value, so after logarithmically many repetitions the process finishes.[src] When it does, the set of edges it has added forms the minimum spanning forest.[src] input: A weighted undirected graph G = (V, E).[src] output: F, a minimum spanning forest of G.[src] Initialize a forest F to (V, ) where = {}.[src] completed := false while not completed do Find the connected components of F and assign to each vertex its component Initialize the cheapest edge for each component to "None" for each edge uv in E, where u and v are in different components of F: let wx be the cheapest edge for the component of u if is-preferred-over(uv, wx) then Set uv as the cheapest edge for the component of u let yz be the cheapest edge for the component of v if is-preferred-over(uv, yz) then Set uv as the cheapest edge for the component of v if all components have cheapest edge set to "None" then // no more trees can be merged -- we are finished completed := true else completed := false for each component whose cheapest edge is not "None" do Add its cheapest edge to E function is-preferred-over(edge1, edge2) is return (edge2 is "None") or (weight(edge1) < weight(edge2)) or (weight(edge1) = weight(edge2) and tie-breaking-rule(edge1, edge2)) function tie-breaking-rule(edge1, edge2) is The tie-breaking rule; returns true if and only if edge1 is preferred over edge2 in the case of a tie.[src] As an optimization, one could remove from G each edge that is found to connect two vertices in the same component, so that it does not contribute to the time for searching for cheapest edges in later components.[src] ==Notes==[src]
22 sentences · 22 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Borůvka's algorithm." encyclopegia.org, 2026, https://encyclopegia.org/wiki/bor-vka-s-algorithm. Accessed 29 November 2026.
Chicago
"Borůvka's algorithm." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/bor-vka-s-algorithm.
APA
encyclopegia.org. (2026). Borůvka's algorithm. Retrieved November 29, 2026, from https://encyclopegia.org/wiki/bor-vka-s-algorithm
Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON
Claims
| Predicate | Value | Source |
|---|---|---|
| publication date | 1926 | Wikipedia |