
























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!

























Instructor: Lilian de Greef Quarter: Summer 2017
I will have the final exam quadruple-checked to avoid these situations! (I am so sorry)
Shortest Path Example # vertex known? cost path A B C D E F G H Known Set (in order added): A B D C F H E G 2 (^2 ) 10 2 1 3 11 1 7 1 9 2 4 5
Dijkstra’s Algorithm – the following algorithm for finding single-source shortest paths in a weighted graph (directed or undirected) with no negative-weight edges:
A B C D F E G 2 1 2 5 1 1 1 2 6 5 3 10 vertex known? cost path A B C D E F G An order of adding vertices to the known set: A) A, D, C, E, F, B, G B) A, D, C, E, B, F, G C) A, D, E, C, B, G, F D) A, D, E, C, B, F, G