Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
research-article
Public Access

The Online Knapsack Problem with Departures

Published: 08 December 2022 Publication History

Abstract

The online knapsack problem is a classic online resource allocation problem in networking and operations research. Its basic version studies how to pack online arriving items of different sizes and values into a capacity-limited knapsack. In this paper, we study a general version that includes item departures, while also considering multiple knapsacks and multi-dimensional item sizes. We design a threshold-based online algorithm and prove that the algorithm can achieve order-optimal competitive ratios. Beyond worst-case performance guarantees, we also aim to achieve near-optimal average performance under typical instances. Towards this goal, we propose a data-driven online algorithm that learns within a policy-class that guarantees a worst-case performance bound. In trace-driven experiments, we show that our data-driven algorithm outperforms other benchmark algorithms in an application of online knapsack to job scheduling for cloud computing.

References

[1]
Shipra Agrawal, Zizhuo Wang, and Yinyu Ye. 2014. A dynamic near-optimal algorithm for online linear programming. Operations Research, Vol. 62, 4 (2014), 876--890.
[2]
Peter Auer, Nicolo Cesa-Bianchi, Yoav Freund, and Robert E Schapire. 2002. The nonstochastic multiarmed bandit problem. SIAM journal on computing, Vol. 32, 1 (2002), 48--77.
[3]
Maria-Florina Balcan. 2020. Data-driven algorithm design. arXiv preprint arXiv:2011.07177 (2020).
[4]
Maria-Florina Balcan, Travis Dick, and Ellen Vitercik. 2018. Dispersion for data-driven algorithm design, online learning, and private optimization. In 2018 IEEE 59th Annual Symposium on Foundations of Computer Science (FOCS). IEEE, 603--614.
[5]
Santiago Balseiro, Haihao Lu, and Vahab Mirrokni. 2021. The Best of Many Worlds: Dual Mirror Descent for Online Allocation Problems. Operations Research (2021), forthcoming.
[6]
Niv Buchbinder and Joseph Naor. 2009. Online primal-dual algorithms for covering and packing. Mathematics of Operations Research, Vol. 34, 2 (2009), 270--286.
[7]
Niv Buchbinder, Joseph Seffi Naor, et al. 2009. The design of competitive online algorithms via a primal--dual approach. Foundations and Trends® in Theoretical Computer Science, Vol. 3, 2--3 (2009), 93--263.
[8]
Nicolo Cesa-Bianchi and Gábor Lugosi. 2006. Prediction, learning, and games. Cambridge university press.
[9]
Vincent Cohen-Addad and Varun Kanade. 2017. Online optimization of smoothed piecewise constant functions. In Artificial Intelligence and Statistics. PMLR, 412--420.
[10]
Nikhil R Devanur and Thomas P Hayes. 2009. The adwords problem: online keyword matching with budgeted bidders under random permutations. In Proceedings of the 10th ACM conference on Electronic commerce. 71--78.
[11]
Nikhil R Devanur, Kamal Jain, Balasubramanian Sivan, and Christopher A Wilkens. 2019. Near optimal online algorithms and fast approximation algorithms for resource allocation problems. Journal of the ACM (JACM), Vol. 66, 1 (2019), 1--41.
[12]
Ran El-Yaniv, Amos Fiat, Richard M Karp, and Gordon Turpin. 2001. Optimal search and one-way trading online algorithms. Algorithmica, Vol. 30, 1 (2001), 101--139.
[13]
Matthew Faw, Orestis Papadigenopoulos, Constantine Caramanis, and Sanjay Shakkottai. 2022. Learning To Maximize Welfare with a Reusable Resource. Proceedings of the ACM on Measurement and Analysis of Computing Systems, Vol. 6, 2 (2022), 1--30.
[14]
Yoav Freund and Robert E Schapire. 1997. A decision-theoretic generalization of on-line learning and an application to boosting. Journal of computer and system sciences, Vol. 55, 1 (1997), 119--139.
[15]
Lingwen Gan, Ufuk Topcu, and Steven H Low. 2012. Stochastic distributed protocol for electric vehicle charging with discrete charging rate. In 2012 IEEE Power and Energy Society General Meeting. IEEE, 1--8.
[16]
Shashank Goyal and Diwakar Gupta. 2020. The Online Reservation Problem. Algorithms, Vol. 13, 10 (2020), 241.
[17]
Vineet Goyal, Garud Iyengar, and Rajan Udwani. 2021. Asymptotically Optimal Competitive Ratio for Online Allocation of Reusable Resources. In Web and Internet Economics - 17th International Conference, WINE 2021, Potsdam, Germany, December 14--17, 2021, Proceedings, Vol. 13112. Springer, 543.
[18]
Zhiyi Huang and Anthony Kim. 2019. Welfare maximization with production costs: A primal dual approach. Games and Economic Behavior, Vol. 118 (2019), 648--667.
[19]
Devansh Jalota, Dario Paccagnan, Maximilian Schiffer, and Marco Pavone. 2021. Online Traffic Routing: Deterministic Limits and Data-driven Enhancements. arXiv preprint arXiv:2109.08706 (2021).
[20]
Hans Kellerer, Ulrich Pferschy, and David Pisinger. 2004. Multiple knapsack problems. In Knapsack Problems. Springer, 285--316.
[21]
Xiaocheng Li and Yinyu Ye. 2021. Online linear programming: Dual convergence, new algorithms, and regret bounds. Operations Research (2021).
[22]
Richard J Lipton and Andrew Tomkins. 1994. Online Interval Scheduling. In SODA, Vol. 94. 302--311.
[23]
Alberto Marchetti-Spaccamela and Carlo Vercellis. 1995. Stochastic on-line knapsack problems. Mathematical Programming, Vol. 68, 1 (1995), 73--104.
[24]
Charles Reiss, Alexey Tumanov, Gregory R Ganger, Randy H Katz, and Michael A Kozuch. 2012. Heterogeneity and dynamicity of clouds at scale: Google trace analysis. In Proceedings of the third ACM symposium on cloud computing. 1--13.
[25]
Vincenzo Sciancalepore, Konstantinos Samdanis, Xavier Costa-Perez, Dario Bega, Marco Gramaglia, and Albert Banchs. 2017. Mobile traffic forecasting for maximizing 5G network slicing resource utilization. In IEEE INFOCOM 2017-IEEE Conference on Computer Communications. IEEE, 1--9.
[26]
Clifford Stein, Van-Anh Truong, and Xinshang Wang. 2020. Advance service reservations with heterogeneous customers. Management Science, Vol. 66, 7 (2020), 2929--2950.
[27]
Bo Sun, Ali Zeynali, Tongxin Li, Mohammad Hajiesmaili, Adam Wierman, and Danny H.K. Tsang. 2020. Competitive Algorithms for the Online Multiple Knapsack Problem with Application to Electric Vehicle Charging. Proc. ACM Meas. Anal. Comput. Syst., Vol. 4, 3, Article 51 (Nov. 2020), 32 pages.
[28]
Xiaoqi Tan, Bo Sun, Alberto Leon-Garcia, Yuan Wu, and Danny HK Tsang. 2020. Mechanism design for online resource allocation: A unified approach. Proceedings of the ACM on Measurement and Analysis of Computing Systems, Vol. 4, 2 (2020), 1--46.
[29]
Lin Yang, Ali Zeynali, Mohammad H Hajiesmaili, Ramesh K Sitaraman, and Don Towsley. 2021. Competitive Algorithms for Online Multidimensional Knapsack Problems. Proceedings of the ACM on Measurement and Analysis of Computing Systems, Vol. 5, 3 (2021), 1--30.
[30]
Ali Zeynali, Bo Sun, Mohammad Hajiesmaili, and Adam Wierman. 2021. Data-driven competitive algorithms for online knapsack and set cover. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 35. 10833--10841.
[31]
Xiaoxi Zhang, Zhiyi Huang, Chuan Wu, Zongpeng Li, and Francis CM Lau. 2015. Online auctions in IaaS clouds: Welfare and profit maximization with server costs. In Proceedings of the 2015 ACM SIGMETRICS International Conference on Measurement and Modeling of Computer Systems. 3--15.
[32]
Zijun Zhang, Zongpeng Li, and Chuan Wu. 2017. Optimal Posted Prices for Online Cloud Resource Allocation. Proc. ACM Meas. Anal. Comput. Syst., Vol. 1, 1 (June 2017), 26 pages.
[33]
Yunhong Zhou, Deeparnab Chakrabarty, and Rajan Lukose. 2008. Budget constrained bidding in keyword auctions and online knapsack problems. In International Workshop on Internet and Network Economics. Springer, 566--576.

