Two algorithms for maintaining order in a list

  • Authors:
  • P. Dietz;D. Sleator

  • Affiliations:
  • Schlumberger-Doll Research, Ridgefield, CT;Carnegie-Mellon University, Pittsburgh, PA

  • Venue:
  • STOC '87 Proceedings of the nineteenth annual ACM symposium on Theory of computing
  • Year:
  • 1987

Quantified Score

Hi-index 0.00

Visualization

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.