Edexcel FD1 2021 June — Question 3 8 marks

Exam BoardEdexcel
ModuleFD1 (Further Decision 1)
Year2021
SessionJune
Marks8
PaperDownload PDF ↗
Mark schemeDownload PDF ↗
TopicTravelling Salesman
TypeApply Prim's Algorithm
DifficultyModerate -0.5 This is a standard algorithmic application question from Further Maths Decision module requiring mechanical execution of Prim's algorithm and nearest neighbour algorithm on given tables. While it involves multiple parts and careful bookkeeping with 8-9 vertices, these are well-practiced algorithms with no conceptual difficulty or problem-solving insight required—just methodical application of learned procedures.
Spec7.04b Minimum spanning tree: Prim's and Kruskal's algorithms

3. \begin{table}[h]
\cline { 2 - 9 } \multicolumn{1}{c|}{}ABCDEFGH
A-24424834373222
B24-403530413944
C4240-2126453836
D483521-32372927
E34302632-344028
F3741453734-4341
G323938294043-38
H22443627284138-
\captionsetup{labelformat=empty} \caption{Table 1}
\end{table} Table 1 shows the shortest distances, in miles, between eight towns, A, B, C, D, E, F, G and H.
  1. Use Prim's algorithm, starting at A , to find the minimum spanning tree for this table of distances. You must clearly state the order in which you select the edges of your tree.
  2. State the weight of the minimum spanning tree. \begin{table}[h]
    \cline { 2 - 9 } \multicolumn{1}{c|}{}\(\mathbf { A }\)\(\mathbf { B }\)\(\mathbf { C }\)\(\mathbf { D }\)\(\mathbf { E }\)\(\mathbf { F }\)\(\mathbf { G }\)\(\mathbf { H }\)
    \(\mathbf { J }\)3127502943254935
    \captionsetup{labelformat=empty} \caption{Table 2}
    \end{table} Table 2 shows the distances, in miles, between town J and towns A , B , \(\mathrm { C } , \mathrm { D } , \mathrm { E } , \mathrm { F } , \mathrm { G }\) and H .
    Pranav needs to visit all of the towns, starting and finishing at J, and wishes to minimise the total distance he travels.
  3. Starting at J, use the nearest neighbour algorithm to obtain an upper bound for the length of Pranav's route. You must state your route and its length.
  4. Starting by deleting J, and all of its edges, find a lower bound for the length of Pranav's route.

Question 3:
(a)
AnswerMarks Guidance
Answer/WorkingMark Guidance
Prim's starting at A: AH, AB, DH; CD, CE; DG, EFM1 First three arcs correctly chosen in order {AH, AB, DH,...} or first four nodes correctly chosen in order {A, H, B, D,...}. If any rejections seen, M1 (max) only
First five arcs correctly chosen in order {AH, AB, DH, CD, CE,...} or all eight nodes {A, H, B, D, C, E, G, F}A1 Accept \(\{1, 3, 5, 4, 6, 8, 7, 2\}\) for nodes
cso – all arcs correct stated and chosen in correct orderA1 Candidates must be considering arcs for this final mark
(b)
AnswerMarks Guidance
Answer/WorkingMark Guidance
Weight of MST is 183 (miles)B1 cao
(c)
AnswerMarks Guidance
Answer/WorkingMark Guidance
NNA: \(J-F-E-C-D-H-A-B-G-J\)B1 cao (for route – must return to J)
Upper bound is 267 (miles)B1 cao
(d)
AnswerMarks Guidance
Answer/WorkingMark Guidance
\(183 + 27 + 25 = \ldots\)M1 Their answer to (b) \(+ 27 + 25\) (the two smallest arcs incident to J)
\(\ldots = 235\) (miles)A1 cao
# Question 3:

**(a)**

