Prim’s algorithm resembles Dijkstra’s algorithm.
Prim’s algorithm resembles Dijkstra’s algorithm. Correct Answer True
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 resembles Dijkstra’s algorithm.
মোঃ আরিফুল ইসলাম
Feb 20, 2025