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 V:
================================================
| Node | Shortest distance from V | Previous Node |
================================================
V 0 n/a
U 4 V
X 6 V
W 8 V
Y 9 X
Z 10 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. The prior node in the path to X is V, and we know the shortest distance of both X (6) and V (0), so 6 - 0 = 6 which is X.
2. The prior node in the path to W is V, and we know the shortest distance of both W (8) and V (0), so 8 - 0 = 8 which is Y.
That's incorrect
That's correct
The answer was: 6
The answer was: 8