7 The network below shows a system of one-way roads. The number on each edge represents the number of bags for recycling that can be collected by driving along that road.
A collector is to drive from \(A\) to \(I\).
\includegraphics[max width=\textwidth, alt={}, center]{c18db720-6fe8-4e6c-bd0c-dc51cc341b47-144_867_1644_552_191}
- Working backwards from \(\boldsymbol { I }\), use dynamic programming to find the maximum number of bags that can be collected when driving from \(A\) to \(I\).
You must complete the table opposite as your solution.
- State the route that the collector should take in order to collect the maximum number of bags.
| Stage | State | From | Value |
| 1 | G | I | |
| H | I | |
| | | |
| 2 | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |