Question: IE 2 1 0 8 4 . ( a ) Define a Python function to find a Minimum Spanning Tree ( MST ) of a
IE
a Define a Python function to find a Minimum Spanning Tree MST of a graph using Kruskal's Algorithm. Assume the graph is represented as an adjacency list.
Marks
b You are given a unidirectional weighted graph in Figure in which the vertices are denoted by numbers in the circles, and the edges with weights are represented by lines connecting the vertices. Write a Python program to find an MST for this graph using the function defined in part a Write down the output of your program.
Marks
c Explain the steps of Kruskal's Algorithm and justify the output of your Python program in part b
Marks
d Under what conditions may a graph have multiple MSTs Can the graph in part b have multiple MSTs If so show another MST that is different from the MST that you have obtained in part b If not, why not?
Marks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
