Dijkstra's Link State Algorithm - Advanced
Consider the incomplete 6-node network shown below, with the given link costs.
Consider the completed table below, which calculates the shortest distance to all nodes from Y:
================================================
| Node | Shortest distance from Y | Previous Node |
================================================
Y 0 n/a
X 3 Y
U 5 X
W 6 Y
V 7 X
Z 9 Y
================================================
Question List
1. For link X, what is the cost associated with this link? If the answer can't be determined given the information, respond with 'n/a'
2. For link Y, what is the cost associated with this link? If the answer can't be determined given the information, respond with 'n/a'
Solution
1. Because the link is never used, we cannot determine the value of X, so the answer is n/a.
2. The prior node in the path to W is Y, and we know the shortest distance of both W (6) and Y (0), so 6 - 0 = 6 which is Y.
That's incorrect
That's correct
The answer was: n/a
The answer was: 6