β
Correct Answer: (B)
o(v2)
Explanation: use of adjacency matrix provides the simple implementation of the prim’s algorithm. in prim’s algorithm, we need to search for the edge with a minimum for that vertex. so, worst case time complexity will be o(v2), where v is the number of vertices.
Explanation by: Mr. Dubey
use of adjacency matrix provides the simple implementation of the prim’s algorithm. in prim’s algorithm, we need to search for the edge with a minimum for that vertex. so, worst case time complexity will be o(v2), where v is the number of vertices.
Discussion
Question Analytics
466
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
86%
Success Rate