Consider the following graph: Which of the following represents the sequence…

Consider the following graph:

image.png

Which of the following represents the sequence of edges added, in order, to build a minimum spanning tree using Prim's algorithm?

  1. A.

    (e-h), (e-f), (d-f), (d-a), (d-g), (d-c), (a-b)

  2. B.

    (e-h), (e-f), (d-f), (d-a), (d-g), (a-b), (d-c)

  3. C.

    (a-d), (d-g), (a-b), (e-f), (d-f), (d-c), (d-h)

  4. D.

    (a-d), (d-e), (d-g), (a-b), (e-h), (d-f), (d-c)

Attempted by 183 students.

Sign up free to check your answer

Sign up free

Explore the full course: Isro

Loading lesson…