Simultaneous encodings for range and next/previous larger/smaller value queries
Abstract
Given an array of elements from a total order, we propose encodings that support various range queries (range minimum, range maximum and their variants), and previous and next smaller/larger value queries. When query time is not of concern, we obtain a -bit encoding that supports all these queries. For the case when we need to support all these queries in constant time, we give an encoding that takes bits, where is the length of input array. This improves the -bit encoding obtained by encoding the colored -Min and Max heaps proposed by Fischer~[TCS, 2011]. We first extend the original DFUDS [Algorithmica, 2005] encoding of the colored 2d-Min (Max) heap that supports the queries in constant time. Then, we combine the extended DFUDS of -Min heap and -Max heap using the Min-Max encoding of Gawrychowski and Nicholson [ICALP, 2015] with some modifications. We also obtain encodings that take lesser space and support a subset of these queries.
Keywords
Cite
@article{arxiv.1612.07493,
title = {Simultaneous encodings for range and next/previous larger/smaller value queries},
author = {Seungbum Jo and Srinivasa Rao Satti},
journal= {arXiv preprint arXiv:1612.07493},
year = {2016}
}
Comments
15 pages, 4 figures (with added details in Figure 3 wrt the journal version)