Minimum Spanning Tree Algorithm: Aor Case Study Assignment
Minimum Spanning Tree Algorithm: Aor Case Study Assignment
Spanning Tree
Algorithm
AOR CASE STUDY ASSIGNMENT
Mr. Saransh Agarwal has been recently posted at the office of Xfinity, a leading cable internet
provider in Venice. He recently relocated from India and was amazed to see the intricate
waterways and transportation channels of the city which added to its beauty.
He was assigned with the task of identifying the important points in the city where new
servers have to be installed and connect them without covering the waterways in the most
efficient way. Keeping the beauty of the city in mind, he decided to use the minimum
spanning tree method to lay out the cable design network for the places which he identified
and marked on a map.
Saransh consulted his friends from SIBM-B to help him design the network map. So our task
is to Determine the exact cable network and length to be constructed for this project.
A spanning tree is a subset of Graph G, which has all the vertices covered with minimum
possible number of edges. Hence, a spanning tree does not have cycles and it cannot be
disconnected.
By this definition, we can draw a conclusion that every connected and undirected Graph G
has at least one spanning tree. A disconnected graph does not have any spanning tree, as it
cannot be spanned to all its vertices.
We found three spanning trees off 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
addressed example, n is 3, hence 33−2 = 3 spanning trees are possible.
STEP 1
WE have to identity all the nodes on the map of Venice where the servers have to be
installed.
STEP 2
We have to identify the displacement between the points keeping in mind that the
cable cannot cross any water body.
Table 1: Distance between the nodes (in Km)
LOCATION A B C D E F G H I J K L
A 0 6 6 6 - - - - - - - -
B 0 1 - 2 - - - - - - -
C 0 2 7 - 2 - - - - -
D 0 - - - - - 18 - -
E 0 4 - - - - - -
F 0 11 10 - - - -
G 0 22 2 - - -
H 0 12 - 25 -
I 0 1 16 -
J 0 - 8
K 0 3
L 0
STEP 3
Let us consider,
C_k = set of nodes that is permanently connected after iteration k
C'_k = set of nodes that is yet to be connected after iteration k
So, Initially C_k = NULL but at the end C'_k = NULL.
STEP 4
Node 1 is in the first set, and all other unconnected nodes in the other set. Then we
check the possible connections from the first.
STEP 5
We repeat step 4, starting from first set having two nodes now, and all other
unconnected nodes in the other set.
B
C
D
E
G L
J
K
F
I
The above solution clearly shows us that the most optimized network path length would be
40 Kms, given the constraint that cable cannot be laid over any water body.
The schematic diagram shows the network path which is to be followed to lay the cable
network in Venice. The red arrow shows the desired path whereas the blue dotted path shows
the other possible network path option.
Spanning Tree is a subset of an undirected and connected graph in which all the nodes
of the graph are connected with each other with the help of (n-1) edges where n is the
number of nodes or vertices present in the graph G.
Minimum Spanning Tree is that Spanning Tree whose cost is the least among all the
possible Spanning Trees. The cost of a Spanning Tree is the sum of the weight of all
the edges that are present in that Spanning Tree.
there are two algorithms or techniques that are used; Kruskal's Algorithm & Prim's
Algorithm.