Q.

Prim’s algorithm resembles Dijkstra’s algorithm.

A. true
B. false
Answer» A. true
Explanation: in prim’s algorithm, the mst is constructed starting from a single vertex and adding in new edges to the mst that link the partial tree to a new vertex outside of the mst. and dijkstra’s algorithm also rely on the similar approach of finding the next closest vertex. so, prim’s algorithm
2.7k
0
Do you find this helpful?
11

Discussion

No comments yet