Link-state routing protocol: Difference between revisions

Content deleted Content added
m typos
Line 62:
===Calculating the shortest paths===
 
Each node indepdentlyindependently runs an [[algorithm]] over the map to determine the [[Shortest_path_problem|shortest path]] from themselves to every other node in the network; generally some variant of [[Dijkstra's algorithm]] is used.
 
Basically, a node maintains two data structures: a [[Tree data structure|tree]] containing nodes which are "done", and a list of ''candidates''. The algorithm starts with both structures empty; it then adds to the first one the node itself. The algorithm then repetitively: