InterviewSolution
Saved Bookmarks
| 1. |
Which of the following is true?(a) Prim’s algorithm can also be used for disconnected graphs(b) Kruskal’s algorithm can also run on the disconnected graphs(c) Prim’s algorithm is simpler than Kruskal’s algorithm(d) In Kruskal’s sort edges are added to MST in decreasing order of their weightsI got this question in exam.I want to ask this question from Minimum Spanning Tree in section Minimum Spanning Tree of Data Structures & Algorithms II |
|
Answer» Correct OPTION is (b) Kruskal’s algorithm can also run on the DISCONNECTED GRAPHS |
|