OCR D2 2010 January — Question 2 7 marks

Exam BoardOCR
ModuleD2 (Decision Mathematics 2)
Year2010
SessionJanuary
Marks7
PaperDownload PDF ↗
Mark schemeDownload PDF ↗
TopicMatchings and Allocation
TypeHungarian algorithm with unequal sets
DifficultyModerate -0.3 This is a standard textbook application of the Hungarian algorithm with clear instructions to add a dummy row and reduce rows first. The arithmetic is straightforward, and the method is algorithmic rather than requiring problem-solving insight. However, it requires careful execution of multiple steps and correct interpretation of the dummy row, placing it slightly below average difficulty.
Spec7.03l Bin packing: next-fit, first-fit, first-fit decreasing, full bin

2 Dudley has three daughters who are all planning to get married next year. The girls are named April, May and June, after the months in which they were born. Each girl wants to get married on her own birthday. Dudley has already obtained costings from four different hotels. From past experience, Dudley knows that when his family get together they are likely to end up with everyone fighting one another, so he cannot use the same hotel twice. The table shows the costs, in \(\pounds 100\), for each hotel to host each daughter's wedding.
Hotel
\cline { 2 - 6 }PalaceRegentSunnysideTall Trees
\cline { 2 - 6 }April30283225
\cline { 2 - 6 } DaughterMay32343235
\cline { 2 - 6 }June40403938
\cline { 2 - 6 }
\cline { 2 - 6 }
Dudley wants to choose the three hotels to minimise the total cost.
Add a dummy row and then apply the Hungarian algorithm to the table, reducing rows first, to find an optimal allocation between the hotels and Dudley's daughters. State how each table is formed and write out the final solution and its cost to Dudley.

Question 2:
Hungarian Algorithm
AnswerMarks Guidance
Answer/WorkingMark Guidance
Adding dummy row with all equal values (40,40,40,40)B1 Adding a dummy row of all equal values
Substantially correct attempt to reduce matrix (condone 1 numerical slip)M1 Substantially correct attempt to reduce matrix
Correct reduced cost matrix from reducing rows, first statement of how table was formed, including reference to columnsA1 cao
Cross through zeros using minimum number of linesB1
Correct augmented matrix and statement of how table was formedB1 cao
\(A = T,\ M = P,\ J = S\)B1 cao
Total cost \(= £9600\)B1 £9600 (cao) with units
# Question 2:

## Hungarian Algorithm

| Answer/Working | Mark | Guidance |
|---|---|---|
| Adding dummy row with all equal values (40,40,40,40) | B1 | Adding a dummy row of all equal values |
| Substantially correct attempt to reduce matrix (condone 1 numerical slip) | M1 | Substantially correct attempt to reduce matrix |
| Correct reduced cost matrix from reducing rows, first statement of how table was formed, including reference to columns | A1 | cao |
| Cross through zeros using minimum number of lines | B1 | |
| Correct augmented matrix and statement of how table was formed | B1 | cao |
| $A = T,\ M = P,\ J = S$ | B1 | cao |
| Total cost $= £9600$ | B1 | £9600 (cao) with units |

---
2 Dudley has three daughters who are all planning to get married next year. The girls are named April, May and June, after the months in which they were born. Each girl wants to get married on her own birthday.

Dudley has already obtained costings from four different hotels. From past experience, Dudley knows that when his family get together they are likely to end up with everyone fighting one another, so he cannot use the same hotel twice.

The table shows the costs, in $\pounds 100$, for each hotel to host each daughter's wedding.

\begin{center}
\begin{tabular}{ l | l | c | c | c | c | }
\multicolumn{6}{c}{Hotel} \\
\cline { 2 - 6 }
 &  & Palace & Regent & Sunnyside & Tall Trees \\
\cline { 2 - 6 }
 & April & 30 & 28 & 32 & 25 \\
\cline { 2 - 6 }
Daughter & May & 32 & 34 & 32 & 35 \\
\cline { 2 - 6 }
 & June & 40 & 40 & 39 & 38 \\
\cline { 2 - 6 }
 &  &  &  &  &  \\
\cline { 2 - 6 }
\end{tabular}
\end{center}

Dudley wants to choose the three hotels to minimise the total cost.\\
Add a dummy row and then apply the Hungarian algorithm to the table, reducing rows first, to find an optimal allocation between the hotels and Dudley's daughters. State how each table is formed and write out the final solution and its cost to Dudley.

\hfill \mbox{\textit{OCR D2 2010 Q2 [7]}}