Dynamic Range Majority Data Structures
Abstract
Given a set of coloured points on the real line, we study the problem of answering range -majority (or "heavy hitter") queries on . More specifically, for a query range , we want to return each colour that is assigned to more than an -fraction of the points contained in . We present a new data structure for answering range -majority queries on a dynamic set of points, where . Our data structure uses O(n) space, supports queries in time, and updates in amortized time. If the coordinates of the points are integers, then the query time can be improved to . For constant values of , this improved query time matches an existing lower bound, for any data structure with polylogarithmic update time. We also generalize our data structure to handle sets of points in d-dimensions, for , as well as dynamic arrays, in which each entry is a colour.
Keywords
Cite
@article{arxiv.1104.5517,
title = {Dynamic Range Majority Data Structures},
author = {Amr Elmasry and Meng He and J. Ian Munro and Patrick K. Nicholson},
journal= {arXiv preprint arXiv:1104.5517},
year = {2012}
}
Comments
16 pages, Preliminary version appeared in ISAAC 2011