learngraphtheory.org

Interactive Graph Theory Learning

Guest User

Using app without sign in

Algorithm Selection

Borůvka's Algorithm

Finds MST by parallel component-based approach

Time: O(E log V)
Space: O(V)
Use Case: Parallel MST computation, distributed algorithms

Algorithm Execution

Select an algorithm and generate steps to begin visualization

About Borůvka's Algorithm

Boruvka's algorithm, published in 1926 and the oldest MST algorithm, finds a minimum spanning tree by letting every component simultaneously pick its cheapest outgoing edge. All selected edges are added at once, merging components in parallel rounds.

How it works

Each round scans all edges and records, for every component, the minimum-weight edge leaving it. Those edges are added to the forest, at least halving the number of components, so only O(log V) rounds are needed. Each round costs O(E), for a total of O(E log V). Because each round is a simple parallel scan, Boruvka is the natural basis for parallel and distributed MST computation.

Applications

Boruvka's algorithm was originally devised to plan an electrical network in Moravia and today underlies parallel MST implementations on GPUs and clusters, as well as hybrid algorithms that mix Boruvka rounds with Prim or Kruskal phases. It appears in interviews mainly as a discussion point on parallel algorithm design.

Read the full article: Minimum Spanning Trees: Prim, Kruskal and Boruvka

Related algorithms: Prim's MST Algorithm, Kruskal's MST Algorithm

Interactive Controls
Basic Actions
Double Click → Add Node
Drag → Move Nodes
Shift + Click → Connect Nodes
Right Click → Context Menu
Advanced
Ctrl + Click → Multi-Select
Delete Key → Remove Selected
Double Click Edge → Edit Weight
Ctrl + Drag → Pan View

Zoom Controls

100%
Nodes: 4
Edges: 4