arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2407.02045cs.DS
收藏

在线无界背包问题

Online Unbounded Knapsack

Hans-Joachim Böckenhauer, Matthias Gehnen, Juraj Hromkovič, Ralf Klasing, Dennis Komm, Henri Lotze, Daniel Mock, Peter Rossmanith, Moritz Stocker

AI总结:

该研究分析了在线无界背包问题的竞争比与建议复杂度,分别针对简单和一般两类无界背包问题,推导了确定性、随机算法及不同建议比特数下的竞争比上下界与相关算法结论。

摘要:

我们分析了在线无界背包问题的竞争比和建议复杂度。该问题的实例由n个物品组成的序列给出,每个物品都有各自的大小和价值,算法需要决定将每个物品装入容量有限的背包的次数。物品以在线方式依次给出,已装入物品的总大小不得超过背包容量,目标是最大化已装入物品的总价值。在经典的0-1背包问题中,每个物品只能被装入一次,而无界版本允许物品被多次装入。我们证明了简单无界背包问题(即每个物品的大小等于其价值)可以达到2的竞争比。我们还分析了随机算法,结果表明与0-1背包问题不同,单个均匀随机比特无法提升算法的性能。更多的随机性可将竞争比降至1.736以下,但永远无法低于1.693。在建议复杂度设定中,我们衡量了算法需要知晓多少比特的信息才能达到期望的求解质量。对于简单无界背包问题,1比特的建议可将竞争比降至3/2。对于长度为n的实例,在使用少于log(n)比特建议的情况下,该竞争比无法进一步提升,但对于任意ε>0,使用O(log(n/ε)/ε)比特的建议即可达到1+ε的竞争比。我们进一步证明,任何以函数f(n)为界的建议量都无法让算法达到最优。我们还研究了在线一般无界背包问题,结果表明,对于确定性算法、随机算法以及使用少于log(n)比特建议的算法,该问题都不存在有界的竞争比。我们还提出了一种算法,对于任意ε>0,该算法使用O(log(n/ε)/ε)比特的建议即可达到1+ε的竞争比。

英文摘要:

We analyze the competitive ratio and the advice complexity of the online unbounded knapsack problem. An instance is given as a sequence of n items with a size and a value each, and an algorithm has to decide how often to pack each item into a knapsack of bounded capacity. The items are given online and the total size of the packed items must not exceed the knapsack's capacity, while the objective is to maximize the total value of the packed items. While each item can only be packed once in the classical 0-1 knapsack problem, the unbounded version allows for items to be packed multiple times. We show that the simple unbounded knapsack problem, where the size of each item is equal to its value, allows for a competitive ratio of 2. We also analyze randomized algorithms and show that, in contrast to the 0-1 knapsack problem, one uniformly random bit cannot improve an algorithm's performance. More randomness lowers the competitive ratio to less than 1.736, but it can never be below 1.693. In the advice complexity setting, we measure how many bits of information the algorithm has to know to achieve some desired solution quality. For the simple unbounded knapsack problem, one advice bit lowers the competitive ratio to 3/2. While this cannot be improved with fewer than log(n) advice bits for instances of length n, a competitive ratio of 1+epsilon can be achieved with O(log(n/epsilon)/epsilon) advice bits for any epsilon>0. We further show that no amount of advice bounded by a function f(n) allows an algorithm to be optimal. We also study the online general unbounded knapsack problem and show that it does not allow for any bounded competitive ratio for deterministic and randomized algorithms, as well as for algorithms using fewer than log(n) advice bits. We also provide an algorithm that uses O(log(n/epsilon)/epsilon) advice bits to achieve a competitive ratio of 1+epsilon for any epsilon>0.

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

↑