arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1210.1765cs.DS
收藏

参数化范围多数和少数的更好的空间界限

Better Space Bounds for Parameterized Range Majority and Minority

Djamal Belazzougui, Travis Gagie, Gonzalo Navarro

摘要:

Karpinski和Nekrich(2008)引入了参数化范围多数问题,要求预处理长度为$n$的字符串,以便在给定范围的端点时,可以快速找到所有相对频率超过阈值$τ$的不同元素。后来的作者减少了他们的时间和空间界限,这样,当$τ$在预处理时间,我们需要$\Oh{n \log (1 / τ)}$空间和最佳的$\Oh{1 / τ}$查询时间或线性空间和$\Oh{(1 / τ) \log \log σ}$查询时间,其中$σ$是字母表的大小。本文给出了具有最优$\Oh{1 / τ}$查询时间的第一个线性空间解。对于$τ$的情况下,在查询时间,我们显着提高以前的界限,实现$\Oh{n \log \log σ}$空间和最佳的$\Oh{1 / τ}$查询时间或压缩空间和$\Oh{(1 / τ) \log \frac{\log (1 / τ)}{\log w}}$查询时间。在此过程中,我们考虑了Chan等人最近提出的参数化范围少数的互补问题。(2012),他甚至对于变量$τ$实现了线性空间和$\Oh{1 / τ}$查询时间。我们改进了他们的解决方案,使用几乎没有减速的最佳压缩空间,或者使用几乎没有减速的最佳压缩空间。我们的一些中间结果,如密度敏感的查询时间一维范围计数,可能是独立的利益。

英文摘要:

Karpinski and Nekrich (2008) introduced the problem of parameterized range majority, which asks to preprocess a string of length $n$ such that, given the endpoints of a range, one can quickly find all the distinct elements whose relative frequencies in that range are more than a threshold $τ$. Subsequent authors have reduced their time and space bounds such that, when $τ$ is given at preprocessing time, we need either $\Oh{n \log (1 / τ)}$ space and optimal $\Oh{1 / τ}$ query time or linear space and $\Oh{(1 / τ) \log \log σ}$ query time, where $σ$ is the alphabet size. In this paper we give the first linear-space solution with optimal $\Oh{1 / τ}$ query time. For the case when $τ$ is given at query time, we significantly improve previous bounds, achieving either $\Oh{n \log \log σ}$ space and optimal $\Oh{1 / τ}$ query time or compressed space and $\Oh{(1 / τ) \log \frac{\log (1 / τ)}{\log w}}$ query time. Along the way, we consider the complementary problem of parameterized range minority that was recently introduced by Chan et al.\ (2012), who achieved linear space and $\Oh{1 / τ}$ query time even for variable $τ$. We improve their solution to use either nearly optimally compressed space with no slowdown, or optimally compressed space with nearly no slowdown. Some of our intermediate results, such as density-sensitive query time for one-dimensional range counting, may be of independent interest.

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

↑