Online Unbounded Knapsack

被引:0
|
作者
Boeckenhauer, Hans-Joachim [1 ]
Gehnen, Matthias [2 ]
Hromkovic, Juraj [1 ]
Klasing, Ralf [3 ]
Komm, Dennis [1 ]
Lotze, Henri [2 ]
Mock, Daniel [2 ]
Rossmanith, Peter [2 ]
Stocker, Moritz [1 ]
机构
[1] Swiss Fed Inst Technol, Dept Comp Sci, Zurich, Switzerland
[2] Rhein Westfal TH Aachen, Dept Comp Sci, Aachen, Germany
[3] Univ Bordeaux, CNRS, LaBRI, Talence, France
关键词
Online knapsack; Unbounded knapsack; Online algorithm; Advice complexity; ADVICE COMPLEXITY; ALGORITHMS; FPTAS; TREE;
D O I
10.1007/s00224-025-10215-0
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
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 whether or not and 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 knapsack problem (also called the 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 (so-called advice bits) 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 loglog22nn advice bits for instances of length n, a competitive ratio of 1 + epsilon can be achieved with O(epsilon(-1 )<middle dot> log(n epsilon(-1))) 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 both deterministic and randomized algorithms, as well as for algorithms using fewer than log(2)n advice bits. We also provide a surprisingly simple algorithm that uses O(epsilon(-1 )<middle dot> log(n epsilon(-1))) advice bits to achieve a competitive ratio of 1 + epsilon for any epsilon > 0.
引用
收藏
页数:25
相关论文
共 50 条
  • [1] The Unbounded Knapsack Problem
    Hu, T. C.
    Landa, Leo
    Shing, Man-Tak
    RESEARCH TRENDS IN COMBINATORIAL OPTIMIZATION, 2009, : 201 - +
  • [2] A hybrid algorithm for the unbounded knapsack problem
    Poirriez, Vincent
    Yanev, Nicola
    Andonov, Rumen
    DISCRETE OPTIMIZATION, 2009, 6 (01) : 110 - 124
  • [3] A genetic algorithm for the unbounded knapsack problem
    Li, KL
    Dai, KM
    Li, QH
    2003 INTERNATIONAL CONFERENCE ON MACHINE LEARNING AND CYBERNETICS, VOLS 1-5, PROCEEDINGS, 2003, : 1586 - 1590
  • [4] A note on dominance in unbounded knapsack problems
    Johnston, RE
    Khan, LR
    ASIA-PACIFIC JOURNAL OF OPERATIONAL RESEARCH, 1995, 12 (02) : 145 - 160
  • [5] A faster FPTAS for the Unbounded Knapsack Problem
    Jansen, Klaus
    Kraft, Stefan E. J.
    EUROPEAN JOURNAL OF COMBINATORICS, 2018, 68 : 148 - 174
  • [6] Unbounded knapsack problems with arithmetic weight sequences
    Deineko, Vladimir G.
    Woeginger, Gerhard J.
    EUROPEAN JOURNAL OF OPERATIONAL RESEARCH, 2011, 213 (02) : 384 - 387
  • [7] A constructive periodicity bound for the unbounded knapsack problem
    Huang, Ping H.
    Tang, Kwei
    OPERATIONS RESEARCH LETTERS, 2012, 40 (05) : 329 - 331
  • [8] Unbounded knapsack problem: Dynamic programming revisited
    Andonov, R
    Poirriez, V
    Rajopadhye, S
    EUROPEAN JOURNAL OF OPERATIONAL RESEARCH, 2000, 123 (02) : 394 - 407
  • [9] A Novel Method for Solving Unbounded Knapsack Problem
    CHEN Rung-Ching
    LIN Ming-Hsian
    中国管理信息化, 2009, 12 (15) : 57 - 60
  • [10] Online Knapsack Revisited
    Cygan, Marek
    Jez, Lukasz
    APPROXIMATION AND ONLINE ALGORITHMS, WAOA 2013, 2014, 8447 : 144 - 155