{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

CS223-0327-Bellman

# CS223-0327-Bellman - The Bellman-Ford Shortest Path...

This preview shows pages 1–5. Sign up to view the full content.

CS223 Advanced Data Structures and Algorithms 1 The Bellman-Ford Shortest Path Algorithm The Bellman-Ford Shortest Path Algorithm Neil Tang Neil Tang 03/27/2008 03/27/2008

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
CS223 Advanced Data Structures and Algorithms 2 Class Overview Class Overview The shortest path problem Differences The Bellman-Ford algorithm Time complexity
CS223 Advanced Data Structures and Algorithms 3 Shortest Path Problem Shortest Path Problem Weighted path length (cost): The sum of the weights of all links on the path. The single-source shortest path problem: Given a weighted graph G and a source vertex s, find the shortest (minimum cost) path from s to every other vertex in G.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
CS223 Advanced Data Structures and Algorithms 4 Differences Differences Negative link cost: The Bellman-Ford algorithm works; Dijkstra’s algorithm doesn’t. Distributed Implementation: The Bellman-Ford algorithm can be easily implemented in a distributed way. Dijkstra’s algorithm cannot.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 9

CS223-0327-Bellman - The Bellman-Ford Shortest Path...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online