Cited By

View all
  • (2024)LACS: Learning-Augmented Algorithms for Carbon-Aware Resource Scaling with Uncertain DemandProceedings of the 15th ACM International Conference on Future and Sustainable Energy Systems10.1145/3632775.3661942(27-45)Online publication date: 4-Jun-2024
  • (2024)Driver Maneuver Interaction Identification with Anomaly-Aware Federated Learning on Heterogeneous Feature RepresentationsProceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies10.1145/36314217:4(1-28)Online publication date: 12-Jan-2024
  • (2024)Online and Collaboratively Mitigating Multi-Vector DDoS Attacks for Cloud-Edge ComputingICC 2024 - IEEE International Conference on Communications10.1109/ICC51166.2024.10623052(1394-1399)Online publication date: 9-Jun-2024
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

cover image Proceedings of the ACM on Measurement and Analysis of Computing Systems
Proceedings of the ACM on Measurement and Analysis of Computing Systems  Volume 6, Issue 3
POMACS
December 2022
534 pages
EISSN:2476-1249
DOI:10.1145/3576048
Issue’s Table of Contents
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 08 December 2022
Published in POMACS Volume 6, Issue 3

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. cloud job scheduling
  2. competitive ratio
  3. data-driven algorithms
  4. knapsack with departures
  5. online knapsack problems

