Skip to main content

Online Knapsack with Removal and Recourse

  • Conference paper
  • First Online:
Combinatorial Algorithms (IWOCA 2023)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 13889))

Included in the following conference series:

  • 427 Accesses

Abstract

We analyze the proportional online knapsack problem with removal and limited recourse. The input is a sequence of item sizes; a subset of the items has to be packed into a knapsack of unit capacity such as to maximize their total size while not exceeding the knapsack capacity. In contrast to the classical online knapsack problem, packed items can be removed and a limited number of removed items can be re-inserted to the knapsack. Such re-insertion is called recourse. Without recourse, the competitive ratio is known to be approximately 1.618 (Iwama and Taketomi, ICALP 2002). We show that, even for only one use of recourse for the whole instance, the competitive ratio drops to 3/2. We prove that, with a constant number of \(k\ge 2\) uses of recourse, a competitive ratio of \(1/\left( \sqrt{3}-1\right) \le 1.367\) can be achieved and we give a lower bound of \(1+1/(k+1)\) for this case. For an extended use of recourse, i.e., allowing a constant number of \(k\ge 1\) uses per step, we derive tight bounds for the competitive ratio of the problem, lying between \(1+1/(k+2)\) and \(1+1/(k+1)\). Motivated by the observation that the lower bounds heavily depend on the fact that the online algorithm does not know the end of the input sequence, we look at a scenario where an algorithm is informed when the instance ends. We show that with this information, the competitive ratio for a constant number of \(k\ge 2\) uses of recourse can be improved to strictly less than \(1+1/(k+1)\). We also show that this information improves the competitive ratio for one use of recourse per step and give a lower bound of \(\ge 1.088\) and an upper bound of 4/3 in this case.

R. Klasing—Partially supported by the ANR project TEMPOGRAL (ANR-22-CE48-0001).

