skip to main content
10.1145/28395.28434acmconferencesArticle/Chapter ViewAbstractPublication PagesstocConference Proceedingsconference-collections
Article
Free Access

Two algorithms for maintaining order in a list

Published:01 January 1987Publication History

ABSTRACT

The order maintenance problem is that of maintaining a list under a sequence of Insert and Delete operations, while answering Order queries (determine which of two elements comes first in the list). We give two new algorithms for this problem. The first algorithm matches the O(1) amortized time per operation of the best previously known algorithm, and is much simpler. The second algorithm permits all operations to be performed in O(1) worst-case time.

References

  1. 1.Baker, H. G. Jr. List Processing in Ileal Time on a Serial Computer. C.ACM 21(4), April 1978, pages 280-294. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. 2.Dietz, P. F. Maintaining Order in a Linked List. Proc. 14th ACM STOC, May 1982, pages t22-127. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. 3.Driscoll, J. R., Sarnak, N., Sleator, D. D., Tarjan, R. E. Making Data Structures Persistent. Proc. l$th A CM STOC, May 1986. To appear in JCSS. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. 4.Sleator, D. D., Tarjan, R., E. Arn.ortized Efficiency of List Update and Paging Rules. C. A CM 28(2}, February 1985, pages 202-206. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. 5.Tarjan, R. E. Amortized Compu'Lational Complexity. SIAM J. AIg. Disc. Meth. 2(6), April 1985, pages 306- 318.Google ScholarGoogle ScholarCross RefCross Ref
  6. 6.Tsakalidis, A. K. Maintaining Order in a Generalized Linked List. Acts lnformatica, 21(1), 198,i, pages 101- 112. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. 7.Wegbreit, B. Retrieval from Context Trees. {afo. Proc. Lett. 3(4), March 1975, pages 119-120.Google ScholarGoogle ScholarCross RefCross Ref
  8. 8.Willard, D. E. Maintaining Dense :Sequential Files in a Dynamic Environment. Proc. 14th A CM S'TOC, May 1982, pages 114-12/. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. 9.Willard, D. E. Good Worst-Case Algorithms for Inserting and Deleting Records in Dense Sequential Files. A CM SIGMOD 8'6, May 1986, pages 251-260. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Two algorithms for maintaining order in a list

              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 '87: Proceedings of the nineteenth annual ACM symposium on Theory of computing
                January 1987
                471 pages
                ISBN:0897912217
                DOI:10.1145/28395

                Copyright © 1987 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: 1 January 1987

                Permissions

                Request permissions about this article.

                Request Permissions

                Check for updates

                Qualifiers

                • Article

                Acceptance Rates

                STOC '87 Paper Acceptance Rate50of165submissions,30%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