4.6 Minimum Spanning Tree
v Spanning Tree: -
Ø
A spanning tree is a subgraph of an undirected connected
of Graph G, which has all the vertices along with minimum possible number of
edges. Hence, a spanning tree does not have cycles and it also cannot be
disconnected.
Ø
If any vertex is missed, it is not a spanning tree.
Ø
A disconnected graph does not have any spanning tree, as
it cannot be spanned to all its vertices.
Ø
We have three spanning trees in one complete graph.
Ø
A complete undirected graph can have maximum nn-2 number
of spanning trees, where n is the number of nodes.
Ø
In the above example, n is
3, hence 33-2 = 3 spanning trees are possible.
Minimum Spanning Tree (MST): -
Ø A minimum
spanning tree is a spanning tree, which the sum of the weights of the edge has
minimum weight than all other spanning trees of the same graph.
Ø The weight
of the spanning tree is the sum of the weights given to the edges of the
spanning tree.
Ø In
real-world situations, this weight can be measured as distance, congestion,
traffic load or any random value denoted to the edges.
Example:
Ø The sum of
the edges of the above graph is 6+5+2+3 = 16. Now, some of the possible
spanning trees created from the above graph are
Ø The first
spanning tree is a tree in which we have removed the edge between the vertices
B and D.
Ø The sum of
the edges of the first spanning tree is : 5 + 6 + 3 = 14.
Ø The second
spanning tree is a tree in which we have removed the edge between the vertices
A and B.
Ø The sum of
the edges of the Second spanning tree is : 6 + 3 + 2 = 11.
Ø The third
spanning tree is a tree in which we have removed the edge between the vertices
C and D.
Ø The sum of
the edges of the third spanning tree is : 5 + 6 + 2 = 13.
Ø The fourth
spanning tree is a tree in which we have removed the edge between the vertices
A and C.
Ø The sum of
the edges of the fourth spanning tree is : 5 + 2 + 2 = 10.
Ø So, the
minimum spanning tree that is selected from the above spanning trees for the
given weighted graph is -
Applications of spanning tree: -
·
Computer Network Routing Protocol.
·
Cluster Analysis.
·
Civil Network Planning.
Applications of minimum spanning
tree: -
·
To find paths in the map.
·
To design networks like telecommunication networks, water
supply networks, and electrical grids.