California State University, Sacramento
Spring 2018
Algorithms
by Ghassan Shobaki
Text book: Introduction to Algorithms by Cormen, Leiserson, Rivest, and Stein, 3rd Edition, MIT Press, Cambridge (2009)
Correction: At 33: The indentation of v.Pi = u is not right.
It should be further indented by two more levels. So, it should be inside the inner loop and in the then clause of the if statement.