Minimum spanning tree (mst)

PradeepBehera 970 views 17 slides Apr 29, 2020
Slide 1
Slide 1 of 17
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17

About This Presentation

Minimum spanning tree (mst)


Slide Content

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 Prim’s Algorithm (Direct application of cut optimality theorem) Start with one (any) vertex. Branch outwards to grow your connected component. Consider only edges that leave the connected component. Add smallest considered edge to your connected component. Continue until a spanning tree is created. Kruskal’s Algorithm (Direct application of path optimality theorem) Start with |V| disjoint components. Consider lesser weight edges first to incrementally connect components. Make certain to avoid cycles. 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 Cut optimality theorem : Every tree arc i -j T* , ≤ for all k,l in the cut by deleting i -j from the tree . Path optimality theorem : Every non tree arc k-l , ≤ where k,l i-j T*  
Tags