Q. |
Which of the following is false about Prim’s algorithm? |
A. | it is a greedy algorithm |
B. | it constructs mst by selecting edges in increasing order of their weights |
C. | it never accepts cycles in the mst |
D. | it can be implemented using the fibonacci heap |
Answer» B. it constructs mst by selecting edges in increasing order of their weights | |
Explanation: prim’s algorithm can be implemented using fibonacci heap and it never accepts cycles. and prim’s algorithm follows greedy approach. prim’s algorithms |
Login to Continue
It will take less than 2 minutes