OCR D2 — Question 1

Exam BoardOCR
ModuleD2 (Decision Mathematics 2)
TopicDynamic Programming

1. \begin{figure}[h]
\includegraphics[alt={},max width=\textwidth]{89e3545e-fa4b-47dd-8651-7c8f998df9e7-1_762_1475_205_239} \captionsetup{labelformat=empty} \caption{Fig. 1}
\end{figure} A salesman is planning a four-day trip beginning at his home and ending at town \(I\). He will spend the first night in town \(A , B\) or \(C\), the second night in town \(D , E\) or \(F\) and the third night in town \(G\) or \(H\). The network in Figure 1 shows the distances, in tens of miles, that he will drive each day according to the route he chooses. Use dynamic programming to find the shortest route the salesman can take and state the distance he will drive in total using this route.