Suppose that we have a complete undirected positive weighted graph G={V,E} and I want to find one MST of it. My problem is what is the best (in time complexity) algorithm for it? The best prime complexity is O(V^2) The best Kruskal complexity is O(E.Log(E))=~O(V^2. Log(V)) any idea for lower time complexity?
2026-04-03 13:19:46.1775222386
On
Best algorithm (Time Complexity) to find Minimum spanning tree of an complete, positive weighted, undirected, graph
423 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
There are 2 best solutions below
1
On
I believe there are deterministic linear time algorithms for sufficiently dense (such as complete) graphs.
One example is Prim's algorithm using a d-ary heap
See end of intro in https://en.wikipedia.org/wiki/Prim%27s_algorithm
And another one using Fibonacci heaps: https://dl.acm.org/doi/10.1145/28869.28874
Edit: Linear in the number of edges (i.e. quadratic in vertex number)
I posted my question in computer science part and this is a resonable answer that I found: