Question: Q 2 Floyd - Warshall algorithm Execute the Floyd - Warshall algorithm on the directed graph below. For every pair of vertices u and v

Q2 Floyd-Warshall algorithm
Execute the Floyd-Warshall algorithm on the directed graph below. For every pair of vertices u and
v give the distances (u,v) and (v,u). Give the shortest paths from 3 to 1 and from 2 to 6 as
sequence of vertices.
Q2.1Row 1
Give the distances from vertex 1 to all six vertices in the graph, separated by single blank symbols. That is, the first entry should be the distance from 1 to 1, the second from 1 to 2, the third from 1 to 3, the forth from 1 to 4, the fifth from 1 to 5, and the sixth from 1 to 6.
Q2.2 Row 2
Give the distances from vertex 2 to all six vertices in the graph, separated by single blank symbols.
Q2.3Row 3
Give the distances from vertex 3 to all six vertices in the graph, separated by single blank symbols.
Q2.4 Row 4
Give the distances from vertex 4 to all six vertices in the graph, separated by single blank symbols.
Q2.5 Row 5
Give the distances from vertex 5 to all six vertices in the graph, separated by single blank symbols.
Q2.6 Row 6
Give the distances from vertex 6 to all six vertices in the graph, separated by single blank symbols.
Q2.7 Path from 3 to 4
Give the shortest path from 3 to 4 as comma-separated sequence of vertices, enclosed in "(" and ")", but without blank symbols.
Q2.8 Path from 4 to 3
Give the shortest path from 4 to 3 as comma-separated sequence of vertices, enclosed in "(" and ")", but without blank symbols.
 Q2 Floyd-Warshall algorithm Execute the Floyd-Warshall algorithm on the directed graph

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!