Sonsider a new directed graph that is the same as the one in part (a) except that there is no arc (C, B) and that the "distance" of arc (B, C) is equal to -8. Use the Label Correcting Algorithm to find a shortest path from node A to each of the other four nodes. Provide the same level of details as required in part (a).

icon
Related questions
Question

[Linear programming] I've already finished part (a), which is using Dijkstra algorithm. However in part (b), the cost of path has negative number. Could u please use label correcting algorithm to deal with it? and please tell me the difference between Dijkstra and label correcting, thanks :)

Ch.
Date
A
10
3
1
B
C
2
8 7
2
D
Use Dijkstra's algorithm to find a shortest path from node A to each of the other four nodes in the
following directed graph, where the numbers by the arcs represent the distances. Provide the
details of your working. In particular, provide the list of your updated labels for each of nodes B,
C, D and E, starting with +∞. What are the shortest path to each of these four nodes and the
corresponding length?
My shortest distance from & at step i iG{0, 1,2,3,4
5}
d
Az
E
-Step previous n
do initial.
iz
do
ds
A
с
13
P
E
0
A
-B-
x
To
6
6
6
6
Node -
E
3
8
M
3
3
3
-D
20
[]
8
8
8
E
x
J
tyn
J
4
A
->B: A, C B
A, C
ASC
AD:
Аце АТСТЕ
E
a
Consider a new directed graph that is the same as the one in part (a) except that there is no arc (C,
B) and that the "distance" of arc (B, C) is equal to -8. Use the Label Correcting Algorithm to find a
shortest path from node A to each of the other four nodes. Provide the same level of details as
required in part (a).
?
A.C. BID
Transcribed Image Text:Ch. Date A 10 3 1 B C 2 8 7 2 D Use Dijkstra's algorithm to find a shortest path from node A to each of the other four nodes in the following directed graph, where the numbers by the arcs represent the distances. Provide the details of your working. In particular, provide the list of your updated labels for each of nodes B, C, D and E, starting with +∞. What are the shortest path to each of these four nodes and the corresponding length? My shortest distance from & at step i iG{0, 1,2,3,4 5} d Az E -Step previous n do initial. iz do ds A с 13 P E 0 A -B- x To 6 6 6 6 Node - E 3 8 M 3 3 3 -D 20 [] 8 8 8 E x J tyn J 4 A ->B: A, C B A, C ASC AD: Аце АТСТЕ E a Consider a new directed graph that is the same as the one in part (a) except that there is no arc (C, B) and that the "distance" of arc (B, C) is equal to -8. Use the Label Correcting Algorithm to find a shortest path from node A to each of the other four nodes. Provide the same level of details as required in part (a). ? A.C. BID
Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer