edited by
405 views

1 Answer

Best answer
7 votes
7 votes

 

From the options its quite evident that we should start from A as our starting vertex.

One of the possible sequences of the prims algorithm is shown here :

  a b c d e f g h i
  ∞   N ∞   N ∞   N ∞   N ∞   N ∞   N ∞   N ∞   N ∞   N
a   4  a ∞   N ∞   N ∞   N ∞   N ∞   N 8  a ∞   N
b     8  b ∞   N ∞   N ∞   N ∞   N 8  a    ∞   N
c       7   c ∞   N 4  c ∞   N 8  a 2  c
i       7  c ∞   N 4  c 6  i 7  i  
f       7  c 10  f   2  f 7  h  
g       7  c 10  f     1  g  
h       7  c 10  f        
d         9  d        
e                  

As per the order of relaxation we got a choice only between the edges ${a,h}$ and $ {b,c} $ , apart from these we have no choices ever in the entire algorithm.So option a and c are true .
Option d takes non adjacent edges which is true for $Kruskal’s$ algo not for $Prim’s$ and in option b the edge b,h is selected over {a,h} or {b,c} which has higher weight than the latter two.

Correct sequences are $a$ and $c$ 

selected by

Related questions

0 votes
0 votes
3 answers
1
0 votes
0 votes
2 answers
2
go_editor asked Nov 20, 2020
1,849 views
Consider the undirected graph below:Using Prim’s algorithm to construct a minimum spanning tree starting with node $a$, which one of the following sequences of edges re...
5 votes
5 votes
1 answer
3
1 votes
1 votes
0 answers
4
Shivam Chauhan asked Nov 2, 2017
759 views
First statement is False because complexity will be O(E2).I think the second statement is true? But not sure