Minimum Spanning Tree (MST) – Explanation Using Triangle (n = 3)
Given:
An undirected graph ( G ) with:
( n ) nodes
Adjacency matrix:
This represents a complete graph where every pair of nodes is connected with weight = 1.
Example: Triangle Graph (n = 3)
Figure:
A
/ \
/ \
B-----C
Adjacency Matrix:
A B C
A → [0 1 1]
B → [1 0 1]
C → [1 1 0]
MST Concept:
For ( n = 3 ):
👉 MST must have 2 edges
All Possible MSTs:
MST 1:
Edges: A–B, B–C
Cost = 1 + 1 = 2
MST 2:
Edges: A–B, A–C
Cost = 2
MST 3:
Edges: A–C, B–C
Cost = 2
Observations:
Final Answer:
Graph G has multiple distinct MSTs, each of cost ( (n - 1) )
Key Insight (Exam Point):