Tight lower bounds for the online labeling problem

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 the algorithm has to do. 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 [Itai et al. (1981), Willard (1992), Bender et al. (2002)]. When m=n, algorithms with cost O(log(n)3) per item were given [Zhang (1993),Bird and Sadnicki (2007)]. 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 [Dietz et al. (2005), Zhang (1993)]. 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.

[1]  Jing Wu,et al.  A locality-preserving cache-oblivious dynamic dictionary , 2002, SODA '02.

[2]  Ju Zhang Density Control and On-Line Labeling Problems , 1993 .

[3]  Richard Cole,et al.  Two Simplified Algorithms for Maintaining Order in a List , 2002, ESA.

[4]  Dan E. Willard,et al.  A Density Control Algorithm for Doing Insertions and Deletions in a Sequentially Ordered File in Good Worst-Case Time , 1992, Inf. Comput..

[5]  Richard S. Bird,et al.  Minimal on-line labelling , 2007, Inf. Process. Lett..

[6]  Tsvi Kopelowitz On-Line Indexing for General Alphabets via Predecessor Queries on Subsets of an Ordered List , 2012, 2012 IEEE 53rd Annual Symposium on Foundations of Computer Science.

[7]  Shay Kutten,et al.  Controller and estimator for dynamic networks , 2007, PODC '07.

[8]  Michael E. Saks,et al.  Local management of a global resource in a communication network , 1987, 28th Annual Symposium on Foundations of Computer Science (sfcs 1987).

[9]  Michael E. Saks,et al.  On Online Labeling with Polynomially Many Labels , 2012, ESA.

[10]  AfekYehuda,et al.  Local management of a global resource in a communication network , 1996 .

[11]  Gerth Stølting Brodal,et al.  Cache oblivious search trees via binary trees of small height , 2001, SODA '02.

[12]  Michael E. Saks,et al.  On Randomized Online Labeling with Polynomially Many Labels , 2013, ICALP.

[13]  Amos Korman,et al.  New bounds for the controller problem , 2009, Distributed Computing.

[14]  Paul F. Dietz,et al.  A Tight Lower Bound for Online Monotonic List Labeling , 2004, SIAM J. Discret. Math..

[15]  Alon Itai,et al.  A Sparse Table Implementation of Priority Queues , 1981, ICALP.

[16]  Paul F. Dietz,et al.  Lower Bounds for Monotonic List Labeling , 1990, SWAT.

[17]  Michael A. Bender,et al.  An adaptive packed-memory array , 2006, TODS.

[18]  Michael A. Bender,et al.  Cache-oblivious B-trees , 2000, Proceedings 41st Annual Symposium on Foundations of Computer Science.

[19]  Paul F. Dietz Maintaining order in a linked list , 1982, STOC '82.