Compressed Dynamic Range Majority and Minority Data Structures
Abstract
In the range -majority query problem, we are given a sequence and a fixed threshold , and are asked to preprocess such that, given a query range , we can efficiently report the symbols that occur more than times in , which are called the range -majorities. In this article we first describe a dynamic data structure that represents in compressed space --- bits for any , where is the alphabet size and is the -th order empirical entropy of --- and answers queries in time while supporting insertions and deletions in in amortized time. We then show how to modify our data structure to receive some at query time and report the range -majorities in time, without increasing the asymptotic space or update-time bounds. The best previous dynamic solution has the same query and update times as ours, but it occupies words and cannot take advantage of being given a larger threshold at query time. [ABSTRACT CLIPPED DUE TO LENGTH.]
Cite
@article{arxiv.1611.01835,
title = {Compressed Dynamic Range Majority and Minority Data Structures},
author = {Travis Gagie and Meng He and Gonzalo Navarro},
journal= {arXiv preprint arXiv:1611.01835},
year = {2018}
}
Comments
Partially supported by Fondecyt grant 1-171058, Chile; NSERC, Canada; basal funds FB0001, Conicyt, Chile; and the Millenium Institute for Foundational Research on Data, Chile. A preliminary partial version of this article appeared in Proc. DCC 2017