Succinct Approximate Rank Queries

Abstract

We consider the problem of summarizing a multi set of elements in \1, 2, … , n\ under the constraint that no element appears more than times. The goal is then to answer rank queries --- given i∈\1, 2, … , n\, how many elements in the multi set are smaller than i? --- with an additive error of at most and in constant time. For this problem, we prove a lower bound of B,n, n / (\ / ,1\ + 1) bits and provide a succinct construction that uses B,n,(1+o(1)) bits. Next, we generalize our data structure to support processing of a stream of integers in \0,1,…,\, where upon a query for some i n we provide a -additive approximation for the sum of the last i elements. We show that this too can be done using B,n,(1+o(1)) bits and in constant time. This yields the first sub linear space algorithm that computes approximate sliding window sums in O(1) time, where the window size is given at the query time; additionally, it requires only (1+o(1)) more space than is needed for a fixed window size.

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…