A growing line of work shows how learned predictions can be used to break through worst-case barriers to improve the running time of an algorithm. However, incorporating predictions into data structures with strong theoretical guarantees remains underdeveloped. This paper takes a step in this direction by showing that predictions can be leveraged in the fundamental online list labeling problem. In the problem, n items arrive over time and must be stored in sorted order in an array of size Theta(n). The array slot of an element is its label and the goal is to maintain sorted order while minimizing the total number of elements moved (i.e., relabeled). We design a new list labeling data structure and bound its performance in two models. In the worst-case learning-augmented model, we give guarantees in terms of the error in the predictions. Our data structure provides strong guarantees: it is optimal for any prediction error and guarantees the best-known worst-case bound even when the predictions are entirely erroneous. We also consider a stochastic error model and bound the performance in terms of the expectation and variance of the error. Finally, the theoretical results are demonstrated empirically. In particular, we show that our data structure has strong performance on real temporal data sets where predictions are constructed from elements that arrived in the past, as is typically done in a practical use case.
A 2-Competitive Largest Job on Least Loaded Machine Online Algorithm based on Multi Lists Scheduling Model
最小化完工时间的同类机在线排序问题一直是文献研究的热点。在联机调度中,调度程序逐个接收作业列表,并在下一个作业到达之前将每个传入作业动态地分配给其中一台机器。在本文中,我们研究了一个变种的在线调度问题,其中要求从k个不同的来源飞行作业。同时到达的工作从多个来源,这是一个不平凡的研究挑战,以确保公平的调度相对于不同的来源,同时优化的整体完工时间表。本文提出了一种新的多列表调度模型(MLS),并基于该模型提出了一种2-竞争确定性在线算法LJLLM(Largest Job on Least Loaded Machine)。
我们考虑文件维护问题(也称为在线标记问题),其中来自集合{1,...,r}将被存储在大小为m >= n的数组中。这些项以任意顺序依次显示,并且必须以排序顺序存储在数组中(但不一定存储在数组中的连续位置)。每个新项必须在接收下一项之前存储在数组中。如果r<=m,那么我们可以简单地将项目j存储在位置j,但是如果r>m,那么我们可能必须移动存储项目的位置,以便为新到达的项目腾出空间。每次将项目存储在阵列中或移动到新位置时,算法都会收费。目标是最小化算法完成的此类移动的总数。当n=<m 1时,这个问题是非平凡<r. In the case that m=Cn for some C>的,已经给出了每项成本为O(log(n)^2)的算法[IKR 81,Wil 92,BCD+02].当m=n时,给出了每项代价为O(log(n)^3)的算法[Zha 93,BS 07].在本文中,我们证明了下界,表明这些算法是最佳的,常数因子。以前,对于这个参数范围,唯一已知的下限是受限类光滑算法的Ω(log(n)^2)下限[DSZ 05 a,Zha 93]。我们还提供了一个算法稀疏的情况下:如果项目的数量是多对数的数组大小,那么这个问题可以解决在摊销常数时间每项。