Removable Online Knapsack and Advice

被引:0
|
作者
Bockenhauer, Hans-Joachim [1 ]
Frei, Fabian [2 ]
Rossmanith, Peter [3 ]
机构
[1] Swiss Fed Inst Technol, Dept Comp Sci, Zurich, Switzerland
[2] CISPA Helmholtz Ctr Informat Secur, Saarbrucken, Germany
[3] Rhein Westfal TH Aachen, Dept Comp Sci, Aachen, Germany
关键词
Removable Online Knapsack; Multiple Knapsack; Advice Analysis; Advice Applications; Machine Learning and AI; ALGORITHMS;
D O I
10.4230/LIPIcs.STACS.2024.18
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
In the proportional knapsack problem, we are given a knapsack of some capacity and a set of variably sized items. The goal is to pack a selection of these items that fills the knapsack as much as possible. The online version of this problem reveals the items and their sizes not all at once but one by one. For each item, the algorithm has to decide immediately whether to pack it or not. We consider a natural variant of this online knapsack problem, which has been coined removable knapsack. It differs from the classical variant by allowing the removal of any packed item from the knapsack. Repacking is impossible, however: Once an item is removed, it is gone for good. We analyze the advice complexity of this problem. It measures how many advice bits an omniscient oracle needs to provide for an online algorithm to reach any given competitive ratio, which is understood in its strict sense - just the algorithm's approximation factor. The online knapsack problem is known for its peculiar advice behavior involving three jumps in competitivity. We show that the advice complexity of the version with removability is quite different but just as interesting: The competitivity starts from the golden ratio when no advice is given. It then drops down to 1 + epsilon for a constant amount of advice already, which requires logarithmic advice in the classical version. Removability comes as no relief to the perfectionist, however: Optimality still requires linear advice as before. These results are particularly noteworthy from a structural viewpoint for the exceptionally slow transition from near-optimality to optimality. Our most important and demanding result shows that the general knapsack problem, which allows an item's value to differ from its size, exhibits a similar behavior for removability, but with an even more pronounced jump from an unbounded competitive ratio to near-optimality within just constantly many advice bits. This is a unique behavior among the problems considered in the literature so far. An advice analysis is interesting in its own right, as it allows us to measure the information content of a problem and leads to structural insights. But it also provides insurmountable lower bounds, applicable to any kind of additional information about the instances, including predictions provided by machine-learning algorithms and artificial intelligence. Unexpectedly, advice algorithms are useful in various real-life situations, too. For example, they provide smart strategies for cooperation in winner-take-all competitions, where several participants pool together to implement different strategies and share the obtained prize. Further illustrating the versatility of our advice-complexity bounds, our results automatically improve some of the best known lower bounds on the competitive ratio for removable knapsack with randomization. The presented advice algorithms also automatically yield deterministic algorithms for established deterministic models such as knapsack with a resource buffer and various problems with more than one knapsack. In their seminal paper introducing removability to the knapsack problem, Iwama and Taketomi have indeed proposed a multiple knapsack problem for which we can establish a one-to-one correspondence with the advice model; this paper therefore even provides a comprehensive analysis for this up until now neglected problem.
引用
收藏
页数:17
相关论文
共 50 条
  • [1] Removable online knapsack problems
    Iwama, K
    Taketomi, S
    [J]. AUTOMATA, LANGUAGES AND PROGRAMMING, 2002, 2380 : 293 - 305
  • [2] Online removable knapsack with limited cuts
    Han, Xin
    Makino, Kazuhisa
    [J]. THEORETICAL COMPUTER SCIENCE, 2010, 411 (44-46) : 3956 - 3964
  • [3] Removable Online Knapsack with Bounded Size Items
    Gourves, Laurent
    Pagourtzis, Aris
    [J]. SOFSEM 2024: THEORY AND PRACTICE OF COMPUTER SCIENCE, 2024, 14519 : 283 - 296
  • [4] The online knapsack problem: Advice and randomization
    Boeckenhauer, Hans-Joachim
    Komm, Dennis
    Kralovic, Richard
    Rossmanith, Peter
    [J]. THEORETICAL COMPUTER SCIENCE, 2014, 527 : 61 - 72
  • [5] Online removable knapsack problem under convex function
    Han, Xin
    Kawase, Yasushi
    Makino, Kazuhisa
    Guo, He
    [J]. THEORETICAL COMPUTER SCIENCE, 2014, 540 : 62 - 69
  • [6] Online Removable Knapsack Problems for Integer-Sized Items
    Hanji, Kanaho
    Fujiwara, Hiroshi
    Yamamoto, Hiroaki
    [J]. THEORY AND APPLICATIONS OF MODELS OF COMPUTATION, TAMC 2020, 2020, 12337 : 82 - 93
  • [7] Online Removable Knapsack Problem for Integer-Sized Unweighted Items
    Fujiwara, Hiroshi
    Hanji, Kanaho
    Yamamoto, Hiroaki
    [J]. IEICE TRANSACTIONS ON FUNDAMENTALS OF ELECTRONICS COMMUNICATIONS AND COMPUTER SCIENCES, 2022, E105A (09) : 1195 - 1202
  • [8] Online Removable Knapsack Problem for Integer-Sized Unweighted Items
    Hanji, Kanaho
    Fujiwara, Hiroshi
    Yamamoto, Hiroaki
    [J]. IEICE TRANSACTIONS ON FUNDAMENTALS OF ELECTRONICS COMMUNICATIONS AND COMPUTER SCIENCES, 2022, E105 (08)
  • [9] On the Advice Complexity of the Knapsack Problem
    Boeckenhauer, Hans-Joachim
    Komm, Dennis
    Kralovic, Richard
    Rossmanith, Peter
    [J]. LATIN 2012: THEORETICAL INFORMATICS, 2012, 7256 : 61 - 72
  • [10] Online Knapsack Revisited
    Marek Cygan
    Łukasz Jeż
    Jiří Sgall
    [J]. Theory of Computing Systems, 2016, 58 : 153 - 190