Skip to content
Jinho D. Choi edited this page Nov 20, 2017 · 5 revisions

Reading

Exercise

Quiz

Proof by Induction

  • 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 vertex u and the target vertex t.
  • Base case
  • When |S| = 1, it is true.
  • Induction case
  • Assume that it is true for |S| = k > 1.
  • Fill the rest!

CS323: Data Structures and Algorithms

Instructor


Emory University

Clone this wiki locally