Bellman–Ford algorithm: Difference between revisions

Content deleted Content added
Fvw (talk | contribs)
Fredrik (talk | contribs)
Line 20:
return true; //Lengths of shortest paths are in Distance array
 
== Proof of the Algorithmcorrectness ==
 
The correctness of the algorithm can be shown by [[mathematical induction|induction]]. The precise statement shown by induction is: