













































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
An example of dijkstra's algorithm, a popular algorithm for finding the shortest path between nodes in a graph. The algorithm is demonstrated through the use of a table, which shows the best distances from the starting node (a) to all other nodes in the graph. The document also explains the intuition behind the algorithm and discusses link cost changes and poisoned reverse.
Typology: Slides
1 / 53
This page cannot be seen from the preview
Don't miss anything!
via B via C to B to C to D
via B via C to B?? to C?? to D??
min dist to B? to C? to D?
via B via C
to C โ c (A,C) to D โ โ
mindist to B c(A,B) to C c(A,C) to D โ
mindist to B 5 to C 6 to D 2
mi n to B 5 to C 6 to D 2 via A via C
to C 15 1 to D โ โ
mindist to A 5 to C 1 to D โ
Example: Initialization via B via C to A - - to B 2 โ to C โ 7 to D โ โ
from Node A via A via C via D to A 2 โ โ to B - - - to C โ 1 โ to D โ โ 3 from Node B from Node C via A via B via D to A 7 โ โ to B โ 1 โ to C - - - to D โ โ 1 via B via C to A โ โ to B 3 โ to C โ 1 to D - - from Node D min dist to A 0 to B 2 to C 7 to D โ min dist 0 2 7 โ min dist 2 0 1 3 min dist โ 3 1 0 min dist 7 1 0 1
Example: C sends update to A via B via C to A - - to B 2 โ to C โ 7 to D โ โ from Node A via A via C via D to A 2 โ โ to B - - - to C โ 1 โ to D โ โ 3 from Node B from Node C via A via B via D to A 7 โ โ to B โ 1 โ to C - - - to D โ โ 1 via B via C to A โ โ to B 3 โ to C โ 1 to D - - from Node D min dist 0 2 7 โ min dist โ 3 1 0 min dist 7 1 0 1
min dist 2 0 1 3
Example: C sends update to A via B via C to A - - to B 2 8 to C โ 7 to D โ 8 from Node A min dist 0 2 7 โ
min dist 7 1 0 1
Example: C sends update to A via B via C to A - - to B 2 8 to C โ 7 to D โ 8 from Node A min dist 0 2 7 8
Example: now B sends update to A via A via C via D to A 2 โ โ to B - - - to C โ 1 โ to D โ โ 3 from Node B from Node C via A via B via D to A 7 โ โ to B โ 1 โ to C - - - to D โ โ 1 via B via C to A โ โ to B 3 โ to C โ 1 to D - - from Node D min dist โ 3 1 0 min dist 7 1 0 1
min dist 2 0 1 3 via B via C to A - - to B 2 8 to C โ 7 to D โ 8 from Node A min dist 0 2 7 (^8) docsity.com
Example: now B sends update to A via A via C via D to A 2 โ โ to B - - - to C โ 1 โ to D โ โ 3 from Node B from Node C via A via B via D to A 7 โ โ to B โ 1 โ to C - - - to D โ โ 1 via B via C to A โ โ to B 3 โ to C โ 1 to D - - from Node D min dist โ 3 1 0 min dist 7 1 0 1
min dist 2 0 1 3 via B via C to A - - to B 2 8 to C 3 7 to D 5 8 from Node A min dist 0 2 7 8 Make sure you know why this is 5, not 4!