论近似值域模式与值域选择
On Approximate Range Mode and Range Selection
摘要:
对于任何$ε\in (0,1)$,$(1+ε)$近似范围模式查询要求其在查询范围中的频率至多是比真实模式小的因子$(1+ε)$的元素的位置。针对这一问题,设计了一种支持$O(\lg(1/ε))$时间查询的$O(n/ε)$位数据结构.这是一个编码的数据结构,不需要访问输入序列,我们证明了空间成本是渐近最优的恒定$ε$。我们的解决方案改进了Greve等人(Cell Probe Lower Bounds and Approximations for Range Mode,ICALP'10)以前的最佳结果,通过将空间成本降低$\lg n$的因子,同时实现相同的查询时间。我们还设计了一个$O(n)$字的动态数据结构,回答查询在$O(\lg n /\lg\lg n)$时间,并支持插入和删除在$O(\lg n)$时间,任何常数$ε\in (0,1)$。这是关于动态近似范围模式的第一个结果;它也可以用于获得二维近似3边范围模式查询的第一个静态数据结构。我们还考虑了近似范围选择。对于任何$α\in (0,1/2)$,$α$ -近似范围选择查询要求其在查询范围中的排名在$[k - αs, k + αs]$中的元素的位置,其中$k$是由查询给出的排名,$s$是查询范围的大小。当$α$为常数时,我们设计了一种$O(n)$位编码数据结构,可以在常数时间内回答查询,并证明了这种空间代价是渐近最优的。Krizanc等人的先前最佳结果(Range Mode and Range Median Rectangular List and Trees,Nordic Journal of Computing,2005)使用$O(n\lg n)$位或$O(n)$字来实现仅对范围中值的恒定近似。因此,我们不仅提高了空间成本,但也提供了支持任何任意$k$在查询时。
英文摘要:
For any $ε\in (0,1)$, a $(1+ε)$-approximate range mode query asks for the position of an element whose frequency in the query range is at most a factor $(1+ε)$ smaller than the true mode. For this problem, we design an $O(n/ε)$ bit data structure supporting queries in $O(\lg(1/ε))$ time. This is an encoding data structure which does not require access to the input sequence; we prove the space cost is asymptotically optimal for constant $ε$. Our solution improves the previous best result of Greve et al. (Cell Probe Lower Bounds and Approximations for Range Mode, ICALP'10) by reducing the space cost by a factor of $\lg n$ while achieving the same query time. We also design an $O(n)$-word dynamic data structure that answers queries in $O(\lg n /\lg\lg n)$ time and supports insertions and deletions in $O(\lg n)$ time, for any constant $ε\in (0,1)$. This is the first result on dynamic approximate range mode; it can also be used to obtain the first static data structure for approximate 3-sided range mode queries in two dimensions. We also consider approximate range selection. For any $α\in (0,1/2)$, an $α$-approximate range selection query asks for the position of an element whose rank in the query range is in $[k - αs, k + αs]$, where $k$ is a rank given by the query and $s$ is the size of the query range. When $α$ is a constant, we design an $O(n)$-bit encoding data structure that can answer queries in constant time and prove this space cost is asymptotically optimal. The previous best result by Krizanc et al. (Range Mode and Range Median Queries on Lists and Trees, Nordic Journal of Computing, 2005) uses $O(n\lg n)$ bits, or $O(n)$ words, to achieve constant approximation for range median only. Thus we not only improve the space cost, but also provide support for any arbitrary $k$ given at query time.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。