-
Notifications
You must be signed in to change notification settings - Fork 28
Shortest Path
Jinho D. Choi edited this page Nov 20, 2017
·
5 revisions
- Prove the soundness of Dijkstra's algorithm using induction.
- Write a report that includes your proof and save it as
quiz9.pdf
. Submit your report to https://canvas.emory.edu/courses/32845/assignments/93013
- Let
S
be the set of all vertices on the shortest path found by Dijkstra’s algorithm. - Prove that the
distances[u]
is the minimum length between the vertexu
and the target vertext
. - Base case
- When
|S| = 1
, it is true. - Induction case
- Assume that it is true for
|S| = k > 1
. - Fill the rest!
Copyright © 2014-2017 Emory University - All Rights Reserved.