arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.00285cs.DS
收藏

不可信预测下的在线单位利润背包

Online Unit Profit Knapsack with Untrusted Predictions

Joan Boyar, Lene M. Favrholdt, Kim S. Larsen

摘要:

在线背包问题的一个变种被认为是在可信和不可信的预测设置。在单位利润背包中,物品具有单位利润,并且很容易离线找到最佳解决方案:将尽可能多的最小物品装入背包。对于在线单位利润背包,竞争比是无界的。相比之下,以前的工作与不可信的预测在线算法一般研究的问题,其中一个恒定的竞争比的在线算法是已知的。我们的算法使用的预测(可能从机器学习源获得)是适合背包的最小物品的平均大小。对于这个在线难题中的预测误差,我们使用比率$r=\frac{a}{\hat{a}}$,其中$a$是该平均大小的实际值,$\hat{a}$是预测值。该算法实现了$\frac{1}{2r}$对$r\geq 1$和$\frac{r}{2}$对$r\leq 1$的竞争比。使用对手的技术,我们表明,这是最佳的在某种意义上说,给出了一个折衷的竞争比可达到不同的PDMATHAMT值。请注意,准确的建议,$r=1$,只有$\frac{1}{2}$的结果,但我们表明,没有算法知道值$a$可以实现比$\frac{e-1}{e}\approx 0.6321$更好的竞争比,并提出了一个匹配的上限的算法。我们还表明,后者的算法达到了竞争比$r\frac{e-1}{e}$的$r \leq 1$和$\frac{e-r}{e}$的$1 \leq r < e$,没有算法可以更好地为$r<1$和$1\leq r<e$。

英文摘要:

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=\frac{a}{\hat{a}}$ where $a$ is the actual value for this average size and $\hat{a}$ is the prediction. The algorithm presented achieves a competitive ratio of $\frac{1}{2r}$ for $r\geq 1$ and $\frac{r}{2}$ for $r\leq 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 $\frac{1}{2}$, but we show that no algorithm knowing the value $a$ can achieve a competitive ratio better than $\frac{e-1}{e}\approx 0.6321$ and present an algorithm with a matching upper bound. We also show that this latter algorithm attains a competitive ratio of $r\frac{e-1}{e}$ for $r \leq 1$ and $\frac{e-r}{e}$ for $1 \leq r < e$, and no algorithm can be better for both $r<1$ and $1\leq r<e$.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