arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1104.5517cs.DScs.DB
收藏

动态范围多数数据结构

Dynamic Range Majority Data Structures

Amr Elmasry, Meng He, J. Ian Munro, Patrick K. Nicholson

摘要:

给定一组$P$上的实直线上的彩色点,我们研究的问题回答范围$α$ -多数(或“重打击”)查询$P$。更具体地说,对于查询范围$Q$,我们希望返回分配给$Q$中包含的点的多于$α$分数的每个颜色。我们提出了一种新的数据结构,回答范围$α$ -多数查询的动态点集,其中$α\in (0,1)$。我们的数据结构使用O(n)空间,支持$O((\lg n) / α)$时间查询,并在$O((\lg n) / α)$摊销时间更新。如果点的坐标是整数,则查询时间可以改进为$O(\lg n / (α\lg \lg n) + (\lg(1/α))/α))$。对于$α$的常数值,对于具有多对数更新时间的任何数据结构,该改进的查询时间匹配现有的下限。我们还概括了我们的数据结构,以处理点集的d维,$d \ge 2$,以及动态数组,其中每个条目是一种颜色。

英文摘要:

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

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