





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






Given : A network topology graph, G, with 6 nodes, and the link cost between nodes as shown below: A D E F B C 2 3 1 5 2 1 1 3 5 2 Find : Using Dijkstra’s Algorithm to find the least-cost paths for nodes A through F Solution: Let T = {A, B, C, D, E, F} = number of nodes in the network s = source node = A N = set of nodes that have been processed so far c(i,j) = link cost from node i to node j if two nodes are directly connected. = ∞ if there is no link between i and j D(v) = cost of the shortest path (least-cost path) from node s to node v that is currently known so far. When the algorithm terminates, D(v) is the cost of the shortest path from source s to destination v in the network. P(v): predecessor node along path from source s to v, that is next v
E ∞ No path F ∞ No path A D E F B C 2 3 1 5 2 1 1 3 5 2
A D E F B C 2 3 1 5 2 1 1 3 5 2
[Get Next Node]
A D E F B C 2 3 1 5 2 1 1 3 5 2
[Get Next Node]