Holooly Plus Logo

Question 18.P.4: (S) For the input graph what are the final array entries of ......

(S) For the input graph what are the final array entries of the Floyd Warshall algorithm from Section 18.4?

18.P.4
Step-by-Step
The 'Blue Check Mark' means that this solution was answered by an expert.
Learn more on how do we answer questions.

With columns indexed by k and rows by vertex pairs:

(1,1) 0 0 0 0 0
(1,2) 2 2 2 2 2
(1,3) 5 5 3 3 3
(1,4) +\infty +\infty +\infty 6 6
(2,1) +\infty +\infty +\infty +\infty 8
(2,2) 0 0 0 0 0
(2,3) 1 1 1 1 1
(2,4) +\infty +\infty +\infty 4 4
(3,1) +\infty +\infty +\infty +\infty 7
(3,2) +\infty +\infty +\infty +\infty 9
(3,3) 0 0 0 0 0
(3,4) 3 3 3 3 3
(4,1) 4 4 4 4 4
(4,2) +\infty 6 6 6 6
(4,3) +\infty 9 7 7 7
(4,4) 0 0 0 0 0
0 1 2 3 4

Related Answered Questions

Question: 18.P.5

Verified Answer:

With columns indexed by k and rows by vertex pairs...
Question: 18.P1

Verified Answer:

With columns indexed by i and rows by vertices: