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
πŸ’¬ Discuss
βœ… Correct 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

Explanation by: Mr. Dubey
prim’s algorithm can be implemented using fibonacci heap and it never accepts cycles. and prim’s algorithm follows greedy approach. prim’s algorithms

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
538
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
81%
Success Rate