English

Encoding two-dimensional range top-k queries

Data Structures and Algorithms 2021-07-13 v3

Abstract

We consider the problem of encoding two-dimensional arrays, whose elements come from a total order, for answering \topk{} 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×nm \times n array, with mnm \le n, we first propose an encoding for answering 1-sided \topk{} queries, whose query range is restricted to [1m][1a][1 \dots m][1 \dots a], for 1an1 \le a \le n. Next, we propose an encoding for answering for the general (4-sided) \topk{} queries that takes (mlg((k+1)nn)+2nm(m1)+o(n))(m\lg{{(k+1)n \choose n}}+2nm(m-1)+o(n)) bits, which generalizes the \textit{joint Cartesian tree} of Golin et al. [TCS 2016]. Compared with trivial O(nmlgn)O(nm\lg{n})-bit encoding, our encoding takes less space when m=o(lgn)m = o(\lg{n}). In addition to the upper bound results for the encodings, we also give lower bounds on encodings for answering 11 and 44-sided \topk{} queries, which show that our upper bound results are almost optimal.

Keywords

Cite

@article{arxiv.1809.07067,
  title  = {Encoding two-dimensional range top-k queries},
  author = {Seungbum Jo and Srinivasa Rao Satti},
  journal= {arXiv preprint arXiv:1809.07067},
  year   = {2021}
}