Randomized Algorithms for Removable Online Knapsack Problems
In this paper, we study removable online knapsack problem. The input is a sequence of items e 1,e 2,…,e n , each of which has a weight and a value. Given the ith item e i , we either put e i into the knapsack or reject it. When e i is put into the knapsack, some items in the knapsack are removed with no cost if the sum of the weight of e i and the total weight 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 show a randomized 2-competitive algorithm despite there is no constant competitive deterministic algorithm. We also give a lower bound 1 + 1/e ≈ 1.368. For the unweighted case, i.e., the value of each item is equal to the weight, we propose a 10/7-competitive algorithm and give a lower bound 1.25.
KeywordsFeasible Solution Input Sequence Knapsack Problem Competitive Ratio Online Algorithm
Unable to display preview. Download preview PDF.
- 2.Babaioff, M., Hartline, J.D., Kleinberg, R.D.: Selling banner ads: Online algorithms with buyback. In: Proceedings of 4th Workshop on Ad Auctions (2008)Google Scholar
- 3.Babaioff, M., Hartline, J.D., Kleinberg, R.D.: Selling ad campaigns: Online algorithms with cancellations. In: ACM Conference on Electronic Commerce, pp. 61–70 (2009)Google Scholar
- 5.Buchbinder, N., Naor, J.: Improved bounds for online routing and packing via a primal-dual approach. In: Foundations of Computer Science, pp. 293–304 (2006)Google Scholar
- 13.Kellerer, H., Pferschy, U., Pisinger, D.: Knapsack Problems. Springer (2004)Google Scholar
- 16.Yao, A.: Probabilistic computations: Toward a unified measure of complexity. In: 18th Annual Symposium on Foundations of Computer Science, pp. 222–227. IEEE (1977)Google Scholar