[论文解读] Gapped String Indexing in Subquadratic Space and Sublinear Query Time
本文提出了首个在子二次空间和次线性查询时间下解决带间隙字符串索引问题的数据结构,实现了 ˜O(n²−δ) 的空间复杂度与 ˜O(n³δ · (occ + 1)) 的查询时间,适用于任意 0 ≤ δ ≤ 1。该方法引入了‘移位集合交集’问题,证明其与 3SUM 索引问题等价,并利用此关系打破了在常数字母表下字符串索引与打乱索引问题中长期存在的时空权衡瓶颈。
In Gapped String Indexing, the goal is to compactly represent a string $S$ of length $n$ such that for any query consisting of two strings $P_1$ and $P_2$, called patterns, and an integer interval $[α, β]$, called gap range, we can quickly find occurrences of $P_1$ and $P_2$ in $S$ with distance in $[α, β]$. Gapped String Indexing is a central problem in computational biology and text mining and has thus received significant research interest, including parameterized and heuristic approaches. Despite this interest, the best-known time-space trade-offs for Gapped String Indexing are the straightforward $O(n)$ space and $O(n+occ)$ query time or $Ω(n^2)$ space and $ ilde{O}(|P_1| + |P_2| + occ)$ query time. We break through this barrier obtaining the first interesting trade-offs with polynomially subquadratic space and polynomially sublinear query time. In particular, we show that, for every $0\leq δ\leq 1$, there is a data structure for Gapped String Indexing with either $ ilde{O}(n^{2-δ/3})$ or $ ilde{O}(n^{3-2δ})$ space and $ ilde{O}(|P_1| + |P_2| + n^δ\cdot (occ+1))$ query time, where $occ$ is the number of reported occurrences. As a new tool towards obtaining our main result, we introduce the Shifted Set Intersection problem. We show that this problem is equivalent to the indexing variant of 3SUM (3SUM Indexing). Via a series of reductions, we obtain a solution to the Gapped String Indexing problem. Furthermore, we enhance our data structure for deciding Shifted Set Intersection, so that we can support the reporting variant of the problem. Via the obtained equivalence to 3SUM Indexing, we thus give new improved data structures for the reporting variant of 3SUM Indexing, and we show how this improves upon the state-of-the-art solution for Jumbled Indexing for any alphabet of constant size $σ>5$.
研究动机与目标
- 突破带间隙字符串索引中长期存在的 O(n²) 空间与 O(n) 查询时间的瓶颈。
- 为带间隙字符串索引的存在性与报告变体设计高效的数据结构,实现更优的时空权衡。
- 建立带间隙字符串索引、移位集合交集与 3SUM 索引之间全新的联系。
- 在常数字母表下改进现有打乱索引问题的界限。
提出的方法
- 引入移位集合交集问题:给定集合 S₁,…,Sₖ 与查询 (i,j,s),判断是否存在 a∈Sᵢ, b∈Sⱼ 使得 a+s = b。
- 证明移位集合交集问题与 3SUM 的索引变体(即 3SUM 索引)等价。
- 设计支持带间隙的移位集合交集问题的数据结构,实现高效的查询处理。
- 将该数据结构扩展以支持报告变体,输出所有有效的 (a,b) 对。
- 通过前缀/后缀直方图与全域稀疏化,将打乱索引问题归约至 σ 维 3SUM 索引问题。
- 应用所得的 3SUM 索引数据结构,实现带间隙字符串索引与打乱索引问题的更优界限。
实验结果
研究问题
- RQ1带间隙字符串索引能否在多项式次二次空间与多项式次线性查询时间内求解?
- RQ2移位集合交集与 3SUM 索引之间存在何种关系?该关系能否用于构建更优的数据结构?
- RQ33SUM 索引的新权衡是否可用于改进现有打乱索引问题的解决方案?
- RQ4移位集合交集与 3SUM 索引之间的等价性是否能为字符串索引问题提供更紧的界限?
主要发现
- 对于任意 0 ≤ δ ≤ 1,带报告功能的带间隙字符串索引数据结构可实现 ˜O(n²−δ/3) 的空间复杂度与 ˜O(nδ · (occ + 1) + |P₁| + |P₂|) 的查询时间。
- 另一种权衡方案使用 ˜O(n³−2δ) 的空间复杂度与 ˜O(nδ · (occ + 1) + |P₁| + |P₂|) 的查询时间,对于较大的 δ 值提供了更优的空间效率。
- 存在性变体实现 ˜O(n²−δ) 的空间复杂度与 ˜O(n³δ) 的查询时间,其中 occ = 1。
- 本文建立了移位集合交集与 3SUM 索引之间的紧密联系,并证明了二者等价。
- 新数据结构在常数字母表下显著优于当前打乱索引问题的最先进方法,尤其在 σ > 5 时表现更优。
- 研究结果反驳了已被证伪的强 3SUM 索引猜想,证明子二次空间与次线性查询时间是可实现的。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。