Edexcel FD1 2022 June — Question 3 10 marks

Exam BoardEdexcel
ModuleFD1 (Further Decision 1)
Year2022
SessionJune
Marks10
PaperDownload PDF ↗
Mark schemeDownload PDF ↗
TopicShortest Path
TypeFloyd's algorithm application
DifficultyModerate -0.5 This is a standard Floyd's algorithm question requiring mechanical application of the iterative procedure to update a distance matrix. While it involves multiple steps and careful arithmetic, it requires no problem-solving insight—students simply apply the learned algorithm systematically, making it easier than average for A-level but typical for Further Maths Decision module questions.
Spec7.04a Shortest path: Dijkstra's algorithm

3. The initial distance matrix (Table 1) shows the lengths, in metres, of the corridors connecting six classrooms, A, B, C, D, E and F, in a school. For safety reasons, some of the corridors are one-way only. \begin{table}[h]
ABCDEF
A-1232242911
B12-178\(\infty\)\(\infty\)
C3217-412\(\infty\)
D24\(\infty\)4-\(\infty\)13
E\(\infty\)\(\infty\)1218-12
F11\(\infty\)\(\infty\)1312-
\captionsetup{labelformat=empty} \caption{Table 1}
\end{table}
  1. By adding the arcs from vertex A, along with their weights, complete the drawing of this network on Diagram 1 in the answer book. Floyd's algorithm is to be used to find the complete network of shortest distances between the six classrooms. The distance matrix after two iterations of Floyd's algorithm is shown in Table 2. \begin{table}[h]
    ABCDEF
    A-1229202911
    B12-1784123
    C2917-41240
    D24364-5313
    E\(\infty\)\(\infty\)1218-12
    F1123401312-
    \captionsetup{labelformat=empty} \caption{Table 2}
    \end{table}
  2. Perform the next two iterations of Floyd's algorithm that follow from Table 2. You should show the distance matrix after each iteration. The final distance matrix after completion of Floyd's algorithm is shown in Table 3.
    ABCDEF
    A-1224202311
    B12-1282421
    C2817-41217
    D24214-1613
    E23291216-12
    F1123171312-
    \section*{Table 3} Yinka must visit each classroom. He will start and finish at E and wishes to minimise the total distance travelled.
    1. Use the nearest neighbour algorithm, starting at E, to find two Hamiltonian cycles in the completed network of shortest distances.
    2. Find the length of each of the two cycles.
    3. State, with a reason, which of the two cycles provides the better upper bound for the length of Yinka's route.

Question 3:
Part (a)
AnswerMarks Guidance
Answer/WorkingMark Guidance
Correct five arcs from A drawnM1 1.1b
cao no additional arcs or arrows, correct weights and arc AE directed from A to EA1 1.1b
Part (b)
AnswerMarks Guidance
Answer/WorkingMark Guidance
Third iteration — no change in third row and third column with at least two values reduced correctlyM1 1.1b
Third iteration fully correctA1 1.1b
Fourth iteration — no change in fourth row and fourth column with at least two values correctly reduced following from previous iterationM1 1.1b
Both iterations correct (cso — no follow through from incorrect third iteration)A1 1.1b
Third iteration matrix (bold = changed):
AnswerMarks
\(\begin{array}{ccccccc} & A & B & C & D & E & F \\ \hline A & - & 12 & 29 & 20 & 29 & 11 \\ B & 12 & - & 17 & 8 & \mathbf{29} & 23 \\ C & 29 & 17 & - & 4 & 12 & 40 \\ D & 24 & \mathbf{21} & 4 & - & \mathbf{16} & 13 \\ E & \mathbf{41} & \mathbf{29} & 12 & \mathbf{16} & - & 12 \\ F & 11 & 23 & 40 & 13 & 12 & - \end{array}\)
Fourth iteration matrix (bold = changed):
AnswerMarks
\(\begin{array}{ccccccc} & A & B & C & D & E & F \\ \hline A & - & 12 & \mathbf{24} & 20 & 29 & 11 \\ B & 12 & - & \mathbf{12} & 8 & \mathbf{24} & \mathbf{21} \\ C & \mathbf{28} & 17 & - & 4 & 12 & \mathbf{17} \\ D & 24 & 21 & 4 & - & 16 & 13 \\ E & \mathbf{40} & 29 & 12 & 16 & - & 12 \\ F & 11 & 23 & \mathbf{17} & 13 & 12 & - \end{array}\)
Part (c)
AnswerMarks Guidance
Answer/WorkingMark Guidance
Either cycle correct (must include returning to E), nodes in correct orderM1 3.4
\(E - C - D - F - A - B - E\), Length \(= 76\)A1 1.1b
\(E - F - A - B - D - C - E\), Length \(= 59\)A1 1.1b
The cycle that begins \(E - F - \ldots\) is the better upper bound as the value is the smaller of the twoA1 2.4
## Question 3:

### Part (a)

| Answer/Working | Mark | Guidance |
|---|---|---|
| Correct five arcs from A drawn | M1 | 1.1b |
| cao no additional arcs or arrows, correct weights and arc AE directed from A to E | A1 | 1.1b |

### Part (b)

| Answer/Working | Mark | Guidance |
|---|---|---|
| Third iteration — no change in third row and third column with at least two values reduced correctly | M1 | 1.1b |
| Third iteration fully correct | A1 | 1.1b |
| Fourth iteration — no change in fourth row and fourth column with at least two values correctly reduced following from previous iteration | M1 | 1.1b |
| Both iterations correct (cso — no follow through from incorrect third iteration) | A1 | 1.1b |

