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 \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 array, with , we first propose an encoding for answering 1-sided \topk{} queries, whose query range is restricted to , for . Next, we propose an encoding for answering for the general (4-sided) \topk{} queries that takes bits, which generalizes the \textit{joint Cartesian tree} of Golin et al. [TCS 2016]. Compared with trivial -bit encoding, our encoding takes less space when . In addition to the upper bound results for the encodings, we also give lower bounds on encodings for answering and -sided \topk{} queries, which show that our upper bound results are almost optimal.
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}
}