Here are the adjacency lists (with edge weights in parentheses) for a directed graph:
A: B(4), F(2) B: A(1), C(3), D(4) C: A(6), B(3), D(7) D: A(6), E(2) E: D(5) F: D(2), E(3)
(a) This directed graph has three shortest paths from C to E. Find them (list the sequence of vertices in each path).
(b) Which of these paths is the one that would be found by Dijkstra's shortest-path algorithm? (give a convincing explanation or show the main steps of the algorithm).
Suppose that you want to count the number of distinct shortest paths from s to u for every u in V. Indicate how you would modify the shortest path algorithms
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 1 | 2 | 3 | 4 | 5 |