×

Multiple-Choice Questions

What type of algorithm is Prim's algorithm?

40. What type of algorithm is Prim's algorithm?

  1. Dynamic Programming
  2. Divide and Conquer
  3. Greedy
  4. Backtracking

Answer

The correct answer is: C) Greedy

Explanation

Prim's algorithm is a greedy algorithm that builds the MST by selecting the minimum weight edges at each step.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.