Optimal Encodings for Range Top-k, Selection, and Min-Max

Abstract

We consider encoding problems for range queries on arrays. In these problems the goal is to store a structure capable of recovering the answer to all queries that occupies the information theoretic minimum space possible, to within lower order terms. As input, we are given an array A[1..n], and a fixed parameter k ∈ [1,n]. A range top-k query on an arbitrary range [i,j] ⊂eq [1,n] asks us to return the ordered set of indices \1, ..., k\ such that A[m] is the m-th largest element in A[i..j], for 1 m k. A range selection query for an arbitrary range [i,j] ⊂eq [1,n] and query parameter k' ∈ [1,k] asks us to return the index of the k'-th largest element in A[i..j]. We completely resolve the space complexity of both of these heavily studied problems---to within lower order terms---for all k = o(n). Previously, the constant factor in the space complexity was known only for k=1. We also resolve the space complexity of another problem, that we call range min-max, in which the goal is to return the indices of both the minimum and maximum elements in a range.

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…