Abstract

We consider the file maintenance problem (also called the online labeling problem) in which $n$ integer items from the set $\{1,\ldots,r\}$ are to be stored in an array of size $m \geq 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 \leq 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 moves the algorithm has to do. This problem is nontrivial for $n\le m < r$. In the case that $m = Cn$ for some $C>1$, algorithms are known that solve the problem with cost $O(n\log^2(n))$ (independent of $r$). For the case $m=n$, algorithms with cost $O(n\log^3(n))$ were given. In this paper we prove lower bounds that show that these algorithms are optimal, up to constant factors. Previously, a lower bound of $\Omega(n\log^2(n))$ was known for the restricted class of smooth algorithms [J. Zhang, Ph.D. thesis, University of Rochester, Rochester, NY].

Keywords

  1. file maintenance problem
  2. lower bounds
  3. online labeling

MSC codes

  1. 68Q25

Get full access to this article

View all available purchase options and get full access to this article.

References

1.
Y. Afek, B. Awerbuch, S. A. Plotkin, and M. E. Saks, Local management of a global resource in a communication network, J. ACM, 43 (1996), pp. 1--19.
2.
M. Babka, J. Bulánek, V. Čunát, M. Koucký, and M. E. Saks, On online labeling with polynomially many labels, in Proceedings of the 20th Annual European Symposium on Algorithms, ESA '12, Springer, Berlin, 2012, pp. 121--132.
3.
M. A. Bender, R. Cole, E. D. Demaine, M. Farach-Colton, and J. Zito, Two simplified algorithms for maintaining order in a list, in Proceedings of the 10th Annual European Symposium on Algorithms, ESA '02, Springer, Berlin, 2002, pp. 152--164.
4.
M. A. Bender, E. D. Demaine, and M. Farach-Colton, Cache-oblivious B-trees, SIAM J. Comput., 35 (2005), pp. 341--358.
5.
M. A. Bender, Z. Duan, J. Iacono, and J. Wu, A locality-preserving cache-oblivious dynamic dictionary, J. Algorithms, 53 (2004), pp. 115--136.
6.
M. A. Bender and H. Hu, An adaptive packed-memory array, ACM Trans. Database Syst., 32 (2007), 26.
7.
R. S. Bird and S. Sadnicki, Minimal on-line labelling, Inform. Process. Lett., 101 (2007), pp. 41--45.
8.
G. S. Brodal, R. Fagerberg, and R. Jacob, Cache oblivious search trees via binary trees of small height, In Proceedings of the Thirteenth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA '02, SIAM, Philadelphia, 2002, pp. 39--48.
9.
J. Bulánek, M. Koucký, and M. Saks, On randomized online labeling with polynomially many labels, in Proceedings of the 40th International Colloquium on Automata, Languages and Programming, ICALP '13, Springer, Berlin, 2013, pp. 291--302.
10.
P. F. Dietz, Maintaining order in a linked list, in Proceedings of the 14th Annual ACM Symposium on Theory of Computing, ACM, New York, 1982, pp. 122--127.
11.
P. F. Dietz, J. I. Seiferas, and J. Zhang, Lower Bounds for Smooth List Labeling, manuscript, 2005.
12.
P. F. Dietz, J. I. Seiferas, and J. Zhang, A tight lower bound for online monotonic list labeling, SIAM J. Discrete Math., 18 (2004), pp. 626--637.
13.
P. F. Dietz and J. Zhang, Lower bounds for monotonic list labeling, in SWAT 90, 1990, Springer, Berlin, pp. 173--180.
14.
Y. Emek and A. Korman, New bounds for the controller problem, Distrib. Comput., 24 (2011), pp. 177--186.
15.
A. Itai, A. G. Konheim, and M. Rodeh, A sparse table implementation of priority queues, in Proceedings of the 8th Colloquium on Automata, Languages and Programming, Springer, Berlin, 1981, pp. 417--431.
16.
T. Kopelowitz, On-line indexing for general alphabets via predecessor queries on subsets of an ordered list, in Proceedings of the 53rd Annual IEEE Symposium on Foundations of Computer Science (FOCS), IEEE, Piscataway, NJ, 2012, pp. 283--292.
17.
A. Korman and S. Kutten, Controller and estimator for dynamic networks, in Proceedings of the 26th Annual ACM Symposium on Principles of Distributed Computing (PODC '07), ACM, New York, 2007, pp. 175--184.
18.
D. E. Willard, A density control algorithm for doing insertions and deletions in a sequentially ordered file in a good worst-case time, Inform. and Comput., 97 (1992), pp. 150--204.
19.
J. Zhang, Density Control and On-Line Labeling Problems, Ph.D. thesis, University of Rochester, Rochester, NY, 1993.

Information & Authors

Information

Published In

cover image SIAM Journal on Computing
SIAM Journal on Computing
Pages: 1765 - 1797
ISSN (online): 1095-7111

History

Submitted: 28 January 2013
Accepted: 13 May 2015
Published online: 1 December 2015

Keywords

  1. file maintenance problem
  2. lower bounds
  3. online labeling

MSC codes

  1. 68Q25

Authors

Affiliations

Metrics & Citations

Metrics

Citations

If you have the appropriate software installed, you can download article citation data to the citation manager of your choice. Simply select your manager software from the list below and click Download.

Cited By

View Options

View options

PDF

View PDF

Figures

Tables

Media

Share

Share

Copy the content Link

Share with email

Email a colleague

Share on social media