Please help to understand this hmwk
Posted: Fri Jul 01, 2022 5:51 am
Please help to understand this hmwk
Graph Algorithms Review Shortest Path 1. Run the Dijkstra's algorithm for the following graph starting from the node a. Clearly show all the steps. [10 Points] 2. a 3 3 5 5 1 b b 2 2 G Run the Bellman-Ford algorithm for the following graph starting from the node a. Clearly show all the steps. [10 Points] G 3 3 7 7 d d 2
3. Now, suppose you need to find the single destination shortest path to node d in the following graph. Use the Dijkstra's algorithm to find shortest paths from all vertices in the directed graph to a single destination vertex d. Clearly show all the steps. [10 Points] 3 5 b 2 G 3 7 d 2
Graph Algorithms Review Shortest Path 1. Run the Dijkstra's algorithm for the following graph starting from the node a. Clearly show all the steps. [10 Points] 2. a 3 3 5 5 1 b b 2 2 G Run the Bellman-Ford algorithm for the following graph starting from the node a. Clearly show all the steps. [10 Points] G 3 3 7 7 d d 2
3. Now, suppose you need to find the single destination shortest path to node d in the following graph. Use the Dijkstra's algorithm to find shortest paths from all vertices in the directed graph to a single destination vertex d. Clearly show all the steps. [10 Points] 3 5 b 2 G 3 7 d 2