**Third iteration matrix (bold = changed):**

$\begin{array}{c|cccccc} & A & B & C & D & E & F \\ \hline A & - & 12 & 29 & 20 & 29 & 11 \\ B & 12 & - & 17 & 8 & \mathbf{29} & 23 \\ C & 29 & 17 & - & 4 & 12 & 40 \\ D & 24 & \mathbf{21} & 4 & - & \mathbf{16} & 13 \\ E & \mathbf{41} & \mathbf{29} & 12 & \mathbf{16} & - & 12 \\ F & 11 & 23 & 40 & 13 & 12 & - \end{array}$

**Fourth iteration matrix (bold = changed):**

$\begin{array}{c|cccccc} & A & B & C & D & E & F \\ \hline A & - & 12 & \mathbf{24} & 20 & 29 & 11 \\ B & 12 & - & \mathbf{12} & 8 & \mathbf{24} & \mathbf{21} \\ C & \mathbf{28} & 17 & - & 4 & 12 & \mathbf{17} \\ D & 24 & 21 & 4 & - & 16 & 13 \\ E & \mathbf{40} & 29 & 12 & 16 & - & 12 \\ F & 11 & 23 & \mathbf{17} & 13 & 12 & - \end{array}$

### Part (c)

| Answer/Working | Mark | Guidance |
|---|---|---|
| Either cycle correct (must include returning to E), nodes in correct order | M1 | 3.4 |
| $E - C - D - F - A - B - E$, Length $= 76$ | A1 | 1.1b |
| $E - F - A - B - D - C - E$, Length $= 59$ | A1 | 1.1b |
| The cycle that begins $E - F - \ldots$ is the better upper bound as the value is the smaller of the two | A1 | 2.4 |

---
3. The initial distance matrix (Table 1) shows the lengths, in metres, of the corridors connecting six classrooms, A, B, C, D, E and F, in a school. For safety reasons, some of the corridors are one-way only.

\begin{table}[h]
\begin{center}
\begin{tabular}{|l|l|l|l|l|l|l|}
\hline
 & A & B & C & D & E & F \\
\hline
A & - & 12 & 32 & 24 & 29 & 11 \\
\hline
B & 12 & - & 17 & 8 & $\infty$ & $\infty$ \\
\hline
C & 32 & 17 & - & 4 & 12 & $\infty$ \\
\hline
D & 24 & $\infty$ & 4 & - & $\infty$ & 13 \\
\hline
E & $\infty$ & $\infty$ & 12 & 18 & - & 12 \\
\hline
F & 11 & $\infty$ & $\infty$ & 13 & 12 & - \\
\hline
\end{tabular}
\captionsetup{labelformat=empty}
\caption{Table 1}
\end{center}
\end{table}
\begin{enumerate}[label=(\alph*)]
\item By adding the arcs from vertex A, along with their weights, complete the drawing of this network on Diagram 1 in the answer book.

Floyd's algorithm is to be used to find the complete network of shortest distances between the six classrooms.

The distance matrix after two iterations of Floyd's algorithm is shown in Table 2.

\begin{table}[h]
\begin{center}
\begin{tabular}{|l|l|l|l|l|l|l|}
\hline
 & A & B & C & D & E & F \\
\hline
A & - & 12 & 29 & 20 & 29 & 11 \\
\hline
B & 12 & - & 17 & 8 & 41 & 23 \\
\hline
C & 29 & 17 & - & 4 & 12 & 40 \\
\hline
D & 24 & 36 & 4 & - & 53 & 13 \\
\hline
E & $\infty$ & $\infty$ & 12 & 18 & - & 12 \\
\hline
F & 11 & 23 & 40 & 13 & 12 & - \\
\hline
\end{tabular}
\captionsetup{labelformat=empty}
\caption{Table 2}
\end{center}
\end{table}
\item Perform the next two iterations of Floyd's algorithm that follow from Table 2. You should show the distance matrix after each iteration.

The final distance matrix after completion of Floyd's algorithm is shown in Table 3.

\begin{center}
\begin{tabular}{|l|l|l|l|l|l|l|}
\hline
 & A & B & C & D & E & F \\
\hline
A & - & 12 & 24 & 20 & 23 & 11 \\
\hline
B & 12 & - & 12 & 8 & 24 & 21 \\
\hline
C & 28 & 17 & - & 4 & 12 & 17 \\
\hline
D & 24 & 21 & 4 & - & 16 & 13 \\
\hline
E & 23 & 29 & 12 & 16 & - & 12 \\
\hline
F & 11 & 23 & 17 & 13 & 12 & - \\
\hline
\end{tabular}
\end{center}

\section*{Table 3}
Yinka must visit each classroom. He will start and finish at E and wishes to minimise the total distance travelled.
\item \begin{enumerate}[label=(\roman*)]
\item Use the nearest neighbour algorithm, starting at E, to find two Hamiltonian cycles in the completed network of shortest distances.
\item Find the length of each of the two cycles.
\item State, with a reason, which of the two cycles provides the better upper bound for the length of Yinka's route.
\end{enumerate}\end{enumerate}

\hfill \mbox{\textit{Edexcel FD1 2022 Q3 [10]}}