Question

Use Kruskal’s algorithm to find a minimal spanning tree in the graph given in Fig. 2.

Image ignouacademy-com--p-tree-70181

01 Dec 2023
Answer :
Word Count : 685

Kruskal’s algorithm is a greedy method used to find the minimum spanning tree (MST) of a graph. The basic idea is to start with an empty spanning tree and then add the edges in increasing order of their weights, ensuring that no cycle is formed during the process. The algorithm can be broken down into the following steps:

1. Sort all the edges in the graph in non-decreasing order of their weights.
2. Initialize a forest, where each vertex is a separate tree.
3. Iterate over the sorted edge list and for each edge, if the vertices of the edge belong to different trees, add the edge to the MST and combine the two trees.
4. Stop when there are \( V-1 \) edges in the MST, where \( V \) is the number of vertices in the graph.

Let’s break down the process with a generic graph, assuming we are given the graph in a figure (Figure 2) with vertices and weighted edges.

### Step 1: Sort the edges
We begin by sorting all the edges in the graph based on their weights in ascending order. Suppose the graph has the following edges (this is an example; the actual edges should come from the given graph in the figure):

- Edge 1: (A, B, 2)
- Edge 2: (A, C, 3)
- Edge 3: (B, C, 1)
- Edge 4: (B, D, 4)
- Edge 5: (C, D, 5)

After sorting the edges by

_________ __________ _____ _____ _____ ________ _______ _______.
_____ _______ _________ ________ __________ ____ ____ __________ ______ _____ _______ __________.
___ _______ _________ __________ _______ ____ ________ __________ __________.
____ ____ _______ _____ ___ _________ _______ ________ _______ ____ _______ __________.
_______ _____ _______ ________ ______ ________ ______ _____ _______ ________.
____ ______ ____ _________ _________ _______ ________ ________ ________ _______ ____.
_____ ________ _______ ________ ________ _______ _________ _______ ________.
___ _______ _________ _________ ____ _________ _______ _______ _____ ______ ____ _________.
___ _____ ________ ______ ______ ______ ___.
____ ________ ____ _______ _________.
__________ ___ __________ _____ ____ _________ ____ _______ ______ _____.
____ ____ _________ ________ ______ _____ _____ ____ ______ __________.
__________ _______ _____ ____ _____ ___ _________ ______.
_____ _________ ______ _________ _________ ______ ________ _____ _________ __________.
______ __________ _____ ______ ____ ____.
____ ________ _______ __________ ________ _________ _______ _________ _____.
_________ __________ ___ ____ ___ _______ ____ _________ _____ _______ _____.
_____ _________ ____ _______ _________ __________ ___ _____ __________ ________ ____.
__________ ______ ______ ______ _____ _______ _______ _______ _____.
__________ ________ ________ __________ ______ __________ _______ ___ ________ _______ ____ ________.
_________ ___ _____ ______ ___ _________ ____ ____ ______ __________.
_________ ______ _______ ______ ____ ________ __________.
______ __________ _______ _________ ______ _____ ______.
____ ____ __________ _________ _________ ______ _______ _________ _________ ____ __________.
_____ ___ ___ __________ ___ ______ ________ ____ ______ ____ _______ ______.
______ ________ ___ ___ __________ _______.
________ ___ ___ ________ __________ __________ _______ ________ _____ ___ ___.
______ _________ ________ _____ _____ _______ ____ ________.
_____ ______ _________ __________ ____ __________ ___ _____ ____.
_________ _______ _____ ____ _________ ______ ____ _______ _____.
_______ ____ __________ _____ _____ ______ ________ _________.
______ __________ ___ ___ _____.
_____ ________ ___ ______ ____ ________.
_________ _______ ________ ______ ____ __________ ______ __________ __________ _____ _____ _________.
_________ _______ _______ _____ ___ ___ _____ ______ __________ __________ _____.
__________ ______ _________ ______ __________ ____ ________ _____ _____ _____ _________ ________.
___ _________ _______ _________ ________ _______ ________ _____ ________ ________ _______.
___ ___ _________ ______ _________ ___ _____ _________.
___ _________ __________ ________ ____ ____ _________ _______ ____ _________ ____.
__________ _________ _________ ______ _______.
______ ____ ______ _____ _______.
_____ __________ ______ _________ ___ ________ ____ ___ ______ ______ __________.
________ _______ ____ ______ ____ ___ __________.
__________ ________ _____ _____ _________ __________ __________ ________ ______ ________ _____.
_________ ______ ___ _______ __________ _______ _________ ____ ______ ________ ______ ____.
________ ____ _______ _________ __________ ______ ________ _________ _________ _____ ____ _______.
_____ ________ _____ ________.
IGNOU ACADEMY
Your IGNOU journey, made easier.
  • Solved Assignments
  • Study Notes
  • Guess Papers
  • Question Papers
Skip in 10
Top
📞
Call Support Instant phone assistance IGNOU MMTE 2 2023 - Use Kruskal’s algorithm to find a minimal spanning tree in the g | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→