Encoding two-dimensional range top-k queries

Abstract

We consider the problem of encoding two-dimensional arrays, whose elements come from a total order, for answering queries. The aim is to obtain encodings that use space close to the information-theoretic lower bound, which can be constructed efficiently. For an m × n array, with m n, we first propose an encoding for answering 1-sided queries, whose query range is restricted to [1 … m][1 … a], for 1 a n. Next, we propose an encoding for answering for the general (4-sided) queries that takes (m(k+1)n n+2nm(m-1)+o(n)) bits, which generalizes the joint Cartesian tree of Golin et al. [TCS 2016]. Compared with trivial O(nmn)-bit encoding, our encoding takes less space when m = o(n). In addition to the upper bound results for the encodings, we also give lower bounds on encodings for answering 1 and 4-sided queries, which show that our upper bound results are almost optimal.

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…