QUESTION A video conference is to take place in the network shown in Figure 1 To transport the communication efficiently through this network we need a minimum spanning tree network which connects...

1 answer below »
file attached


QUESTION A video conference is to take place in the network shown in Figure  1 To transport the communication efficiently through this network we need a minimum spanning tree network which connects these nodes through the existing links. Find such a minimum spanning tree, i.e. a network with the minimum total length which connects all these nodes. Make sure to explain all your reasoning, including a selection of steps of your algorithm which make it clear that you have carried it out systematically. The solution for the minimum spanning tree problem that you have found should be given and it should achieve the minimum possible total cost (ie the sum of link costs for this network is the minimum possible). Is the minimum spanning tree that you found unique? Give your reasons. Figure 1 CRITERIA 1. The minimum spanning tree algorithm has been carried out on the network of Figure 1 and sufficiently many steps shown to confirm that it has been done correctly. 2. Your solution has been stated clearly and it has the minimum possible cost. 3. Whether this solution is minimum in cost is correctly identified.
Answered Same DayOct 14, 2021

Answer To: QUESTION A video conference is to take place in the network shown in Figure 1 To transport the...

Riya answered on Oct 14 2021
142 Votes
Steps to find the minimum spanning tree with minimum possible cost:
· First store the cost of communication f
rom one node to another in a 2 dimensional array.
· Then make three arrays to namely:
Parent :to store the parent node of each node
Keyval :to store key value of each node
Mstset : to specify if a node is included in MST or not.
· Make node A as the default source node.
· Then find the node with minimum cost which has not been included in the MST set its bool value as true which means that it has been included in the MST.
· Update the value of neighboring nodes of the minimum node and make update the paren array along with it.
· Calculate the total cost.
The solution of this problem is:
// C++ code to find out minimum cost
// path to connect all the cities
#include
using namespace std;
// Function to find out minimum valued node
// among the nodes which are not yet included in MST
int minnode(int n, int keyval[], bool mstset[]) {
int mini = numeric_limits::max();
int mini_index;
// Loop through all the values of the nodes
// which are...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here