Question: 3. (30p) For the question, first construct a weighted directed graph G using your student id as follows - similar to the question 2 -

 3. (30p) For the question, first construct a weighted directed graph

3. (30p) For the question, first construct a weighted directed graph G using your student id as follows - similar to the question 2 - (*14600015' will be used here as an example to show you how the graph is constructed. Note that if your id contains letters, first remove the letters, then apply the following steps. For instance, if your id is '18YZ0345', consider it as '180345'): multiply your id with "123456789 14600015 * 123456789 = 1802470971251835 remove all the zeros 1802470971251835 18247971251835 . cut out the last four numbers 1835 fill the empty entries in the following adjacency weight matrix with the obtained 6 numbers, with the following order 'from the first row to the last row, and at each row, from left to right' (the weights of the edges (2, 3) and (4, 1) are fixed as -1 and -2 for all the students): 4 4 DO 00 1 23 10 00 2 0 0 -1 30 0 4 -2 00 1 2 3 1 0 1 - 2 0 0 -1 3 3 0 0 4 -2 000 8 5 0 0 construct the corresponding graph 1 1 -1 8 3 -2 3 4 5 Assume you are using the Floyd-Warshall algorithm to find the shortest paths between every pair of vertices, and D(4) is the final matrix output by the algorithm. Just write the matrix D(3) for the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!