arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1307.2806cs.DS
收藏

一个容量未知的背包

Packing a Knapsack of Unknown Capacity

Yann Disser, Max Klimm, Nicole Megow, Sebastian Stiller

摘要:

我们研究在不知道背包容量的情况下背包的装箱问题。每当我们试图包装一件不合适的物品时,该物品就会被丢弃;如果该物品合适,我们必须将其包括在包装中。我们表明,总是有一个政策,包装的最佳包装的因素2内的值,无论实际容量。如果所有的项目都有单位密度,我们得到一个等于黄金比例的因子。这两个因素被证明是最好的可能。事实上,我们使用包装策略获得上述因素,这些包装策略是通用的,因为它们固定了物品的特定顺序,并试图按照该顺序包装物品,而与包装时所做的观察无关。我们给出了有效的算法计算这些政策。另一方面,我们证明了,对于任何α>1,决定给定的通用策略是否实现α因子的问题是coNP完全的。如果alpha是输入的一部分,则对于具有单位密度的项目,相同的问题被证明是coNP完全的。最后,我们表明,这是NP难的决定,对于给定的α,是否一组项目承认一个普遍的政策与因子α,即使所有的项目有单位密度。

英文摘要:

We study the problem of packing a knapsack without knowing its capacity. Whenever we attempt to pack an item that does not fit, the item is discarded; if the item fits, we have to include it in the packing. We show that there is always a policy that packs a value within factor 2 of the optimum packing, irrespective of the actual capacity. If all items have unit density, we achieve a factor equal to the golden ratio. Both factors are shown to be best possible. In fact, we obtain the above factors using packing policies that are universal in the sense that they fix a particular order of the items and try to pack the items in this order, independent of the observations made while packing. We give efficient algorithms computing these policies. On the other hand, we show that, for any alpha>1, the problem of deciding whether a given universal policy achieves a factor of alpha is coNP-complete. If alpha is part of the input, the same problem is shown to be coNP-complete for items with unit densities. Finally, we show that it is coNP-hard to decide, for given alpha, whether a set of items admits a universal policy with factor alpha, even if all items have unit densities.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