Skip to content
CalcGospel 國際數學圖譜
返回

IAL 2025 June D1 Q1

A Level / Edexcel / D1

IAL 2025 June Paper · Question 1

题目

Problem

The list of numbers shown below represents the masses, in kg, of nine items that are to be moved from one factory to another.

180300250410240120230310190180 \quad 300 \quad 250 \quad 410 \quad 240 \quad 120 \quad 230 \quad 310 \quad 190

The items will all be moved, by van, at the same time.

Each van can carry at most 600 kg.

(a) Calculate a lower bound for the number of vans required.

(2)

(b) Use the first-fit bin-packing algorithm to allocate the items to vans.

(2)
题目中文翻译

下面的数字列表表示待从一个工厂运送到另一个工厂的九件物品的质量(单位:kg)。

180300250410240120230310190180 \quad 300 \quad 250 \quad 410 \quad 240 \quad 120 \quad 230 \quad 310 \quad 190

所有物品将同时用货车运送。

每辆货车最多可装载 600 kg。

(a) 计算所需货车数量的下界。

(b) 使用首次适应装箱算法将物品分配到货车。

解答

(a)

解法一

思路

展开

先求九件物品的总质量,再除以每辆货车的最大载重 600 kg。由于货车数量必须是整数,应将所得结果向上取整,得到所需数量的下界。

答题过程

展开

The total mass of the items is

180+300+250+410+240+120+230+310+190=2230 kg.180+300+250+410+240+120+230+310+190=2230\text{ kg}.

Therefore,

2230600=3.716\frac{2230}{600}=3.716\ldots

so the lower bound for the number of vans is

4.\boxed{4}.

(b)

解法一

思路

展开

保持题目给出的物品顺序,不先排序。依次处理每件物品,并从第一辆货车开始检查,把它放入第一辆仍有足够载重空间的货车;若所有已有货车都放不下,才启用新货车。

答题过程

展开

Applying first-fit in the given order gives

Item (kg)First available vanLoad after placement (kg)
1801180
3001480
2502250
4103410
2402490
1201600
2304230
3104540
1903600

Thus the allocation is

VanItems (kg)Total load (kg)
1180, 300, 120600
2250, 240490
3410, 190600
4230, 310540