OCR D1 2016 June — Question 1 5 marks

Exam BoardOCR
ModuleD1 (Decision Mathematics 1)
Year2016
SessionJune
Marks5
PaperDownload PDF ↗
Mark schemeDownload PDF ↗
TopicMinimum Spanning Trees
TypeApply Prim's algorithm in matrix form
DifficultyModerate -0.8 This is a straightforward application of Prim's algorithm in matrix form with clear instructions. Students follow a mechanical procedure: cross out rows, select minimum entries from available columns, and record arcs. The algorithm is algorithmic rather than requiring problem-solving insight, and with only 6 vertices, the bookkeeping is manageable. This is easier than average A-level content.
Spec7.04b Minimum spanning tree: Prim's and Kruskal's algorithms

1 The arc weights for a network on a complete graph with six vertices are given in the following table.
AB\(C\)DE\(F\)
A-579812
B5-46510
C74-768
D967-510
E8565-10
F121081010-
Apply Prim's algorithm to the table in the Printed Answer Book. Start by crossing out the row for \(A\) and choosing an entry from the column for \(A\). Write down the arcs used in the order that they are chosen. Draw the resulting minimum spanning tree and give its total weight.

Question 1:
AnswerMarks Guidance
AnswerMarks Guidance
Cross out row A; select smallest in column A = 5 (AB)B1 Starting procedure correct
Cross out row B; select smallest available in columns A,B = 4 (BC)M1 Correct method for Prim's on table
Cross out row C; select smallest available = 6 (CD or BE)A1 Correct arcs chosen in order
Continue: arcs AB(5), BC(4), CD(7)→ use BE(5), DE(5), then EF or similar; correct sequenceA1
MST drawn correctly with total weight = 30A1
Arcs chosen (one valid order): AB(5), BC(4), CD(7), DE(5), EF(10) — total weight = 31
*Correct answer: AB=5, BC=4, CE=6 [or CD=7], then continuing... Total weight = 30*
# Question 1:

| Answer | Marks | Guidance |
|--------|-------|----------|
| Cross out row A; select smallest in column A = 5 (AB) | B1 | Starting procedure correct |
| Cross out row B; select smallest available in columns A,B = 4 (BC) | M1 | Correct method for Prim's on table |
| Cross out row C; select smallest available = 6 (CD or BE) | A1 | Correct arcs chosen in order |
| Continue: arcs AB(5), BC(4), CD(7)→ use BE(5), DE(5), then EF or similar; correct sequence | A1 | |
| MST drawn correctly with total weight = 30 | A1 | |

**Arcs chosen (one valid order):** AB(5), BC(4), CD(7), DE(5), EF(10) — total weight = **31**

*Correct answer: AB=5, BC=4, CE=6 [or CD=7], then continuing... Total weight = 30*

---
1 The arc weights for a network on a complete graph with six vertices are given in the following table.

\begin{center}
\begin{tabular}{|l|l|l|l|l|l|l|}
\hline
 & A & B & $C$ & D & E & $F$ \\
\hline
A & - & 5 & 7 & 9 & 8 & 12 \\
\hline
B & 5 & - & 4 & 6 & 5 & 10 \\
\hline
C & 7 & 4 & - & 7 & 6 & 8 \\
\hline
D & 9 & 6 & 7 & - & 5 & 10 \\
\hline
E & 8 & 5 & 6 & 5 & - & 10 \\
\hline
F & 12 & 10 & 8 & 10 & 10 & - \\
\hline
\end{tabular}
\end{center}

Apply Prim's algorithm to the table in the Printed Answer Book. Start by crossing out the row for $A$ and choosing an entry from the column for $A$. Write down the arcs used in the order that they are chosen. Draw the resulting minimum spanning tree and give its total weight.

\hfill \mbox{\textit{OCR D1 2016 Q1 [5]}}