T. Mömke—Partially supported by DFG Grant 439522729 (Heisenberg-Grant) and DFG Grant 439637648 (Sachbeihilfe).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 64.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 84.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Angelopoulos, S., Dürr, C., Jin, S.: Online maximum matching with recourse. J. Comb. Optim. 40(4), 974–1007 (2020). https://doi.org/10.1007/s10878-020-00641-w

    Article  MathSciNet  Google Scholar 

  2. Böckenhauer, H.-J., Burjons, E., Hromkovič, J., Lotze, H., Rossmanith, P.: Online simple knapsack with reservation costs. In: Bläser, M., Monmege, B., (eds.), 38th International Symposium on Theoretical Aspects of Computer Science, STACS 2021, 16–19 March 2021, Saarbrücken, Germany (Virtual Conference), vol. 187 of LIPIcs, pp. 16:1–16:18. Schloss Dagstuhl - Leibniz-Zentrum für Informatik (2021)

    Google Scholar 

  3. Böckenhauer, H.-J., Dreier, J., Frei, F., Rossmanith, P.: Advice for online knapsack with removable items. CoRR, abs/2005.01867 (2020)

    Google Scholar 

  4. Böckenhauer, H.-J., Komm, D., Královič, R., Královič, R., Mömke, T.: On the advice complexity of online problems. In: Dong, Y., Du, D.-Z., Ibarra, O. (eds.) ISAAC 2009. LNCS, vol. 5878, pp. 331–340. Springer, Heidelberg (2009). https://doi.org/10.1007/978-3-642-10631-6_35

    Chapter  Google Scholar 

  5. Böckenhauer, H.-J., Komm, D., Královič, R., Rossmanith, P.: The online knapsack problem: Advice and randomization. Theor. Comput. Sci. 527, 61–72 (2014)

    Article  MathSciNet  Google Scholar 

  6. Boyar, J., Favrholdt, L.M., Kotrbcík, M., Larsen, K.S.: Relaxing the irrevocability requirement for online graph algorithms. Algorithmica 84(7), 1916–1951 (2022)

    Article  MathSciNet  Google Scholar 

  7. Boyar, J., Favrholdt, L.M., Kudahl, C., Larsen, K.S., Mikkelsen, J.W.: Online algorithms with advice: a survey. ACM Comput. Surv., 50(2), 19:1–19:34 (2017)

    Google Scholar 

  8. Chen, L., Hung, L., Lotze, H., Rossmanith, P.: Online node- and edge-deletion problems with advice. Algorithmica 83(9), 2719–2753 (2021)

    Article  MathSciNet  Google Scholar 

  9. Dobrev, S., Královič, R., Pardubská, D.: How much information about the future is needed? In: Geffert, V., Karhumäki, J., Bertoni, A., Preneel, B., Návrat, P., Bieliková, M, (eds.) SOFSEM 2008: theory and practice of computer science. In: 34th Conference on Current Trends in Theory and Practice of Computer Science, Nový Smokovec, Slovakia, 19-25 January 2008, Proceedings, vol. 4910 of Lecture Notes in Computer Science, pp. 247–258. Springer (2008)

    Google Scholar 

  10. Dwibedy, D., Mohanty, R.: Semi-online scheduling: a survey. Comput. Oper. Res. 139, 105646 (2022)

    Article  MathSciNet  Google Scholar 

  11. Emek, Y., Fraigniaud, P., Korman, A., Rosén, A.: Online computation with advice. Theor. Comput. Sci. 412(24), 2642–2656 (2011)

    Article  MathSciNet  Google Scholar 

  12. Gu, A., Gupta, A., Kumar, A.: The power of deferral: maintaining a constant-competitive steiner tree online. SIAM J. Comput. 45(1), 1–28 (2016)

    Article  MathSciNet  Google Scholar 

  13. Gupta, A., Kumar, A.: Online steiner tree with deletions. In: SODA, pp. 455–467. SIAM (2014)

    Google Scholar 

  14. Han, X., Kawase, Y., Makino, K.: Online unweighted knapsack problem with removal cost. Algorithmica 70(1), 76–91 (2014)

    Article  MathSciNet  Google Scholar 

  15. Hromkovič, J., Královič, R., Královič, R.: Information complexity of online problems. In: Hlinený, P., Kucera, A., (eds.), Mathematical Foundations of Computer Science 2010, 35th International Symposium, MFCS 2010, Brno, Czech Republic, 23-27 August 2010. Proceedings, vol. 6281 of Lecture Notes in Computer Science, pp. 24–36. Springer (2010)

    Google Scholar 

  16. Imase, M., Waxman, B.M.: Dynamic steiner tree problem. SIAM J. Discret. Math. 4(3), 369–384 (1991)

    Article  MathSciNet  Google Scholar 

  17. Iwama, K., Taketomi, S.: Removable online knapsack problems. In: Widmayer, P., Eidenbenz, S., Triguero, F., Morales, R., Conejo, R., Hennessy, M. (eds.) ICALP 2002. LNCS, vol. 2380, pp. 293–305. Springer, Heidelberg (2002). https://doi.org/10.1007/3-540-45465-9_26

    Chapter  Google Scholar 

  18. Kellerer, H., Kotov, V., Speranza, M.G., Tuza, Z.: Semi on-line algorithms for the partition problem. Oper. Res. Lett. 21(5), 235–242 (1997)

    Article  MathSciNet  Google Scholar 

  19. Komm, D.: An introduction to online computation - determinism, randomization, advice. Texts in Theoretical Computer Science. An EATCS Series. Springer (2016)

    Google Scholar 

  20. Marchetti-Spaccamela, A., Vercellis, C.: Stochastic on-line knapsack problems. Math. Program. 68, 73–104 (1995)

    Article  MathSciNet  Google Scholar 

  21. Megow, N., Nölke, L.: Online minimum cost matching with recourse on the line. In: APPROX-RANDOM, Vol. 176 of LIPIcs, pages 37:1–37:16. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, (2020)

    Google Scholar 

  22. Megow, N., Skutella, M., Verschae, J., Wiese, A.: The power of recourse for online MST and TSP. SIAM J. Comput. 45(3), 859–880 (2016)

    Article  MathSciNet  Google Scholar 

  23. Rossmanith, P.: On the advice complexity of online edge- and node-deletion problems. In: Böckenhauer, H.-J., Komm, D., Unger, W. (eds.) Adventures Between Lower Bounds and Higher Altitudes. LNCS, vol. 11011, pp. 449–462. Springer, Cham (2018). https://doi.org/10.1007/978-3-319-98355-4_26

    Chapter  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Moritz Stocker .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Böckenhauer, HJ., Klasing, R., Mömke, T., Rossmanith, P., Stocker, M., Wehner, D. (2023). Online Knapsack with Removal and Recourse. In: Hsieh, SY., Hung, LJ., Lee, CW. (eds) Combinatorial Algorithms. IWOCA 2023. Lecture Notes in Computer Science, vol 13889. Springer, Cham. https://doi.org/10.1007/978-3-031-34347-6_11

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-34347-6_11

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-34346-9

  • Online ISBN: 978-3-031-34347-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics