题目
The numbers listed below are to be packed into bins of size , where is a positive integer.
A lower bound for the number of bins required is 4.
(a) Determine the range of possible values of . You must make your method clear.
(b) Carry out a quick sort to produce a list of the numbers in descending order. You should show the result of each pass and identify your pivots clearly.
When the first-fit bin packing algorithm is applied to the original list of numbers, the following allocation is achieved.
Bin 1:
Bin 2:
Bin 3:
Bin 4:
When the first-fit decreasing bin packing algorithm is applied to the sorted list of numbers, the following allocation is achieved.
Bin 1:
Bin 2:
Bin 3:
Bin 4:
(c) Determine the value of . You must explain your reasoning fully.
题目中文翻译
下面列出的数字要装入大小为 的箱子中,其中 是正整数。
所需箱子数量的下界为 4。
(a) 确定 的可能取值范围。必须清楚说明方法。
(b) 执行快速排序以产生降序的数字列表。应显示每次传递的结果并清楚地标出枢轴。
当对原始数字列表应用首次适应装箱算法时,获得以下分配。
箱 1:
箱 2:
箱 3:
箱 4:
当对排序后的数字列表应用首次适应递减装箱算法时,获得以下分配。
箱 1:
箱 2:
箱 3:
箱 4:
(c) 确定 的值。必须完全解释推理过程。