OCR D1 2010 January — Question 4 11 marks

Exam BoardOCR
ModuleD1 (Decision Mathematics 1)
Year2010
SessionJanuary
Marks11
PaperDownload PDF ↗
Mark schemeDownload PDF ↗
TopicSorting Algorithms
TypeFirst-Fit Decreasing Bin Packing
DifficultyModerate -0.8 This is a straightforward application of the first-fit decreasing algorithm with two constraints (weight and volume). Students must list items, apply the standard algorithm twice, and identify why each fails—requiring only mechanical execution of a taught procedure and observation that one constraint is violated while the other is satisfied. The conceptual demand is low for D1 students who have practiced this algorithm.
Spec7.03l Bin packing: next-fit, first-fit, first-fit decreasing, full bin7.03m Packing extensions: 2D/3D packing and knapsack problems

4 Jack and Jill are packing food parcels. The boxes for the food parcels can each carry up to 5000 g in weight and can each hold up to \(30000 \mathrm {~cm} ^ { 3 }\) in volume. The number of each item to be packed, their dimensions and weights are given in the table below.
Item type\(A\)\(B\)\(C\)\(D\)
Number to be packed15834
Length (cm)10402010
Width (cm)10305040
Height (cm)10201010
Volume ( \(\mathrm { cm } ^ { 3 }\) )100024000100004000
Weight (g)1000250300400
Jill tries to pack the items by weight using the first-fit decreasing method.
  1. List the 30 items in order of decreasing weight and hence show Jill's packing. Explain why Jill's packing is not possible. Jack tries to pack the items by volume using the first-fit decreasing method.
  2. List the 30 items in order of decreasing volume and hence show Jack's packing. Explain why Jack's packing is not possible.
  3. Give another reason why a packing may not be possible.

Question 4:
Part (i)
AnswerMarks Guidance
AnswerMarks Guidance
Items listed in decreasing weight order: \(A(1000g) \times 15\), \(D(400g)\times4\), \(C(300g)\times3\), \(B(250g)\times8\)M1
First-fit decreasing packing shownA1
At some point a box exceeds 5000g limitA1
Explanation that packing is impossibleB1 B1
Part (ii)
AnswerMarks Guidance
AnswerMarks Guidance
Items in decreasing volume: \(B(24000)\times8\), \(C(10000)\times3\), \(D(4000)\times4\), \(A(1000)\times15\)M1
First-fit decreasing packing shownA1 A1
A box exceeds \(30000\text{ cm}^3\)A1
Explanation packing impossibleB1
Part (iii)
AnswerMarks Guidance
AnswerMarks Guidance
A single item exceeds the box capacity (e.g. item \(B\) has volume \(24000\text{ cm}^3\) but weight 250g — or dimensional issue)B1 Accept other valid reasons
# Question 4:

## Part (i)
| Answer | Marks | Guidance |
|--------|-------|----------|
| Items listed in decreasing weight order: $A(1000g) \times 15$, $D(400g)\times4$, $C(300g)\times3$, $B(250g)\times8$ | M1 | |
| First-fit decreasing packing shown | A1 | |
| At some point a box exceeds 5000g limit | A1 | |
| Explanation that packing is impossible | B1 B1 | |

## Part (ii)
| Answer | Marks | Guidance |
|--------|-------|----------|
| Items in decreasing volume: $B(24000)\times8$, $C(10000)\times3$, $D(4000)\times4$, $A(1000)\times15$ | M1 | |
| First-fit decreasing packing shown | A1 A1 | |
| A box exceeds $30000\text{ cm}^3$ | A1 | |
| Explanation packing impossible | B1 | |

## Part (iii)
| Answer | Marks | Guidance |
|--------|-------|----------|
| A single item exceeds the box capacity (e.g. item $B$ has volume $24000\text{ cm}^3$ but weight 250g — or dimensional issue) | B1 | Accept other valid reasons |

---
4 Jack and Jill are packing food parcels. The boxes for the food parcels can each carry up to 5000 g in weight and can each hold up to $30000 \mathrm {~cm} ^ { 3 }$ in volume.

The number of each item to be packed, their dimensions and weights are given in the table below.

\begin{center}
\begin{tabular}{|l|l|l|l|l|}
\hline
Item type & $A$ & $B$ & $C$ & $D$ \\
\hline
Number to be packed & 15 & 8 & 3 & 4 \\
\hline
Length (cm) & 10 & 40 & 20 & 10 \\
\hline
Width (cm) & 10 & 30 & 50 & 40 \\
\hline
Height (cm) & 10 & 20 & 10 & 10 \\
\hline
Volume ( $\mathrm { cm } ^ { 3 }$ ) & 1000 & 24000 & 10000 & 4000 \\
\hline
Weight (g) & 1000 & 250 & 300 & 400 \\
\hline
\end{tabular}
\end{center}

Jill tries to pack the items by weight using the first-fit decreasing method.\\
(i) List the 30 items in order of decreasing weight and hence show Jill's packing. Explain why Jill's packing is not possible.

Jack tries to pack the items by volume using the first-fit decreasing method.\\
(ii) List the 30 items in order of decreasing volume and hence show Jack's packing. Explain why Jack's packing is not possible.\\
(iii) Give another reason why a packing may not be possible.

\hfill \mbox{\textit{OCR D1 2010 Q4 [11]}}