DAA PPT -Minimum Spanning Tree
DAA PPT -Minimum Spanning Tree
Introduction to Minimum
Spanning Tree (MST)
A tree is a connected graph with no cycles.
A Spanning Tree is a subgraph of G that has all
vertices of G & is a tree.
A Minimum Spanning Tree of a weighted Grapg G
is a Spanning Tree of G whose edges sum to
minimum weight.
Graph : G(V,E)
Spanning Tree : G’(V, E’)
Introduction to Minimum
Spanning Tree (MST)
A Minimum Spanning Tree (MST) of a graph is
a spanning tree with the minimum total edge
weight.
Applicable in network design, clustering, and
approximation algorithms.
A graph can have multiple MSTs but with the
same total weight.
MST is formed from a connected, undirected,
and weighted graph.
Properties of MST
The MST of a graph connects all
vertices with the minimum possible
total edge weight.
No cycles are allowed & it can’t be
disconnected
The number of edges in MST = V - 1
(where V is the number of vertices).
It follows Greedy Strategy.
MST Algorithms
Kruskal's Algorithm
Prim's Algorithm
A Networking Problem