Online Unit Profit Knapsack with Untrusted Predictions
Not on the map. Why?
Abstract (arXiv)
A variant of the online knapsack problem is considered in the settings of trusted and untrusted predictions. In Unit Profit Knapsack, the items have unit profit, and it is easy to find an optimal solution offline: Pack as many of the smallest items as possible into the knapsack. For Online Unit Profit Knapsack, the competitive ratio is unbounded. In contrast, previous work on online algorithms with untrusted predictions generally studied problems where an online algorithm with a constant competitive ratio is known. The prediction, possibly obtained from a machine learning source, that our algorithm uses is the average size of those smallest items that fit in the knapsack. For the prediction error in this hard online problem, we use the ratio r=fracahata where a is the actual value for this average size and hata is the prediction. The algorithm presented achieves a competitive ratio of frac12r for r≥ 1 and fracr2 for r≤ 1. Using an adversary technique, we show that this is optimal in some sense, giving a trade-off in the competitive ratio attainable for different values of r. Note that the result for accurate advice, r=1, is only frac12, but we show that no algorithm knowing the value a can achieve a competitive ratio better than frace-1e≈ 0.6321 and present an algorithm with a matching upper bound. We also show that this latter algorithm attains a competitive ratio of rfrace-1e for r ≤ 1 and frace-re for 1 ≤ r < e, and no algorithm can be better for both r<1 and 1≤ r<e.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). First posted on arXiv 1 Mar 2022.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 1; 2023: 0; 2024: 3.
4 papers.
- 2024Algorithms for Caching and MTS with reduced number of predictionscited by 12
- 2022Paging with Succinct Predictionscited by 10
- 2024Near-Optimal Consistency-Robustness Trade-Offs for Learning-Augmented Online Knapsack Problemscited by 5
- 2024A Simple Learning-Augmented Algorithm for Online Packing with Concave Objectivescited by 0
- 2024Near-Optimal Consistency-Robustness Trade-Offs for Learning-Augmented Online Knapsack Problems26 Jun 2024
- 2024A Simple Learning-Augmented Algorithm for Online Packing with Concave Objectives5 Jun 2024
- 2024Algorithms for Caching and MTS with reduced number of predictions9 Apr 2024
- 2022Paging with Succinct Predictions6 Oct 2022