Undirected, General MST

A minimum spanning tree (MST) or minimum weight spanning tree is a subset of the edges of a connected; edge-weighted undirected graph that connects all the vertices together; without any cycles and with the minimum possible total edge weight. Here, there are no restrictions on edge weights or graph density.

Parameters

  • VV: number of vertices
  • EE: number of edges
  • UU: maximum edge weight

Filters

Computational Model

Randomization

Approximation

Algorithms Table

Displaying 16 of 16 algorithms

See more
Filter Kruskal algorithm2009O(Elog⁡V)O(E \log V)O(E)O(E)
Quick Kruskal algorithm2006O(Elog⁡V)O(E \log V)O(E)O(E)
Pettie, Ramachandran2002unknown but optimalO(E) auxiliary
Chazelle's algorithm2000O(Eα(E,V))O(E \alpha(E, V))O(E)O(E)
Thorup (reverse-delete)2000O(Elog⁡V(log⁡log⁡V)3)O(E \log V (\log \log V)^3)O(E)O(E)
Karger; Klein & Tarjan1995O(min⁡(V2,Elog⁡V))O(\min(V^2, E \log V))O(E)O(E)
Kruskal’s algorithm with demand-sorting1991O(Elog⁡V)O(E \log V)O(E)O(E)
Prim's algorithm + Fibonacci heaps; Fredman & Tarjan1987O(E+Vlog⁡V)O(E + V \log V)O(V)O(V)
Fredman & Tarjan1987O(E*beta(E, V)) where beta(m, n) = min(i such that log^(i)(n)≤m/n)O(E) auxiliary
Gabow et al, Section 21986O(E*log(beta(E, V)))O(E) auxiliary
Cheriton-Tarjan Algorithm1976O(Elog⁡log⁡V)O(E \log \log V)O(E)O(E)
Yao's algorithm1975O(Elog⁡log⁡V)O(E \log \log V)O(E)O(E)
Prim's algorithm + binary heap1964O(ElogV)O(V) auxiliary
Prim's algorithm + adjacency matrix searching1957O(V2)O(V^2)O(V)O(V)
Kruskal's algorithm1956O(Elog⁡E)O(E \log E)O(E)O(E)
Borůvka's algorithm1926O(Elog⁡V)O(E \log V)O(V)O(V)

Reductions Table

Insuffient Data to display table

Other relevant algorithms

Insuffient Data to display table