Using given matrix P produced by Floyd2 Algorithm restore the path from 19 to 12 that has the minimum cost (shortest path). Hint: use path(r, q) function.

icon
Related questions
Question
Using given matrix P produced by Floyd2 Algorithm restore the path from v9 to V2 that has the
minimum cost (shortest path). Hint: use path(r, q) function.
P
v1 "2
V3
v4
V5 V6
V7
8
90
19
v1
0
6
5
0
0
9
22
0
0
5
0
1
0
6
6
9
5
0
6
V3
6
9
0
6
9
9
9
9
0
v4
0
0
5
0
0
15
0
9
0
9
0
9
0
6
6
9
7
5
4.
3
0.
9
8
9
8
V6
17
18
19
8
8
0
0
2
7
8
5
0
1
0
0
9
0
8
0
8
8
0
9
8
0
0
8
9
0
3
0
6
7
0
Transcribed Image Text:Using given matrix P produced by Floyd2 Algorithm restore the path from v9 to V2 that has the minimum cost (shortest path). Hint: use path(r, q) function. P v1 "2 V3 v4 V5 V6 V7 8 90 19 v1 0 6 5 0 0 9 22 0 0 5 0 1 0 6 6 9 5 0 6 V3 6 9 0 6 9 9 9 9 0 v4 0 0 5 0 0 15 0 9 0 9 0 9 0 6 6 9 7 5 4. 3 0. 9 8 9 8 V6 17 18 19 8 8 0 0 2 7 8 5 0 1 0 0 9 0 8 0 8 8 0 9 8 0 0 8 9 0 3 0 6 7 0
Expert Solution
steps

Step by step

Solved in 7 steps with 1 images

Blurred answer