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

IAL 2024 June D1 Q1

A Level / Edexcel / D1

IAL 2024 June Paper · Question 1

题目

Problem

The following list of eleven numbers is to be packed into bins of size 14

5.24.76.54.53.15.11.82.93.43.81.25.2 \quad 4.7 \quad 6.5 \quad 4.5 \quad 3.1 \quad 5.1 \quad 1.8 \quad 2.9 \quad 3.4 \quad 3.8 \quad 1.2

(a) Use the first-fit bin packing algorithm to determine how the eleven numbers listed above can be packed into bins of size 14.

(3)

(b) The list of numbers is to be sorted into ascending order. Use a quick sort to obtain the sorted list. You should show the result of each pass and identify your pivots clearly.

(4)

(c) Apply the first-fit decreasing bin packing algorithm to the sorted list to pack the numbers into bins of size 14.

(3)

(d) Explain why the number of bins used in part (c) is optimal.

(1)

(e) Use the binary search algorithm to try to locate 3.0 in the list of numbers. Clearly indicate how you choose your pivots and which part of the list is rejected at each stage.

(3)
题目中文翻译

以下十一个数字列表需要装入容量为 14 的箱子中

5.24.76.54.53.15.11.82.93.43.81.25.2 \quad 4.7 \quad 6.5 \quad 4.5 \quad 3.1 \quad 5.1 \quad 1.8 \quad 2.9 \quad 3.4 \quad 3.8 \quad 1.2

(a) 使用首次适应装箱算法确定上述十一个数字如何装入容量为 14 的箱子。

(b) 数字列表需要按升序排列。使用快速排序获得排序后的列表。应显示每轮后的结果并清楚标明基准元素。

(c) 对排序后的列表应用首次适应递减装箱算法,将数字装入容量为 14 的箱子。

(d) 解释为什么 (c) 中使用的箱子数量是最优的。

(e) 使用二分搜索算法尝试在数字列表中定位 3.0。清楚说明如何选择基准元素以及每个阶段被排除的列表部分。

解答