OCR D2 — Question 3 8 marks

Exam BoardOCR
ModuleD2 (Decision Mathematics 2)
Marks8
PaperDownload PDF ↗
Mark schemeDownload PDF ↗
TopicDynamic Programming
TypeDynamic programming shortest/longest path
DifficultyModerate -0.3 This is a straightforward application of dynamic programming to find the shortest path through a staged network with three intermediate stages. The problem is well-structured with clear stages (B/C/D, E/F/G/H, I/J/K) and requires only systematic backward induction—a standard algorithmic procedure taught in D2. While it requires careful bookkeeping across 8 marks, it involves no conceptual difficulty or novel insight, making it slightly easier than average.
Spec7.04a Shortest path: Dijkstra's algorithm

Arthur is planning a bus journey from town \(A\) to town \(L\). There are various routes he can take but he will have to change buses three times -- at \(B\), \(C\) or \(D\), at \(E\), \(F\), \(G\) or \(H\) and at \(I\), \(J\) or \(K\). \includegraphics{figure_2} Fig. 2 Figure 2 shows the bus routes that Arthur can use. The number on each arc shows the average waiting time, in minutes, for a bus to come on that route. As the forecast is for rain, Arthur wishes to plan his journey so that the total waiting time is as small as possible. Use dynamic programming to find the route that Arthur should use. [8 marks]

AnswerMarks
Stage-state approach table with optimal values and route ADGILM1 A2
Route ADGIL with value 68A1
| Stage-state approach table with optimal values and route ADGIL | M1 A2 | |
| Route ADGIL with value 68 | A1 | |
Arthur is planning a bus journey from town $A$ to town $L$. There are various routes he can take but he will have to change buses three times -- at $B$, $C$ or $D$, at $E$, $F$, $G$ or $H$ and at $I$, $J$ or $K$.

\includegraphics{figure_2}

Fig. 2

Figure 2 shows the bus routes that Arthur can use. The number on each arc shows the average waiting time, in minutes, for a bus to come on that route. As the forecast is for rain, Arthur wishes to plan his journey so that the total waiting time is as small as possible.

Use dynamic programming to find the route that Arthur should use. [8 marks]

\hfill \mbox{\textit{OCR D2  Q3 [8]}}