logo

Minimum Spanning Tree Question 2022

Find the shortest path from node A to every other node and determine routing table at A

6 Pages614 Words23 Views
   

Added on  2022-09-28

Minimum Spanning Tree Question 2022

Find the shortest path from node A to every other node and determine routing table at A

   Added on 2022-09-28

ShareRelated Documents
1
Network
Student’s Name:
Institution Affiliation:
Minimum Spanning Tree Question 2022_1
2
Introduction
A minimum spanning tree is a common sort of tree that limits the lengths (or
"loads") of the edges of the tree. A model is a link organization needing to lay line to
different neighborhoods; by limiting the measure of link laid, the link organization
will set aside cash. As you can most likely envision, bigger diagrams have more
hubs and a lot more potential outcomes for subgraphs. The quantity of subgraphs
can rapidly venture into the millions, or billions, making it extremely troublesome
(and at times difficult) to locate the base spreading over tree. Furthermore, the
lengths typically have various loads; one 5m long edge may be given a load of 5,
one more of a similar length may be given a load of 7. Overhauling systems can be
precarious because of the way that a system contacts each part of a business'
general IT framework and effects a wide scope of clients.
Since the system is the fundamental part for all PC capacities past neighborhood
applications, arrange redesigns can possibly cause more business interruptions
contrasted with other IT updates.
Question 1
Minimum spanning tree using Kruskal’s algorithm
Kruskal’s algorithm creates forest of trees. In the start of the algorithm, the mention
forest has n node. In every step that we will be following, we will be adding an edge.
The added edges joins the trees together in the forest. The connections forms
something like a cycle. Here are the steps for constructing Kruskal’s algorithm;
Step 1: Create a forest having separate nodes.
Step 2: Put the edges in a priority queues.
Minimum Spanning Tree Question 2022_2
3
Step 3: After the edges have been added into the tree follow the accompanying
steps;
a) Select the cheapest edges in the forest.
b) If it has formed a cycle reject it, else continue adding the edges.
Iteration 1:
Here we are constructing the forest with separate nodes
Minimum Spanning Tree Question 2022_3

End of preview

Want to access all the pages? Upload your documents or become a member.