John Tan
2003-12-10 01:53:46 UTC
Hi:
On the notes "Graphs PART III" - Page 19 of the PDF file - the example
doesn't match the code example given (bellman_ford.c) I ran the program
and after the first iteration (i = 1) the value for D was: 0,6,4,2,7
But in the example (pdf notes), when i = 1, two nodes are still set to INF.
Which way is correct?
Also, regarding difference constraints, I copied down in class (as well as
another friend) the arrows pointing in the opposite direction compared to
the web notes? Is the web notes correct or do the arrows go the other way
for difference constraints? (Eg. Pg 12 on "Graphs PART IV" (PDF Version))
Thanks so much!
On the notes "Graphs PART III" - Page 19 of the PDF file - the example
doesn't match the code example given (bellman_ford.c) I ran the program
and after the first iteration (i = 1) the value for D was: 0,6,4,2,7
But in the example (pdf notes), when i = 1, two nodes are still set to INF.
Which way is correct?
Also, regarding difference constraints, I copied down in class (as well as
another friend) the arrows pointing in the opposite direction compared to
the web notes? Is the web notes correct or do the arrows go the other way
for difference constraints? (Eg. Pg 12 on "Graphs PART IV" (PDF Version))
Thanks so much!