SlideShare a Scribd company logo
Minimum Spanning Tree
(MST)
Graph
 In graph theory, a graph is an ordered pair G = (V, E) comprising a set of vertices
or nodes together with a set of edges or arcs.
 Edges are 2-element subsets of V which represent a connection between two
vertices.
 Edges can either be directed or undirected.
 Edges can also have a weight attribute.
 A Path in a network is a sequence of distinct edges that join nodes regardless of
the direction of flow in each edge.
 A graph is connected when there is a path between every pair of vertices.
 A cycle is a path that starts and ends with the same vertex.
 A directed loop (or circuit) is a loop in which all the branches are oriented in same
direction.
 A tree is a connected, acyclic graph. A tree is a connected network that may
involve only a subset of all the nodes of the network. If a graph has n vertices,
(n-1) edges and it is connected then it is a tree.
A
E
D C
B
A
D
B
C
Original graph
A
D
B
C
A
D
B
C
A
D
B
C
A
D
B
C
A
D
B
C
(1) (2)
(3) (4) (5)
Graph (1), (2), (3) and (4) are spanning trees. Graph (5) consists tree but not spanning tree.
Original graph (1), w =24 (2), w = 18
(3), w = 22 (4), w = 20
A
D
B
C
4
8
6
10
A
D
B
C
8
6
10
A
D
B
C
4
8
6
A
D
B
C
4
8
10
A
D
B
C
4
6
10
Graph (2) is
spanning trees
because it has
lowest weight.
Spanning tree example
Minimum Spanning Tree example -1
Minimum Spanning Tree example -2
Applications
 Real-time face verification
 Find road networks in satellite and aerial imagery
 Approximation algorithms for NP-hard problems (e.g., TSP)
 Network design (communication, electrical, hydraulic, computer, road)
• Design of telecommunication networks (fiber-optic networks, computer networks,
leased-line telephone networks, cable television networks, etc.)
• Design of a lightly used transportation network to minimize the total cost of
providing the links (rail lines, roads, etc.)
• Design of a network of high-voltage electrical power transmission lines
• Design of a network of wiring on electrical equipment (e.g., a digital computer
system) to minimize the total length of the wire
• Design of a network of pipelines to connect a number of locations
Common algorithms
I. Prim’s Algorithm (Direct application of cut optimality theorem)
1. Start with one (any) vertex.
2. Branch outwards to grow your connected component.
3. Consider only edges that leave the connected component.
4. Add smallest considered edge to your connected component.
5. Continue until a spanning tree is created.
II. Kruskal’s Algorithm (Direct application of path optimality theorem)
1. Start with |V| disjoint components.
2. Consider lesser weight edges first to incrementally connect components.
3. Make certain to avoid cycles.
4. Continue until spanning tree is created.
Example - 0
7
1
3
2
4
6
5
6
6
5
8
8
8
Example - 1
Example - 2
Example - 3
Example - 4
Example - 5
Example - 6
Theorems
I. Cut optimality theorem: Every tree arc i-j ∈ T* , 𝐶𝑖𝑗≤ 𝐶 𝑘𝑙 for all k,l in
the cut by deleting i-j from the tree.
II. Path optimality theorem: Every non tree arc k-l , 𝐶𝑖𝑗≤ 𝐶 𝑘𝑙 where k,l
i-j ∈ T*

More Related Content

What's hot

Minimum spanning tree
Minimum spanning treeMinimum spanning tree
Minimum spanning tree
Amit Kumar Rathi
 
Dijkstra’s algorithm
Dijkstra’s algorithmDijkstra’s algorithm
Dijkstra’s algorithm
faisal2204
 
SINGLE-SOURCE SHORTEST PATHS
SINGLE-SOURCE SHORTEST PATHS SINGLE-SOURCE SHORTEST PATHS
SINGLE-SOURCE SHORTEST PATHS
Md. Shafiuzzaman Hira
 
Graph isomorphism
Graph isomorphismGraph isomorphism
Graph isomorphism
Core Condor
 
Shortest path algorithms
Shortest path algorithmsShortest path algorithms
Shortest path algorithms
Amit Kumar Rathi
 
Minimum spanning Tree
Minimum spanning TreeMinimum spanning Tree
Minimum spanning Tree
Narendra Singh Patel
 
Kruskal Algorithm
Kruskal AlgorithmKruskal Algorithm
Kruskal Algorithm
Bhavik Vashi
 
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra
Sahil Kumar
 
Dynamic programming
Dynamic programmingDynamic programming
Dynamic programming
Amit Kumar Rathi
 
A presentation on prim's and kruskal's algorithm
A presentation on prim's and kruskal's algorithmA presentation on prim's and kruskal's algorithm
A presentation on prim's and kruskal's algorithm
Gaurav Kolekar
 
Shortest path
Shortest pathShortest path
Shortest path
Farah Shaikh
 
String Matching Algorithms-The Naive Algorithm
String Matching Algorithms-The Naive AlgorithmString Matching Algorithms-The Naive Algorithm
String Matching Algorithms-The Naive Algorithm
Adeel Rasheed
 
Kruskal Algorithm
Kruskal AlgorithmKruskal Algorithm
Kruskal Algorithm
Snehasis Panigrahi
 
Graph algorithm
Graph algorithmGraph algorithm
Graph algorithm
University of Potsdam
 
minimum spanning trees Algorithm
minimum spanning trees Algorithm minimum spanning trees Algorithm
minimum spanning trees Algorithm
sachin varun
 
Single source stortest path bellman ford and dijkstra
Single source stortest path bellman ford and dijkstraSingle source stortest path bellman ford and dijkstra
Single source stortest path bellman ford and dijkstra
Roshan Tailor
 
Prim's Algorithm on minimum spanning tree
Prim's Algorithm on minimum spanning treePrim's Algorithm on minimum spanning tree
Prim's Algorithm on minimum spanning tree
oneous
 
Mathematical induction
Mathematical inductionMathematical induction
Mathematical induction
rey castro
 
Graph coloring problem
Graph coloring problemGraph coloring problem
Graph coloring problem
V.V.Vanniaperumal College for Women
 
Strassen's matrix multiplication
Strassen's matrix multiplicationStrassen's matrix multiplication
Strassen's matrix multiplication
Megha V
 

What's hot (20)

Minimum spanning tree
Minimum spanning treeMinimum spanning tree
Minimum spanning tree
 
Dijkstra’s algorithm
Dijkstra’s algorithmDijkstra’s algorithm
Dijkstra’s algorithm
 
SINGLE-SOURCE SHORTEST PATHS
SINGLE-SOURCE SHORTEST PATHS SINGLE-SOURCE SHORTEST PATHS
SINGLE-SOURCE SHORTEST PATHS
 
Graph isomorphism
Graph isomorphismGraph isomorphism
Graph isomorphism
 
Shortest path algorithms
Shortest path algorithmsShortest path algorithms
Shortest path algorithms
 
Minimum spanning Tree
Minimum spanning TreeMinimum spanning Tree
Minimum spanning Tree
 
Kruskal Algorithm
Kruskal AlgorithmKruskal Algorithm
Kruskal Algorithm
 
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra
 
Dynamic programming
Dynamic programmingDynamic programming
Dynamic programming
 
A presentation on prim's and kruskal's algorithm
A presentation on prim's and kruskal's algorithmA presentation on prim's and kruskal's algorithm
A presentation on prim's and kruskal's algorithm
 
Shortest path
Shortest pathShortest path
Shortest path
 
String Matching Algorithms-The Naive Algorithm
String Matching Algorithms-The Naive AlgorithmString Matching Algorithms-The Naive Algorithm
String Matching Algorithms-The Naive Algorithm
 
Kruskal Algorithm
Kruskal AlgorithmKruskal Algorithm
Kruskal Algorithm
 
Graph algorithm
Graph algorithmGraph algorithm
Graph algorithm
 
minimum spanning trees Algorithm
minimum spanning trees Algorithm minimum spanning trees Algorithm
minimum spanning trees Algorithm
 
Single source stortest path bellman ford and dijkstra
Single source stortest path bellman ford and dijkstraSingle source stortest path bellman ford and dijkstra
Single source stortest path bellman ford and dijkstra
 
Prim's Algorithm on minimum spanning tree
Prim's Algorithm on minimum spanning treePrim's Algorithm on minimum spanning tree
Prim's Algorithm on minimum spanning tree
 
Mathematical induction
Mathematical inductionMathematical induction
Mathematical induction
 
Graph coloring problem
Graph coloring problemGraph coloring problem
Graph coloring problem
 
Strassen's matrix multiplication
Strassen's matrix multiplicationStrassen's matrix multiplication
Strassen's matrix multiplication
 

Similar to Minimum spanning tree (mst)

Minimal spanning tree class 15
Minimal spanning tree class 15Minimal spanning tree class 15
Minimal spanning tree class 15
Kumar
 
