Edexcel D1 — Question 2 7 marks

Exam BoardEdexcel
ModuleD1 (Decision Mathematics 1)
Marks7
PaperDownload PDF ↗
Mark schemeDownload PDF ↗
TopicSorting Algorithms
TypeFirst-Fit Decreasing Bin Packing
DifficultyModerate -0.8 This is a standard textbook exercise on bin packing algorithms requiring straightforward application of first-fit decreasing and full-bin methods. The calculations are routine (adding to 24), the algorithms are mechanical to apply, and no novel problem-solving insight is needed—just careful execution of learned procedures.
Spec7.03l Bin packing: next-fit, first-fit, first-fit decreasing, full bin

  1. The following lengths of cloth (in metres) are to be cut from standard 24 metre rolls.
$$\begin{array} { l l l l l l l l l l l l } 6 & 6 & 4 & 6 & 8 & 8 & 4 & 12 & 14 & 6 & 14 & 8 \end{array}$$
  1. Considering only the total amount, what is the least number of rolls that are needed?
  2. Using the first-fit decreasing algorithm, show that the lengths could be cut from 5 rolls.
  3. Using "full-bin" combinations show that it is possible to cut these lengths from the number of rolls found in part (a).
  4. Comment on this result.

Part (a)
AnswerMarks
Total of lengths = 96 m; \(96 \div 24 = 4\) therefore least no. of rolls = 4A1
Part (b)
By inspection we have: 14, 14, 12, 8, 8, 8, 6, 6, 6, 6, 4, 4
[Diagram shows bins with widths and heights appropriately labeled]
AnswerMarks
Therefore 5 rolls neededM2 A1
Part (c)
AnswerMarks
Full-bins: (14 + 6 + 4), (14 + 6 + 4), (12 + 6 + 6) and (8 + 8 + 8)M1 A1
Part (d)
AnswerMarks Guidance
First-fit decreasing algorithm does not always give an optimal solutionB1 (7)
**Part (a)**
Total of lengths = 96 m; $96 \div 24 = 4$ therefore least no. of rolls = 4 | A1 |

**Part (b)**
By inspection we have: 14, 14, 12, 8, 8, 8, 6, 6, 6, 6, 4, 4

[Diagram shows bins with widths and heights appropriately labeled]

Therefore 5 rolls needed | M2 A1 |

**Part (c)**
Full-bins: (14 + 6 + 4), (14 + 6 + 4), (12 + 6 + 6) and (8 + 8 + 8) | M1 A1 |

**Part (d)**
First-fit decreasing algorithm does not always give an optimal solution | B1 | (7) |

---
\begin{enumerate}
  \item The following lengths of cloth (in metres) are to be cut from standard 24 metre rolls.
\end{enumerate}

$$\begin{array} { l l l l l l l l l l l l } 
6 & 6 & 4 & 6 & 8 & 8 & 4 & 12 & 14 & 6 & 14 & 8
\end{array}$$

(a) Considering only the total amount, what is the least number of rolls that are needed?\\
(b) Using the first-fit decreasing algorithm, show that the lengths could be cut from 5 rolls.\\
(c) Using "full-bin" combinations show that it is possible to cut these lengths from the number of rolls found in part (a).\\
(d) Comment on this result.\\

\hfill \mbox{\textit{Edexcel D1  Q2 [7]}}