543 views
0 votes
0 votes
Compute minimum spanning tree for the following undirected, weighted graph, using Prim's algorithm


The weight and number of spanning tree(s) are _____________ .
A
38 and 2 respectively.
34 and 1 respectively.
34 and 2 respectively.
D
None of these.

I am getting 2 possible spanning trees. 

1: C-B-F(-E-G)-A-D

AND

2: B-C-E(-G)-F(-B)-A-D

Why are they choosing 1? Is it because of finding using prim’s algo?

Please log in or register to answer this question.

Related questions

0 votes
0 votes
2 answers
2
Rustam Ali asked Sep 3, 2018
884 views
Find time complexity of below Program?A(n){if(n<=1) return;elsereturn $A(\sqrt{n})$ ;}