OCR D2 — Question 4 10 marks

Exam BoardOCR
ModuleD2 (Decision Mathematics 2)
Marks10
PaperDownload PDF ↗
Mark schemeDownload PDF ↗
TopicDynamic Programming
TypeDynamic programming shortest/longest path
DifficultyModerate -0.8 This is a straightforward application of the standard dynamic programming algorithm for shortest path problems, which is a core D2 topic. The network structure is clearly defined with four stages, requiring systematic backward/forward pass calculations but no problem-solving insight or tricky decision-making—purely algorithmic execution of a well-practiced technique.
Spec7.03a Algorithm definition: input, output, deterministic, finite7.03b Algorithm awareness: uses and practical limitations7.03c Working with algorithms: trace, interpret, adapt

4. A rally consisting of four stages is being planned. The first stage will begin at \(A\) and the last stage will end at \(L\). Various routes are being considered, with the end of one stage being the start of the next. The organisers want the total length of the route chosen to be as small as possible. The table below shows the length, in miles, of each of the possible stages.
\multirow{2}{*}{}Finishing point
BCDE\(F\)G\(H\)\(I\)\(J\)\(K\)\(L\)
\multirow{11}{*}{Starting point}A54.51310
B8114
C510.5
D96
E12715
\(F\)522
G893
\(H\)1029
I5
J6
K10
Use dynamic programming to find the route which satisfies the wish of the organisers.

Question 4:
AnswerMarks Guidance
Answer/WorkingMark Guidance
Stage 1: \(IL\to L=5^*\), \(JL\to L=6^*\), \(KL\to L=10^*\)M1
Stage 2: \(FI\to I=5+5=10\), \(FJ\to J=2+6=8^*\), \(FK\to K=2+10=12\); \(GI=8+5=13^*\), \(GJ=9+6=15\), \(GK=3+10=13^*\); \(HI=10+5=15\), \(HJ=2+6=8^*\), \(HK=9+10=19\)M1 A2
Stage 3: \(BF=8+8=16\), \(BG=11+13=24\), \(BH=4+8=12^*\); \(CF=5+8=13^*\), \(CH=10.5+8=18.5\); \(DF=9+8=17\), \(DH=6+8=14^*\); \(EF=12+8=20^*\), \(EG=7+13=20^*\), \(EH=15+8=23\)M1 A2
Stage 4: \(AB=5+12=17^*\), \(AC=4.5+13=17.5\), \(AD=13+14=27\), \(AE=10+20=30\)M1 A1
Giving route \(ABHJL\)A1 (10)
# Question 4:

| Answer/Working | Mark | Guidance |
|---|---|---|
| Stage 1: $IL\to L=5^*$, $JL\to L=6^*$, $KL\to L=10^*$ | M1 | |
| Stage 2: $FI\to I=5+5=10$, $FJ\to J=2+6=8^*$, $FK\to K=2+10=12$; $GI=8+5=13^*$, $GJ=9+6=15$, $GK=3+10=13^*$; $HI=10+5=15$, $HJ=2+6=8^*$, $HK=9+10=19$ | M1 A2 | |
| Stage 3: $BF=8+8=16$, $BG=11+13=24$, $BH=4+8=12^*$; $CF=5+8=13^*$, $CH=10.5+8=18.5$; $DF=9+8=17$, $DH=6+8=14^*$; $EF=12+8=20^*$, $EG=7+13=20^*$, $EH=15+8=23$ | M1 A2 | |
| Stage 4: $AB=5+12=17^*$, $AC=4.5+13=17.5$, $AD=13+14=27$, $AE=10+20=30$ | M1 A1 | |
| Giving route $ABHJL$ | A1 | **(10)** |

---
4. A rally consisting of four stages is being planned. The first stage will begin at $A$ and the last stage will end at $L$. Various routes are being considered, with the end of one stage being the start of the next. The organisers want the total length of the route chosen to be as small as possible. The table below shows the length, in miles, of each of the possible stages.

\begin{center}
\begin{tabular}{|l|l|l|l|l|l|l|l|l|l|l|l|l|}
\hline
\multicolumn{2}{|c|}{\multirow{2}{*}{}} & \multicolumn{11}{|c|}{Finishing point} \\
\hline
 &  & B & C & D & E & $F$ & G & $H$ & $I$ & $J$ & $K$ & $L$ \\
\hline
\multirow{11}{*}{Starting point} & A & 5 & 4.5 & 13 & 10 &  &  &  &  &  &  &  \\
\hline
 & B &  &  &  &  & 8 & 11 & 4 &  &  &  &  \\
\hline
 & C &  &  &  &  & 5 &  & 10.5 &  &  &  &  \\
\hline
 & D &  &  &  &  & 9 &  & 6 &  &  &  &  \\
\hline
 & E &  &  &  &  & 12 & 7 & 15 &  &  &  &  \\
\hline
 & $F$ &  &  &  &  &  &  &  & 5 & 2 & 2 &  \\
\hline
 & G &  &  &  &  &  &  &  & 8 & 9 & 3 &  \\
\hline
 & $H$ &  &  &  &  &  &  &  & 10 & 2 & 9 &  \\
\hline
 & I &  &  &  &  &  &  &  &  &  &  & 5 \\
\hline
 & J &  &  &  &  &  &  &  &  &  &  & 6 \\
\hline
 & K &  &  &  &  &  &  &  &  &  &  & 10 \\
\hline
\end{tabular}
\end{center}

Use dynamic programming to find the route which satisfies the wish of the organisers.

\hfill \mbox{\textit{OCR D2  Q4 [10]}}