Question: Let be a graph with V vertices and E edges. One can implement Kruskal's Algorithm to run in O(ElogV) time, and Prim's Algorithm to run
Let be a graph with V vertices and E edges. One can implement Kruskal's Algorithm to run in O(ElogV) time, and Prim's Algorithm to run in O(E+VlogV) time. If G is a dense graph with an extremely large number of vertices, determine which algorithm would output the minimum-weight spanning tree more quickly. Explain answer.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
