What is the runtime of Prim's algorithm for finding the minimum spanning tree of a graph?

1 answer

Answer

1208811

2026-08-07 12:35

+ Follow

The runtime of Prim's algorithm for finding the minimum spanning tree of a graph is O(V2) with a simple implementation, or O(E log V) with a more efficient implementation using a priority queue.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.