πŸ“Š Design and Analysis of Algorithms
Q. Prim’s algorithm is a
  • (A) divide and conquer algorithm
  • (B) greedy algorithm
  • (C) dynamic programming
  • (D) approximation algorithm
πŸ’¬ Discuss
βœ… Correct Answer: (B) greedy algorithm

Explanation: prim’s algorithm uses a greedy algorithm approach to find the mst of the connected weighted graph. in greedy method, we attempt to find an optimal solution in stages.


Explanation by: Mr. Dubey
prim’s algorithm uses a greedy algorithm approach to find the mst of the connected weighted graph. in greedy method, we attempt to find an optimal solution in stages.

πŸ’¬ Discussion

πŸ“Š Question Analytics

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