Skip to main content
QUICK REVIEW

[Paper Review] Dynamic Integer Sets with Optimal Rank, Select, and Predecessor Search

Mihai Pǎtraşcu, Mikkel Thorup|arXiv (Cornell University)|Aug 13, 2014
Algorithms and Data CompressionComputer Science22 references7 citations
TL;DR

This paper presents a deterministic dynamic integer set data structure on a word RAM that supports insert, delete, predecessor, successor, rank, and select operations in optimal O(log n / log w) time, matching known lower bounds. The key innovation is a dynamic fusion node enabling constant-time operations for small sets (n = w^O(1)), resolving a long-standing open problem in data structures.

ABSTRACT

We present a data structure representing a dynamic set S of w-bit integers on a w-bit word RAM. With |S|=n and w > log n and space O(n), we support the following standard operations in O(log n / log w) time: - insert(x) sets S = S + {x}. - delete(x) sets S = S - {x}. - predecessor(x) returns max{y in S | y< x}. - successor(x) returns min{y in S | y >= x}. - rank(x) returns #{y in S | y< x}. - select(i) returns y in S with rank(y)=i, if any. Our O(log n/log w) bound is optimal for dynamic rank and select, matching a lower bound of Fredman and Saks [STOC'89]. When the word length is large, our time bound is also optimal for dynamic predecessor, matching a static lower bound of Beame and Fich [STOC'99] whenever log n/log w=O(log w/loglog w). Technically, the most interesting aspect of our data structure is that it supports all the above operations in constant time for sets of size n=w^{O(1)}. This resolves a main open problem of Ajtai, Komlos, and Fredman [FOCS'83]. Ajtai et al. presented such a data structure in Yao's abstract cell-probe model with w-bit cells/words, but pointed out that the functions used could not be implemented. As a partial solution to the problem, Fredman and Willard [STOC'90] introduced a fusion node that could handle queries in constant time, but used polynomial time on the updates. We call our small set data structure a dynamic fusion node as it does both queries and updates in constant time.

Motivation & Objective

  • Address the long-standing open problem of achieving optimal time bounds for dynamic rank and select operations in integer sets.
  • Resolve the challenge of supporting efficient predecessor queries in dynamic integer sets with optimal time complexity.
  • Design a data structure that achieves optimal query and update times simultaneously, matching known cell-probe lower bounds.
  • Construct a dynamic fusion node that supports all operations in constant time for small sets (n = w^O(1)), solving a key problem posed by Ajtai, Komlós, and Fredman.

Proposed method

  • Leverage the word RAM model with w-bit words, assuming w ≥ log n to support indexing and constant-time word operations.
  • Introduce a dynamic fusion node that supports insert, delete, rank, select, predecessor, and successor in O(1) time for sets of size n = w^O(1).
  • Combine van Emde Boas-style recursive structures with dynamic fusion nodes at the bottom level to achieve logarithmic query time.
  • Use a hierarchical structure with multiple levels: top levels use a modified fusion-based approach, while bottom levels use tuned van Emde Boas or Y-fast tries with dynamic fusion nodes.
  • Apply a parameterized construction based on h and q to balance space and time, using O(q^{2h}) space for substructures and de-amortizing construction costs.
  • Utilize a reduction from static lower bounds to dynamic settings by simulating static data structures via dynamic insertion sequences, preserving lower bound implications.

Experimental results

Research questions

  • RQ1Can dynamic integer sets support rank and select operations in time matching the Fredman-Saks lower bound of O(log n / log w)?
  • RQ2Is it possible to achieve optimal dynamic predecessor search time O(log n / log w) when w is large, matching the Beame-Fich static lower bound?
  • RQ3Can a dynamic fusion node be constructed that supports all operations in constant time for small sets (n = w^O(1)), resolving the open problem of Ajtai et al.?
  • RQ4How can the hierarchical structure be designed to maintain optimal time complexity across all levels while ensuring linear space usage?
  • RQ5What is the tightest possible bound for dynamic predecessor search when the key length ℓ is bounded, and how can it be achieved with dynamic operations?

Key findings

  • The data structure supports all standard operations—insert, delete, predecessor, successor, rank, and select—in O(log n / log w) time, which is optimal for dynamic rank and select operations.
  • The time bound O(log n / log w) is optimal for dynamic predecessor search when log n / log w = O(log w / log log w), matching the static cell-probe lower bound of Beame and Fich.
  • For small sets with n = w^O(1), the data structure achieves O(1) time for all operations via a novel dynamic fusion node, resolving a major open problem.
  • The dynamic fusion node enables constant-time operations for small sets, providing a deterministic solution where previous constructions used polynomial time or randomized methods.
  • The construction achieves optimal bounds across all parameter regimes, including the case where the key universe is nearly full (2^ℓ - n small), by tuning the van Emde Boas recursion depth.
  • The space usage is O(n), and the time bounds are tight even when considering both query and update times, matching the strongest known lower bounds in the cell-probe model.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.