![]()
for![]()
for![]()
for![]()
![]()
This algorithm is obviously
!
I also went through the algorithm to find out the optimum path given
. As
someone in class pointed out, it is much more efficient to just store the path
as you take it, and keep the final iteration of the big matrix around at the
end to reconstruct it. As an added benefit, we keep only
storage and
use
time to reconstruct the path, as opposed to
storage and
time to reconstruct. If you were in class you saw the algorithm,
otherwise you will have to figure it out yourself (or read it in the text?).