Edexcel D1 2010 January — Question 2 9 marks

Exam BoardEdexcel
ModuleD1 (Decision Mathematics 1)
Year2010
SessionJanuary
Marks9
PaperDownload PDF ↗
Mark schemeDownload PDF ↗
TopicMinimum Spanning Trees
TypeDefine tree terminology
DifficultyEasy -1.8 This is a straightforward recall and routine application question from Decision Maths. Part (a) asks for textbook definitions of basic graph theory terms, part (b) requires naming Kruskal's algorithm, and part (c) is a standard Prim's algorithm application with clear tabular data. No problem-solving insight or novel reasoning is required—purely procedural execution of a learned algorithm.
Spec7.04b Minimum spanning tree: Prim's and Kruskal's algorithms

2. Prim's algorithm finds a minimum spanning tree for a connected graph.
  1. Explain the terms
    1. connected graph,
    2. tree,
    3. spanning tree.
  2. Name an alternative algorithm for finding a minimum spanning tree. \begin{table}[h]
    CambridgeLondonNorwichOxfordPortsmouthSalisburyYork
    Cambridge (C)-606281132139156
    London (L)60-116567488211
    Norwich (N)62116-144204201181
    Oxford (O)8156144-8463184
    Portsmouth (P)1327420484-43269
    Salisbury (S)139882016343-248
    York (Y)156211181184269248-
    \captionsetup{labelformat=empty} \caption{Figure 2}
    \end{table} Figure 2 shows the distances by road, in miles, between seven cities.
    1. Use Prim's algorithm, starting at London, to find the minimum spanning tree for these cities. You must clearly state the order in which you selected the edges of your tree, and the weight of the final tree.
    2. Draw your tree using the vertices given in Diagram 2 in the answer book.
      (5)

Question 2:
Part (a)
AnswerMarks
(i) All pairs of vertices connected by a path, but not describing complete graphB1
(ii) No cyclesB1
(iii) All nodes connected (accept definition of minimum spanning tree)B1
Part (b)
AnswerMarks
Kruskal's (algorithm)B1
Part (c)(i)
AnswerMarks Guidance
L-O 56, L-C 60, C-N 62, O-S 63, S-P 43, C-Y 156M1 Using Prim's: first 2 correct
Next 2 correctA1
Complete and correctA1
Total length 440 (miles)A1 = B1
Part (c)(ii)
AnswerMarks
Tree correct (Y-C-N, C-O-L, O-S-P structure)B1
# Question 2:

## Part (a)
| (i) All pairs of vertices connected by a path, but not describing complete graph | B1 | |
| (ii) No cycles | B1 | |
| (iii) All nodes connected (accept definition of minimum spanning tree) | B1 | |

## Part (b)
| Kruskal's (algorithm) | B1 | |

## Part (c)(i)
| L-O 56, L-C 60, C-N 62, O-S 63, S-P 43, C-Y 156 | M1 | Using Prim's: first 2 correct |
| Next 2 correct | A1 | |
| Complete and correct | A1 | |
| Total length 440 (miles) | A1 = B1 | |

## Part (c)(ii)
| Tree correct (Y-C-N, C-O-L, O-S-P structure) | B1 | |

---
2. Prim's algorithm finds a minimum spanning tree for a connected graph.
\begin{enumerate}[label=(\alph*)]
\item Explain the terms
\begin{enumerate}[label=(\roman*)]
\item connected graph,
\item tree,
\item spanning tree.
\end{enumerate}\item Name an alternative algorithm for finding a minimum spanning tree.

\begin{table}[h]
\begin{center}
\begin{tabular}{|l|l|l|l|l|l|l|l|}
\hline
 & Cambridge & London & Norwich & Oxford & Portsmouth & Salisbury & York \\
\hline
Cambridge (C) & - & 60 & 62 & 81 & 132 & 139 & 156 \\
\hline
London (L) & 60 & - & 116 & 56 & 74 & 88 & 211 \\
\hline
Norwich (N) & 62 & 116 & - & 144 & 204 & 201 & 181 \\
\hline
Oxford (O) & 81 & 56 & 144 & - & 84 & 63 & 184 \\
\hline
Portsmouth (P) & 132 & 74 & 204 & 84 & - & 43 & 269 \\
\hline
Salisbury (S) & 139 & 88 & 201 & 63 & 43 & - & 248 \\
\hline
York (Y) & 156 & 211 & 181 & 184 & 269 & 248 & - \\
\hline
\end{tabular}
\captionsetup{labelformat=empty}
\caption{Figure 2}
\end{center}
\end{table}

Figure 2 shows the distances by road, in miles, between seven cities.
\item \begin{enumerate}[label=(\roman*)]
\item Use Prim's algorithm, starting at London, to find the minimum spanning tree for these cities. You must clearly state the order in which you selected the edges of your tree, and the weight of the final tree.
\item Draw your tree using the vertices given in Diagram 2 in the answer book.\\
(5)
\end{enumerate}\end{enumerate}

\hfill \mbox{\textit{Edexcel D1 2010 Q2 [9]}}