A2 June 2022 Q1

EdexcelCurrent spec5 marksAlgorithms

1. A gardener needs the following lengths of string. All lengths are in metres.

4.36.15.14.72.55.93.41.72.10.41.3

She cuts the lengths from balls of string. Each ball contains 10 m of string.

(a) Calculate a lower bound for the number of balls of string the gardener needs.
You must make your method clear. (2)
(b) Use the first-fit bin packing algorithm to determine how the lengths could be cut from the balls of string. (3)