Edexcel D1 2016 June — Question 4 12 marks

Exam BoardEdexcel
ModuleD1 (Decision Mathematics 1)
Year2016
SessionJune
Marks12
PaperDownload PDF ↗
Mark schemeDownload PDF ↗
TopicShortest Path
TypeDijkstra with route via intermediate vertex
DifficultyModerate -0.8 This is a standard D1 question testing routine application of Dijkstra's algorithm and Prim's algorithm with no novel problem-solving required. Part (b) requires running Dijkstra twice (A to J, then J to F) which is straightforward. These are textbook algorithms applied mechanically, making this easier than average A-level maths questions which typically require more mathematical insight.
Spec7.04a Shortest path: Dijkstra's algorithm7.04b Minimum spanning tree: Prim's and Kruskal's algorithms7.04c Travelling salesman upper bound: nearest neighbour method

4. \begin{figure}[h]
\includegraphics[alt={},max width=\textwidth]{22ff916a-4ba8-4e0c-9c53-e82b0aff0b98-05_841_1201_226_431} \captionsetup{labelformat=empty} \caption{Figure 3}
\end{figure} Figure 3 represents a network of tram tracks. The number on each edge represents the length, in miles, of the corresponding track. One day, Sarah wishes to travel from A to F. She wishes to minimise the distance she travels.
  1. Use Dijkstra's algorithm to find the shortest path from A to F . State your path and its length. On another day, Sarah wishes to travel from A to F via J.
  2. Find a route of minimal length that goes from A to F via J and state its length.
  3. Use Prim's algorithm, starting at G , to find the minimum spanning tree for the network. You must clearly state the order in which you select the edges of your tree.
  4. State the length, in miles, of the minimum spanning tree.

Question 4:
Part (a):
AnswerMarks Guidance
Answer/WorkingMarks Guidance
A larger value replaced by smaller value at least once in working values at D, F or GM1
All values at A, B, E, C, K correctA1 Condone lack of 0 in A's working value; check for 5 in working values at B
All values at D, J, H correct with working values in correct orderA1 D, J, H must be labelled in that order; D labelled after A, B, E, C, K
All values at G and F correct, working values in correct order (follow through)A1ft G and F labelled in that order; G labelled after all other nodes excluding F
Shortest path: \(A-B-E-K-H-G-F\)A1 CAO (path from A to F or F to A)
Length of shortest path: 48 (miles)A1ft Follow through their final value at F
Part (b):
AnswerMarks Guidance
Answer/WorkingMarks Guidance
Shortest path via J: \(A-B-E-K-J-F\)B1 CAO
Length: 49 (miles)B1 CAO
Part (c):
AnswerMarks Guidance
Answer/WorkingMarks Guidance
Prim's algorithm: first four arcs correctly chosen in order: GF, GH, FJ, DGM1 If any explicit rejections seen, M1 max only
First seven arcs correctly chosen in order: GF, GH, FJ, DG, JK, EK, BE or GF, GH, FJ, DG, CD, JK, EKA1
All arcs correctly stated and chosen in correct order: GF, GH, FJ, DG, JK, EK, BE, AB, CD or GF, GH, FJ, DG, CD, JK, EK, BE, ABA1 CSO Must be considering arcs; do not accept list of nodes only
Part (d):
AnswerMarks Guidance
Answer/WorkingMarks Guidance
80 (miles)B1 CAO; condone lack of units
# Question 4:

## Part (a):

| Answer/Working | Marks | Guidance |
|---|---|---|
| A larger value replaced by smaller value at least once in working values at D, F or G | M1 | |
| All values at A, B, E, C, K correct | A1 | Condone lack of 0 in A's working value; check for 5 in working values at B |
| All values at D, J, H correct with working values in correct order | A1 | D, J, H must be labelled in that order; D labelled after A, B, E, C, K |
| All values at G and F correct, working values in correct order (follow through) | A1ft | G and F labelled in that order; G labelled after all other nodes excluding F |
| Shortest path: $A-B-E-K-H-G-F$ | A1 | CAO (path from A to F or F to A) |
| Length of shortest path: 48 (miles) | A1ft | Follow through their final value at F |

## Part (b):

| Answer/Working | Marks | Guidance |
|---|---|---|
| Shortest path via J: $A-B-E-K-J-F$ | B1 | CAO |
| Length: 49 (miles) | B1 | CAO |

## Part (c):

| Answer/Working | Marks | Guidance |
|---|---|---|
| Prim's algorithm: first four arcs correctly chosen in order: GF, GH, FJ, DG | M1 | If any explicit rejections seen, M1 max only |
| First seven arcs correctly chosen in order: GF, GH, FJ, DG, JK, EK, BE **or** GF, GH, FJ, DG, CD, JK, EK | A1 | |
| All arcs correctly stated and chosen in correct order: GF, GH, FJ, DG, JK, EK, BE, AB, CD **or** GF, GH, FJ, DG, CD, JK, EK, BE, AB | A1 CSO | Must be considering arcs; do not accept list of nodes only |

## Part (d):

| Answer/Working | Marks | Guidance |
|---|---|---|
| 80 (miles) | B1 | CAO; condone lack of units |
4.

\begin{figure}[h]
\begin{center}
  \includegraphics[alt={},max width=\textwidth]{22ff916a-4ba8-4e0c-9c53-e82b0aff0b98-05_841_1201_226_431}
\captionsetup{labelformat=empty}
\caption{Figure 3}
\end{center}
\end{figure}

Figure 3 represents a network of tram tracks. The number on each edge represents the length, in miles, of the corresponding track. One day, Sarah wishes to travel from A to F. She wishes to minimise the distance she travels.
\begin{enumerate}[label=(\alph*)]
\item Use Dijkstra's algorithm to find the shortest path from A to F . State your path and its length.

On another day, Sarah wishes to travel from A to F via J.
\item Find a route of minimal length that goes from A to F via J and state its length.
\item Use Prim's algorithm, starting at G , to find the minimum spanning tree for the network. You must clearly state the order in which you select the edges of your tree.
\item State the length, in miles, of the minimum spanning tree.
\end{enumerate}

\hfill \mbox{\textit{Edexcel D1 2016 Q4 [12]}}