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

在线标号问题的紧下界

Tight lower bounds for online labeling problem

Jan Bulánek, Michal Koucký, Michael Saks

摘要:

我们考虑文件维护问题(也称为在线标记问题),其中来自集合{1,...,r}将被存储在大小为m >= n的数组中。这些项以任意顺序依次显示,并且必须以排序顺序存储在数组中(但不一定存储在数组中的连续位置)。每个新项必须在接收下一项之前存储在数组中。如果r<=m,那么我们可以简单地将项目j存储在位置j,但是如果r>m,那么我们可能必须移动存储项目的位置,以便为新到达的项目腾出空间。每次将项目存储在阵列中或移动到新位置时,算法都会收费。目标是最小化算法完成的此类移动的总数。当n=&lt;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]。我们还提供了一个算法稀疏的情况下:如果项目的数量是多对数的数组大小,那么这个问题可以解决在摊销常数时间每项。

英文摘要:

We consider the file maintenance problem (also called the online labeling problem) in which n integer items from the set {1,...,r} are to be stored in an array of size m >= n. The items are presented sequentially in an arbitrary order, and must be stored in the array in sorted order (but not necessarily in consecutive locations in the array). Each new item must be stored in the array before the next item is received. If r<=m then we can simply store item j in location j but if r>m then we may have to shift the location of stored items to make space for a newly arrived item. The algorithm is charged each time an item is stored in the array, or moved to a new location. The goal is to minimize the total number of such moves done by the algorithm. This problem is non-trivial when n=<m<r. In the case that m=Cn for some C>1, algorithms for this problem with cost O(log(n)^2) per item have been given [IKR81, Wil92, BCD+02]. When m=n, algorithms with cost O(log(n)^3) per item were given [Zha93, BS07]. In this paper we prove lower bounds that show that these algorithms are optimal, up to constant factors. Previously, the only lower bound known for this range of parameters was a lower bound of Ω(log(n)^2) for the restricted class of smooth algorithms [DSZ05a, Zha93]. We also provide an algorithm for the sparse case: If the number of items is polylogarithmic in the array size then the problem can be solved in amortized constant time per item.

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

↑