Abstract

Given a set PP of coloured points on the real line, we study the problem of answering range αα-majority (or "heavy hitter") queries on PP. More specifically, for a query range QQ, we want to return each colour that is assigned to more than an αα-fraction of the points contained in QQ. We present a new data structure for answering range αα-majority queries on a dynamic set of points, where α∈(0,1)α\in (0,1). Our data structure uses O(n) space, supports queries in O((lg⁡n)/α)O((\lg n) / α) time, and updates in O((lg⁡n)/α)O((\lg n) / α) amortized time. If the coordinates of the points are integers, then the query time can be improved to O(lg⁡n/(αlg⁡lg⁡n)+(lg⁡(1/α))/α))O(\lg n / (α\lg \lg n) + (\lg(1/α))/α)). 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 d≥2d \ge 2, as well as dynamic arrays, in which each entry is a colour.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.