5 A rapid transport system connects 8 stations using three railway lines.
The blue line connects A to B to C to D .
| From | to | Travel time |
| A | B | 5 |
| B | C | 3 |
| C | D | 9 |
The red line connects \(B\) to \(F\) to \(E\) to \(D\).
| From | to | Travel time |
| B | F | 2 |
| F | E | 3 |
| E | D | 2 |
The green line connects E to G to H to A .
| From | to | Travel time |
| E | G | 5 |
| G | H | 6 |
| H | A | 4 |
- The travel times for the return journeys are the same as for the outward journeys (so, for example, the travel time from B to A is 5 minutes, the same as the time from A to B ).
- All travel times include time spent stopped at stations.
- No trains are delayed so the travel times are all correct.
- (i) Model the blue, red and green lines, and the travel times above, as a network.
(ii) Use Dijkstra's algorithm to find the quickest travel times from C to each of the other stations. - Write down a route from A to D with travel time 12 minutes.
- Construct a table of quickest travel times.
- Give a reason why the quickest journey from A to D may take longer than 12 minutes.