Network Topology
Network TopologyNetwork Topology
Network Topology
Harsh Soni
 
Network analysis
Network analysisNetwork analysis
Network analysis
Moudud Hasan
 
An Optimal RPC Based Approach to Increase Fault Tolerance in Wireless AD-HOC ...
An Optimal RPC Based Approach to Increase Fault Tolerance in Wireless AD-HOC ...An Optimal RPC Based Approach to Increase Fault Tolerance in Wireless AD-HOC ...
An Optimal RPC Based Approach to Increase Fault Tolerance in Wireless AD-HOC ...
pijans
 
Graph in data structures
Graph in data structuresGraph in data structures
Graph in data structures
AhsanRazaKolachi
 
Network topology
Network topologyNetwork topology
Network topology
toramamohan
 
Using spectral radius ratio for node degree
Using spectral radius ratio for node degreeUsing spectral radius ratio for node degree
Using spectral radius ratio for node degree
IJCNCJournal
 
Parallel computing chapter 2
Parallel computing chapter 2Parallel computing chapter 2
Parallel computing chapter 2
Md. Mahedi Mahfuj
 
04 15029 active node ijeecs 1570310145(edit)
04 15029 active node ijeecs 1570310145(edit)04 15029 active node ijeecs 1570310145(edit)
04 15029 active node ijeecs 1570310145(edit)
nooriasukmaningtyas
 
Dijkstra
DijkstraDijkstra
Dijkstra
jagdeeparora86
 
d
dd
Transport Net.pdf
Transport Net.pdfTransport Net.pdf
Transport Net.pdf
AtikaParvaz1
 
Ijciras1101
Ijciras1101Ijciras1101
Ijciras1101
zhendy94
 
Lecture 14 data structures and algorithms
Lecture 14 data structures and algorithmsLecture 14 data structures and algorithms
Lecture 14 data structures and algorithms
Aakash deep Singhal
 
Transport Net.pptx
Transport Net.pptxTransport Net.pptx
Transport Net.pptx
AtikaParvaz1
 
A genetic algorithm for constructing broadcast trees with cost and delay cons...
A genetic algorithm for constructing broadcast trees with cost and delay cons...A genetic algorithm for constructing broadcast trees with cost and delay cons...
A genetic algorithm for constructing broadcast trees with cost and delay cons...
IJCNCJournal
 
system interconnect architectures in ACA
system interconnect architectures in ACAsystem interconnect architectures in ACA
system interconnect architectures in ACA
Pankaj Kumar Jain
 
Lecture 5b graphs and hashing
Lecture 5b graphs and hashingLecture 5b graphs and hashing
Lecture 5b graphs and hashing
Victor Palmar
 
Use of eigenvalues and eigenvectors to analyze bipartivity of network graphs
Use of eigenvalues and eigenvectors to analyze bipartivity of network graphsUse of eigenvalues and eigenvectors to analyze bipartivity of network graphs
Use of eigenvalues and eigenvectors to analyze bipartivity of network graphs
csandit
 
Lec 12.docx
Lec 12.docxLec 12.docx
Lec 12.docx
Subrata Kumer Paul
 

Similar to Minimum spanning tree (mst) (20)

Minimal spanning tree class 15
Minimal spanning tree class 15Minimal spanning tree class 15
Minimal spanning tree class 15
 
Network Topology
Network TopologyNetwork Topology
Network Topology
 
Network analysis
Network analysisNetwork analysis
Network analysis
 
An Optimal RPC Based Approach to Increase Fault Tolerance in Wireless AD-HOC ...
An Optimal RPC Based Approach to Increase Fault Tolerance in Wireless AD-HOC ...An Optimal RPC Based Approach to Increase Fault Tolerance in Wireless AD-HOC ...
An Optimal RPC Based Approach to Increase Fault Tolerance in Wireless AD-HOC ...
 
Graph in data structures
Graph in data structuresGraph in data structures
Graph in data structures
 
Network topology
Network topologyNetwork topology
Network topology
 
Using spectral radius ratio for node degree
Using spectral radius ratio for node degreeUsing spectral radius ratio for node degree
Using spectral radius ratio for node degree
 
Parallel computing chapter 2
Parallel computing chapter 2Parallel computing chapter 2
Parallel computing chapter 2
 
04 15029 active node ijeecs 1570310145(edit)
04 15029 active node ijeecs 1570310145(edit)04 15029 active node ijeecs 1570310145(edit)
04 15029 active node ijeecs 1570310145(edit)
 
