Question 56
Explanation
Explanation
Previous | Next |
UGC NET CS December 2019 - Q. 55 | UGC NET CS December 2019 - Q. 57 |
Previous | Next |
UGC NET CS December 2019 - Q. 55 | UGC NET CS December 2019 - Q. 57 |
Question 16 In a certain coding language. 'AEIOU' is written as 'TNHDZ'. Using the same coding language. 'BFJPV' wil...
Kruskal's algorithm follows the greedy algorithm approach in graph theory as it finds a MST for a connected weighted graph adding increasing cost edges at each step (Such that graph doesn't form a cycle).
Follow below steps to find MSP:
First Sorted edges by weight
2
3
4
5
6
7
8
We step by step only consider only edges from above sorted list such that it does not form cycle. The bold edges in above list will form a MST of graph in the order of increasing edge weight.
So, The weight of minimum spanning tree in graph G calculated using Kruskal's algorithm is :
= (2+3+4+6) = 15
Hence, Option 2 (15) is the right answer.