×

Multiple-Choice Questions

In Prim's algorithm, what is the initial key value assigned to the starting vertex?

46. In Prim's algorithm, what is the initial key value assigned to the starting vertex?

  1. Infinity
  2. -1
  3. 0
  4. 1

Answer

The correct answer is: C) 0

Explanation

The starting vertex is given a key value of 0 to ensure it is picked first.

Comments and Discussions!

Load comments ↻






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