Dijkstra
DijkstraDijkstra
Dijkstra
 
d
dd
d
 
Transport Net.pdf
Transport Net.pdfTransport Net.pdf
Transport Net.pdf
 
Ijciras1101
Ijciras1101Ijciras1101
Ijciras1101
 
Lecture 14 data structures and algorithms
Lecture 14 data structures and algorithmsLecture 14 data structures and algorithms
Lecture 14 data structures and algorithms
 
Transport Net.pptx
Transport Net.pptxTransport Net.pptx
Transport Net.pptx
 
A genetic algorithm for constructing broadcast trees with cost and delay cons...
A genetic algorithm for constructing broadcast trees with cost and delay cons...A genetic algorithm for constructing broadcast trees with cost and delay cons...
A genetic algorithm for constructing broadcast trees with cost and delay cons...
 
system interconnect architectures in ACA
system interconnect architectures in ACAsystem interconnect architectures in ACA
system interconnect architectures in ACA
 
Lecture 5b graphs and hashing
Lecture 5b graphs and hashingLecture 5b graphs and hashing
Lecture 5b graphs and hashing
 
Use of eigenvalues and eigenvectors to analyze bipartivity of network graphs
Use of eigenvalues and eigenvectors to analyze bipartivity of network graphsUse of eigenvalues and eigenvectors to analyze bipartivity of network graphs
Use of eigenvalues and eigenvectors to analyze bipartivity of network graphs
 
Lec 12.docx
Lec 12.docxLec 12.docx
Lec 12.docx
 

Recently uploaded

The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 

Recently uploaded (20)

The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 

Minimum spanning tree (mst)

  • 2. Graph  In graph theory, a graph is an ordered pair G = (V, E) comprising a set of vertices or nodes together with a set of edges or arcs.  Edges are 2-element subsets of V which represent a connection between two vertices.  Edges can either be directed or undirected.  Edges can also have a weight attribute.  A Path in a network is a sequence of distinct edges that join nodes regardless of the direction of flow in each edge.  A graph is connected when there is a path between every pair of vertices.  A cycle is a path that starts and ends with the same vertex.  A directed loop (or circuit) is a loop in which all the branches are oriented in same direction.  A tree is a connected, acyclic graph. A tree is a connected network that may involve only a subset of all the nodes of the network. If a graph has n vertices, (n-1) edges and it is connected then it is a tree. A E D C B
  • 3. A D B C Original graph A D B C A D B C A D B C A D B C A D B C (1) (2) (3) (4) (5) Graph (1), (2), (3) and (4) are spanning trees. Graph (5) consists tree but not spanning tree.
  • 4. Original graph (1), w =24 (2), w = 18 (3), w = 22 (4), w = 20 A D B C 4 8 6 10 A D B C 8 6 10 A D B C 4 8 6 A D B C 4 8 10 A D B C 4 6 10 Graph (2) is spanning trees because it has lowest weight.
  • 8. Applications  Real-time face verification  Find road networks in satellite and aerial imagery  Approximation algorithms for NP-hard problems (e.g., TSP)  Network design (communication, electrical, hydraulic, computer, road) • Design of telecommunication networks (fiber-optic networks, computer networks, leased-line telephone networks, cable television networks, etc.) • Design of a lightly used transportation network to minimize the total cost of providing the links (rail lines, roads, etc.) • Design of a network of high-voltage electrical power transmission lines • Design of a network of wiring on electrical equipment (e.g., a digital computer system) to minimize the total length of the wire • Design of a network of pipelines to connect a number of locations
  • 9. Common algorithms I. Prim’s Algorithm (Direct application of cut optimality theorem) 1. Start with one (any) vertex. 2. Branch outwards to grow your connected component. 3. Consider only edges that leave the connected component. 4. Add smallest considered edge to your connected component. 5. Continue until a spanning tree is created. II. Kruskal’s Algorithm (Direct application of path optimality theorem) 1. Start with |V| disjoint components. 2. Consider lesser weight edges first to incrementally connect components. 3. Make certain to avoid cycles. 4. Continue until spanning tree is created.
  • 17. Theorems I. Cut optimality theorem: Every tree arc i-j ∈ T* , 𝐶𝑖𝑗≤ 𝐶 𝑘𝑙 for all k,l in the cut by deleting i-j from the tree. II. Path optimality theorem: Every non tree arc k-l , 𝐶𝑖𝑗≤ 𝐶 𝑘𝑙 where k,l i-j ∈ T*