کد مقاله | کد نشریه | سال انتشار | مقاله انگلیسی | نسخه تمام متن |
---|---|---|---|---|
436150 | 689974 | 2015 | 11 صفحه PDF | دانلود رایگان |
In this paper, we study online knapsack problems. The input is a sequence of items e1,e2,…,ene1,e2,…,en, each of which has a size and a value. Given the i th item eiei, we either put eiei into the knapsack or reject it. In the removable setting, when eiei is put into the knapsack, some items in the knapsack are removed with no cost if the sum of the size of eiei and the total size in the current knapsack exceeds the capacity of the knapsack. Our goal is to maximize the profit, i.e., the sum of the values of items in the last knapsack.We present a simple randomized 2-competitive algorithm for the unweighted non-removable case and show that it is the best possible, where knapsack problem is called unweighted if the value of each item is equal to its size.For the removable case, we propose a randomized 2-competitive algorithm despite there is no constant competitive deterministic algorithm. We also provide a lower bound 1+1/e≈1.3681+1/e≈1.368 for the competitive ratio. For the unweighted removable case, we propose a 10/7-competitive algorithm and provide a lower bound 1.25 for the competitive ratio.
Journal: Theoretical Computer Science - Volume 562, 11 January 2015, Pages 395–405