






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Tree: A minimally connected network is called a tree. If there are n nodes in a network, it will be a tree if the number of edges = n-1.
Minimum spanning tree algorithm
Problem : Given a connected network with weights assigned to the edges, it is required to find out a tree whose nodes are the same as those of the network. The weight assigned to an edge may be regarded as the distance between the two nodes with which the edge is incident. Algorithm:
The problem can be solved with the help of the following algorithm.
The procedure consists of selection of a node at each step.
Step 1: First select any node in the network. This can be done arbitrarily. We will start with this node. Step 2: Connect the selected node to the nearest node.
Step 3: Consider the nodes that are now connected. Consider the remaining nodes. If there is no node remaining, then stop. On the other hand, if some nodes remain, among them find out which one is nearest to the nodes that are already connected. Select this node and go to Step
Thus the method involves the repeated application of Steps 2 and 3. Since the number of nodes in the given network is finite, the process will end after a finite number of steps. The algorithm will terminate with step 3. How to break ties:
While applying the above algorithm, if some nodes remain in step 3 and if there is a tie in the nearest node, then the tie can be broken arbitrarily. As a consequence of tie, we may end up with more than one optimal solution.
Problem 1:
Determine the minimum spanning tree for the following network.
60 5 2 70
1 3
100 7
8 201
4 6
MBA-H2040 Quantitative Techniques for Managers
Now we go to Step 2. We connect node 3 to node 4 by a thick line. This is Iteration
No.2.
1 3
100 7
202
MBA-H2040 Quantitative Techniques for Managers
40 120 50
8 80 50 60
30
Next go to step 3.
6
Itera tion No. 2
Now the connected nodes are 1, 3 and 4. The remaining nodes are 2, 5, 6, 7 and 8. Node 2 is at a distance of 60 from node 1. Nodes 5, 6, 7 and 8 are not adjacent to node 1. All of the nodes 2, 5, 6, 7 and 8 are adjacent to node 3. Among them, nodes 2 and 6 are nearer to node 3, with equal distance of 60. Node 6 is adjacent to node 4, at a distance of 90. Now there is a tie between nodes 2 and 6. The tie can be broken arbitrarily. So we select node 2. Connect node 3 to Node 2 by a thick line. This is Iteration No. 3.
1 3
100 7
8 80 50 60
30 4 90 6
Iteration No. 3
1 3
100 7
8 80 50 60 30
4 90 6
Iteration No. 4
Now nodes 1, 2, 3, 4 and 5 are connected. The remaining nodes are 6, 7 and 8. Among them, node 6 is at the shortest distance of 60 from node 3. So, connect node 3 to node 6 by a thick line. This is Iteration No. 5.
1 3
100 7
8 80 50 60
30 4 90 6
Iteration No. 5
Now nodes 1, 2, 3, 4, 5 and 6 are connected. The remaining nodes are 7 and 8. Among them, node 8 is at the shortest distance of 30 from node 6. Consequent ly we connect node 6 to node 8 by a thick line. This is Iteration No. 6.
204
MBA-H2040 Quantitative Techniques for Managers
60 5 2 70
Now all the nodes 1, 2, 3, 4, 5, 6, 7 and 8 are connected by seven thick lines. Since no node is remaining, we have reached the stopping condition. Thus we obtain the following minimum spanning tree for the given network.
2
60 7 1 3 205 8
MBA-H2040 Quantitative Techniques for Managers
40 50
Minimum Spanning Tree