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?
$\endgroup$ 12 Answers
$\begingroup$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
And another one using Fibonacci heaps:
Edit: Linear in the number of edges (i.e. quadratic in vertex number)
$\endgroup$ 1 $\begingroup$I posted my question in computer science part and this is a resonable answer that I found:
$\endgroup$