Dynamic integer sets with optimal rank, select, and predecessor search

M. Patrascu, Mikkel Thorup

25 Citations (Scopus)

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 S y < x}. rank(x) returns #{y y < x}. select (i) returns y 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/log log 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]. Ajtai et al. presented such a data structure in Yaofs 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 [STOC129;f90] 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.

Original languageEnglish
Title of host publicationFOCS 2014 : 55th Annual Symposium on Foundations of Computer Science
Number of pages10
PublisherIEEE
Publication date7 Dec 2014
Pages166-175
ISBN (Electronic)978-1-4799-6517-5
DOIs
Publication statusPublished - 7 Dec 2014
EventIEEE Annual Symposium on Foundations of Computer Science (FOCS) - Radisson Blu Warwick Hotel, Philadelphia, United States
Duration: 18 Oct 201421 Oct 2014
Conference number: 55

Conference

ConferenceIEEE Annual Symposium on Foundations of Computer Science (FOCS)
Number55
LocationRadisson Blu Warwick Hotel
Country/TerritoryUnited States
CityPhiladelphia
Period18/10/201421/10/2014

Fingerprint

Dive into the research topics of 'Dynamic integer sets with optimal rank, select, and predecessor search'. Together they form a unique fingerprint.

Cite this