This preview shows page 1. Sign up to view the full content.
Unformatted text preview: It wouldn't make sense to apply Bellman-Ford to an undirected graph with a negative edge weight, since any walk could be shortened by passing up and down that edge as often as desired. 24. (a) [BB] Dijkstra incorrectly determines that the length of a shortest path to V2 is 1. Dijkstra does not always work when applied to digraphs which have arcs of negative weight. (b) [BB] No shortest path algorithm will work. There is a negative weight cycle, hence no shortest dis-tance to V2, for example. 25. (a) Because of the negative weight arcs, Dijkstra's algorithm does not find the correct shortest dis-tances to C, D, E, and F, these being 3, 4, 4 and 1, respectively. (b) Bellman-Ford would work just fine, however, because there are no negative weight cycles....
View Full Document
This note was uploaded on 11/08/2010 for the course MATH discrete m taught by Professor Any during the Summer '10 term at FSU.
- Summer '10
- Graph Theory