| Answer/Working | Mark | Guidance |
|---|---|---|
| Prim's starting at A: AH, AB, DH; CD, CE; DG, EF | M1 | First three arcs correctly chosen in order {AH, AB, DH,...} or first four nodes correctly chosen in order {A, H, B, D,...}. If any rejections seen, M1 (max) only |
| First five arcs correctly chosen in order {AH, AB, DH, CD, CE,...} or all eight nodes {A, H, B, D, C, E, G, F} | A1 | Accept $\{1, 3, 5, 4, 6, 8, 7, 2\}$ for nodes |
| cso – all arcs correct stated and chosen in correct order | A1 | Candidates must be considering arcs for this final mark |

**(b)**

| Answer/Working | Mark | Guidance |
|---|---|---|
| Weight of MST is 183 (miles) | B1 | cao |

**(c)**

| Answer/Working | Mark | Guidance |
|---|---|---|
| NNA: $J-F-E-C-D-H-A-B-G-J$ | B1 | cao (for route – must return to J) |
| Upper bound is 267 (miles) | B1 | cao |

**(d)**

| Answer/Working | Mark | Guidance |
|---|---|---|
| $183 + 27 + 25 = \ldots$ | M1 | Their answer to (b) $+ 27 + 25$ (the two smallest arcs incident to J) |
| $\ldots = 235$ (miles) | A1 | cao |

---
3.

\begin{table}[h]
\begin{center}
\begin{tabular}{ | c | c | c | c | c | c | c | c | c | }
\cline { 2 - 9 }
\multicolumn{1}{c|}{} & A & B & C & D & E & F & G & H \\
\hline
A & - & 24 & 42 & 48 & 34 & 37 & 32 & 22 \\
\hline
B & 24 & - & 40 & 35 & 30 & 41 & 39 & 44 \\
\hline
C & 42 & 40 & - & 21 & 26 & 45 & 38 & 36 \\
\hline
D & 48 & 35 & 21 & - & 32 & 37 & 29 & 27 \\
\hline
E & 34 & 30 & 26 & 32 & - & 34 & 40 & 28 \\
\hline
F & 37 & 41 & 45 & 37 & 34 & - & 43 & 41 \\
\hline
G & 32 & 39 & 38 & 29 & 40 & 43 & - & 38 \\
\hline
H & 22 & 44 & 36 & 27 & 28 & 41 & 38 & - \\
\hline
\end{tabular}
\captionsetup{labelformat=empty}
\caption{Table 1}
\end{center}
\end{table}

Table 1 shows the shortest distances, in miles, between eight towns, A, B, C, D, E, F, G and H.
\begin{enumerate}[label=(\alph*)]
\item Use Prim's algorithm, starting at A , to find the minimum spanning tree for this table of distances. You must clearly state the order in which you select the edges of your tree.
\item State the weight of the minimum spanning tree.

\begin{table}[h]
\begin{center}
\begin{tabular}{ | c | c | c | c | c | c | c | c | c | }
\cline { 2 - 9 }
\multicolumn{1}{c|}{} & $\mathbf { A }$ & $\mathbf { B }$ & $\mathbf { C }$ & $\mathbf { D }$ & $\mathbf { E }$ & $\mathbf { F }$ & $\mathbf { G }$ & $\mathbf { H }$ \\
\hline
$\mathbf { J }$ & 31 & 27 & 50 & 29 & 43 & 25 & 49 & 35 \\
\hline
\end{tabular}
\captionsetup{labelformat=empty}
\caption{Table 2}
\end{center}
\end{table}

Table 2 shows the distances, in miles, between town J and towns A , B , $\mathrm { C } , \mathrm { D } , \mathrm { E } , \mathrm { F } , \mathrm { G }$ and H .\\
Pranav needs to visit all of the towns, starting and finishing at J, and wishes to minimise the total distance he travels.
\item Starting at J, use the nearest neighbour algorithm to obtain an upper bound for the length of Pranav's route. You must state your route and its length.
\item Starting by deleting J, and all of its edges, find a lower bound for the length of Pranav's route.
\end{enumerate}

\hfill \mbox{\textit{Edexcel FD1 2021 Q3 [8]}}