arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2607.07366cs.DS
收藏

压缩字符串上频率相关查询的难度

Hardness of Frequency-Related Queries on Compressed Strings

Stony Brook University(石溪大学)

Rajat De, Dominik Kempa

AI总结:

研究压缩字符串上频率相关查询,如秩查询和符号出现查询。通过建立条件下界,证明若用特定空间结构在多对数时间内回答此类查询,将意味着布尔矩阵乘法有更快算法,还扩展了下界范围并考虑了其他相关问题。

摘要:

压缩索引旨在以与压缩输入大小成比例的空间支持基本字符串查询。对于语法压缩,长度为\(n\)的字符串\(T\in\Sigma^n\)由大小为\(|G|\)的语法表示,可在\(O(|G|\log^{O(1)}n)\)空间和\(O(\log^{O(1)}n)\)时间内支持随机访问,许多其他查询也有相同界限,但频率相关查询了解较少。包括秩查询(报告符号\(c\in\Sigma\)在子串\(T(b..e]\)中的出现次数)和符号出现查询(询问\(c\)是否出现在\(T(b..e]\)中)。目前尚无空间为\(O(|G|\log^{O(1)}n)\)且查询时间为\(O(\log^{O(1)}n)\)的通用数据结构。我们为此类问题建立了新的条件下界。首先,证明了用\(O(|G|\log^{O(1)}n)\)时间构造的\(O(|G|\log^{O(1)}n)\)空间结构在多对数时间内回答语法压缩文本上的秩和符号出现查询,将意味着布尔矩阵乘法有\(O(n^2\log^{O(1)}n)\)时间算法。其次,将精确下界从直线程序扩展到LZ78压缩字符串。第三,表明直线语法上秩查询的加法近似也意味着更快的布尔矩阵乘法算法。最后,假设正交向量猜想,其他频率相关问题,包括范围不同计数和范围模式频率,在压缩空间中也无法有效支持。

英文摘要:

Compressed indexing aims to support fundamental string queries in space proportional to compressed input size. For grammar compression, a length-$n$ string $T \in Σ^n$ represented by a grammar of size $|G|$ can support random access in $O(|G|\log^{O(1)} n)$ space and $O(\log^{O(1)} n)$ time, and the same bounds are known for many other queries, including pattern matching, longest common extension, lexicographic predecessor/successor, the Burrows-Wheeler transform, suffix arrays, and suffix trees. Frequency-related queries remain less understood. These include rank queries, which report the number of occurrences of a symbol $c \in Σ$ in a substring $T(b..e]$, and symbol occurrence queries, which ask whether $c$ occurs in $T(b..e]$. No fully general data structure is known for these queries with $O(|G|\log^{O(1)} n)$ space and $O(\log^{O(1)} n)$ query time. We establish new conditional lower bounds for such problems. First, we show that answering rank and symbol occurrence queries on grammar-compressed texts in polylogarithmic time using an $O(|G|\log^{O(1)} n)$-space structure constructible in $O(|G|\log^{O(1)} n)$ time would imply an $O(n^2\log^{O(1)} n)$-time algorithm for Boolean Matrix Multiplication. The proof uses a more general lower bound for efficiently answering a batch of such queries. Second, we extend the exact lower bounds from straight-line programs to LZ78-compressed strings, a weaker compression model. Third, independently, we show that even additive approximations of rank queries on straight-line grammars would imply faster Boolean Matrix Multiplication algorithms. Finally, assuming the Orthogonal Vectors conjecture, we show that other frequency-related problems, including range distinct counting and range mode frequency, also cannot be efficiently supported in compressed space.

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

↑