skip to main content
10.1145/2213977.2214083acmconferencesArticle/Chapter ViewAbstractPublication PagesstocConference Proceedingsconference-collections
research-article

Tight lower bounds for the online labeling problem

Published:19 May 2012Publication History

ABSTRACT

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.

Skip Supplemental Material Section

Supplemental Material

stoc_13a_6.mp4

mp4

107.7 MB

References

  1. Yehuda Afek, Baruch Awerbuch, Serge A. Plotkin, and Michael E. Saks. Local management of a global resource in a communication network. J. ACM, 43(1):1--19, 1996. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Martin Babka, Jan Bulánek, Vladimír Cunát, Michal Koucký, and Michael E. Saks. On online labeling with polynomially many labels. In preparation, 2012.Google ScholarGoogle Scholar
  3. Michael A. Bender, Richard Cole, Erik D. Demaine, Martin Farach-Colton, and Jack Zito. Two simplified algorithms for maintaining order in a list. In ESA, pages 152--164, 2002. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Michael A. Bender, Erik D. Demaine, and Martin Farach-Colton. Cache-oblivious B-trees. SIAM J. Comput., 35(2):341--358, 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Michael A. Bender, Ziyang Duan, John Iacono, and Jing Wu. A locality-preserving cache-oblivious dynamic dictionary. J. Algorithms, 53(2):115--136, 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Gerth Stølting Brodal, Rolf Fagerberg, and Riko Jacob. Cache oblivious search trees via binary trees of small height. In SODA, pages 39--48, 2002. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Richard S. Bird and Stefan Sadnicki. Minimal on-line labelling. Inf. Process. Lett., 101(1):41--45, 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Paul F. Dietz, Joel I. Seiferas, and Ju Zhang. A tight lower bound for online monotonic list labeling. SIAM J. Discrete Math., 18(3):626--637, 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Paul F. Dietz, Joel I. Seiferas, and Ju Zhang. Lower bounds for smooth list labeling. Manuscript, 2005. (Listed in the references of Dietz-SIAM).Google ScholarGoogle Scholar
  10. Paul F. Dietz and Ju Zhang. Lower bounds for monotonic list labeling. In SWAT, pages 173--180, 1990. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. Yuval Emek and Amos Korman. New bounds for the controller problem. Distributed Computing, 24(3--4):177--186, 2011.Google ScholarGoogle Scholar
  12. Alon Itai, Alan G. Konheim, and Michael Rodeh. A sparse table implementation of priority queues. In ICALP, pages 417--431, 1981. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. Amos Korman and Shay Kutten. Controller and estimator for dynamic networks. In PODC, pages 175--184, 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. Dan E. Willard. A density control algorithm for doing insertions and deletions in a sequentially ordered file in good worst-case time. Inf. Comput., 97(2):150--204, 1992. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. Ju Zhang. Density Control and On-Line Labeling Problems. PhD thesis, University of Rochester, 1993.Google ScholarGoogle Scholar

Index Terms

  1. Tight lower bounds for the online labeling problem

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Conferences
      STOC '12: Proceedings of the forty-fourth annual ACM symposium on Theory of computing
      May 2012
      1310 pages
      ISBN:9781450312455
      DOI:10.1145/2213977

      Copyright © 2012 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 19 May 2012

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • research-article

      Acceptance Rates

      Overall Acceptance Rate1,469of4,586submissions,32%

      Upcoming Conference

      STOC '24
      56th Annual ACM Symposium on Theory of Computing (STOC 2024)
      June 24 - 28, 2024
      Vancouver , BC , Canada

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader