AQA D2 2012 January — Question 2 12 marks

Exam BoardAQA
ModuleD2 (Decision Mathematics 2)
Year2012
SessionJanuary
Marks12
PaperDownload PDF ↗
Mark schemeDownload PDF ↗
TopicMatchings and Allocation
TypeHungarian algorithm for maximisation
DifficultyModerate -0.3 This is a standard application of the Hungarian algorithm with routine steps: transformation explanation, row/column reduction, covering zeros, and finding optimal assignment. While it requires careful arithmetic and understanding of the algorithm, it follows a well-defined procedure taught in D2 with no novel problem-solving required. The multi-part structure and computational length are typical for Decision Maths questions, making it slightly easier than average A-level difficulty overall.
Spec7.03j Sorting: bubble sort and shuttle sort7.03k Sorting: quick sort

2 A team with five members is training to take part in a quiz. The team members, Abby, Bob, Cait, Drew and Ellie, attempted sample questions on each of the five topics and their scores are given in the table.
Topic 1Topic 2Topic 3Topic 4Topic 5
Abby2729253531
Bob3322172929
Cait2329253321
Drew2229292731
Ellie2727192127
For the actual quiz, each topic must be allocated to exactly one of the team members. The maximum total score for the sample questions is to be used to allocate the different topics to the team members.
  1. Explain why the Hungarian algorithm may be used if each number, \(x\), in the table is replaced by \(35 - x\).
  2. Form a new table by subtracting each number in the table above from 35 . Hence show that, by reducing rows first then columns, the resulting table of values is as below, stating the values of the constants \(p\) and \(q\).
    86804
    011\(p\)44
    1046012
    \(q\)2040
    00660
  3. Show that the zeros in the table in part (b) can be covered with two horizontal and two vertical lines. Hence use the Hungarian algorithm to reduce the table to a form where five lines are needed to cover the zeros.
    1. Hence find the possible allocations of topics to the five team members so that the total score for the sample questions is maximised.
    2. State the value of this maximum total score.

Question 2:
Part (a)
AnswerMarks Guidance
AnswerMark Guidance
Replacing \(x\) by \(35-x\) converts a maximisation problem into a minimisation problemB1
The Hungarian algorithm is used to solve minimisation (assignment) problemsB1
2 × B1
Part (b)
AnswerMarks Guidance
AnswerMark Guidance
Correct table formed by subtracting from 35B1
Row reductions performed correctlyM1
\(p = 18\), \(q = 13\)A1 Both values correct
B1, M1, A1
Part (c)
AnswerMarks Guidance
AnswerMark Guidance
Zeros covered by 2 horizontal lines (rows 2 and 5) and 2 vertical lines (columns 4 and 5)B1 Correct identification of covering lines
Augmentation step: subtract minimum uncovered value, add to doubly coveredM1
Resulting table requires 5 lines to cover zerosA1 Table shown correctly
B1, M1, A1
Part (d)(i)
AnswerMarks Guidance
AnswerMark Guidance
Abby – Topic 4, Bob – Topic 1, Cait – Topic 2 or Topic 3, Drew – Topic 5, Ellie – Topic 2 or Topic 3B1
Complete valid allocation statedM1 A1 Two valid allocations acceptable
3 marks
Part (d)(ii)
AnswerMarks Guidance
AnswerMark Guidance
Maximum total score = \(35 + 33 + 29 + 31 + 27 = \mathbf{155}\)B1 1 mark
# Question 2:

## Part (a)
| Answer | Mark | Guidance |
|--------|------|----------|
| Replacing $x$ by $35-x$ converts a maximisation problem into a minimisation problem | B1 | |
| The Hungarian algorithm is used to solve minimisation (assignment) problems | B1 | |

**2 × B1**

## Part (b)
| Answer | Mark | Guidance |
|--------|------|----------|
| Correct table formed by subtracting from 35 | B1 | |
| Row reductions performed correctly | M1 | |
| $p = 18$, $q = 13$ | A1 | Both values correct |

**B1, M1, A1**

## Part (c)
| Answer | Mark | Guidance |
|--------|------|----------|
| Zeros covered by 2 horizontal lines (rows 2 and 5) and 2 vertical lines (columns 4 and 5) | B1 | Correct identification of covering lines |
| Augmentation step: subtract minimum uncovered value, add to doubly covered | M1 | |
| Resulting table requires 5 lines to cover zeros | A1 | Table shown correctly |

**B1, M1, A1**

## Part (d)(i)
| Answer | Mark | Guidance |
|--------|------|----------|
| Abby – Topic 4, Bob – Topic 1, Cait – Topic 2 or Topic 3, Drew – Topic 5, Ellie – Topic 2 or Topic 3 | B1 | |
| Complete valid allocation stated | M1 A1 | Two valid allocations acceptable |

**3 marks**

## Part (d)(ii)
| Answer | Mark | Guidance |
|--------|------|----------|
| Maximum total score = $35 + 33 + 29 + 31 + 27 = \mathbf{155}$ | B1 | **1 mark** |
2 A team with five members is training to take part in a quiz. The team members, Abby, Bob, Cait, Drew and Ellie, attempted sample questions on each of the five topics and their scores are given in the table.

\begin{center}
\begin{tabular}{|l|l|l|l|l|l|}
\hline
 & Topic 1 & Topic 2 & Topic 3 & Topic 4 & Topic 5 \\
\hline
Abby & 27 & 29 & 25 & 35 & 31 \\
\hline
Bob & 33 & 22 & 17 & 29 & 29 \\
\hline
Cait & 23 & 29 & 25 & 33 & 21 \\
\hline
Drew & 22 & 29 & 29 & 27 & 31 \\
\hline
Ellie & 27 & 27 & 19 & 21 & 27 \\
\hline
\end{tabular}
\end{center}

For the actual quiz, each topic must be allocated to exactly one of the team members. The maximum total score for the sample questions is to be used to allocate the different topics to the team members.
\begin{enumerate}[label=(\alph*)]
\item Explain why the Hungarian algorithm may be used if each number, $x$, in the table is replaced by $35 - x$.
\item Form a new table by subtracting each number in the table above from 35 . Hence show that, by reducing rows first then columns, the resulting table of values is as below, stating the values of the constants $p$ and $q$.

\begin{center}
\begin{tabular}{ | c | c | c | c | c | }
\hline
8 & 6 & 8 & 0 & 4 \\
\hline
0 & 11 & $p$ & 4 & 4 \\
\hline
10 & 4 & 6 & 0 & 12 \\
\hline
$q$ & 2 & 0 & 4 & 0 \\
\hline
0 & 0 & 6 & 6 & 0 \\
\hline
\end{tabular}
\end{center}
\item Show that the zeros in the table in part (b) can be covered with two horizontal and two vertical lines. Hence use the Hungarian algorithm to reduce the table to a form where five lines are needed to cover the zeros.
\item \begin{enumerate}[label=(\roman*)]
\item Hence find the possible allocations of topics to the five team members so that the total score for the sample questions is maximised.
\item State the value of this maximum total score.
\end{enumerate}\end{enumerate}

\hfill \mbox{\textit{AQA D2 2012 Q2 [12]}}