Qualifiers

  • Research-article

Funding Sources

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)503
  • Downloads (Last 6 weeks)51
Reflects downloads up to 12 Sep 2024

Other Metrics

Citations

Cited By

View all
  • (2024)LACS: Learning-Augmented Algorithms for Carbon-Aware Resource Scaling with Uncertain DemandProceedings of the 15th ACM International Conference on Future and Sustainable Energy Systems10.1145/3632775.3661942(27-45)Online publication date: 4-Jun-2024
  • (2024)Driver Maneuver Interaction Identification with Anomaly-Aware Federated Learning on Heterogeneous Feature RepresentationsProceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies10.1145/36314217:4(1-28)Online publication date: 12-Jan-2024
  • (2024)Online and Collaboratively Mitigating Multi-Vector DDoS Attacks for Cloud-Edge ComputingICC 2024 - IEEE International Conference on Communications10.1109/ICC51166.2024.10623052(1394-1399)Online publication date: 9-Jun-2024
  • (2023)The Online Pause and Resume Problem: Optimal Algorithms and An Application to Carbon-Aware Load ShiftingProceedings of the ACM on Measurement and Analysis of Computing Systems10.1145/36267767:3(1-32)Online publication date: 12-Dec-2023
  • (2023)Trade-off Analysis in Learning-augmented Algorithms with Societal Design CriteriaACM SIGMETRICS Performance Evaluation Review10.1145/3626570.362659051:2(53-58)Online publication date: 2-Oct-2023
  • (2023)The Online Knapsack Problem with DeparturesACM SIGMETRICS Performance Evaluation Review10.1145/3606376.359357651:1(59-60)Online publication date: 27-Jun-2023
  • (2023)The Online Knapsack Problem with DeparturesAbstract Proceedings of the 2023 ACM SIGMETRICS International Conference on Measurement and Modeling of Computer Systems10.1145/3578338.3593576(59-60)Online publication date: 19-Jun-2023
  • (2023)Near-optimal Online Algorithms for Joint Pricing and Scheduling in EV Charging NetworksProceedings of the 14th ACM International Conference on Future Energy Systems10.1145/3575813.3576878(72-83)Online publication date: 16-Jun-2023
  • (undefined)A Competitive Analysis of Online Knapsack Problems with Unit DensitySSRN Electronic Journal10.2139/ssrn.3423199

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Get Access

Login options

Full Access

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media