arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1110.5236cs.DS
收藏

带通配符的模式的字符串索引

String Indexing for Patterns with Wildcards

Philip Bille, Inge Li Goertz, Hjalte Wedel Vildhøj, Søren Vind

摘要:

我们考虑索引长度为$n$的字符串$t$以报告包含$m$字符和$j$通配符的查询模式$p$的出现的问题。令$occ$为$p$在$t$中出现的次数,$σ$为字母表的大小。我们得到以下结果。- 带查询时间的线性空间索引$O(m+σ^j \log \log n + occ)$。这显著改进了Lam等人[ISAAC 2007]以前最著名的线性空间索引,在最坏的情况下,它需要查询时间$Θ(jn)$。- 使用空格$O(σ^{k^2} n \log^k \log n)$的查询时间为$O(m+j+occ)$的索引,其中$k$是模式中允许的最大通配符数。这是这个查询时间的第一个非平凡界限。- 时空权衡,Cole et al. [STOC 2004]概括了该指数。我们还表明,这些指数可以推广到允许可变长度的差距的模式。我们的研究结果是使用一种新的组合,众所周知的和新的技术,这可能是独立的利益。

英文摘要:

We consider the problem of indexing a string $t$ of length $n$ to report the occurrences of a query pattern $p$ containing $m$ characters and $j$ wildcards. Let $occ$ be the number of occurrences of $p$ in $t$, and $σ$ the size of the alphabet. We obtain the following results. - A linear space index with query time $O(m+σ^j \log \log n + occ)$. This significantly improves the previously best known linear space index by Lam et al. [ISAAC 2007], which requires query time $Θ(jn)$ in the worst case. - An index with query time $O(m+j+occ)$ using space $O(σ^{k^2} n \log^k \log n)$, where $k$ is the maximum number of wildcards allowed in the pattern. This is the first non-trivial bound with this query time. - A time-space trade-off, generalizing the index by Cole et al. [STOC 2004]. We also show that these indexes can be generalized to allow variable length gaps in the pattern. Our results are obtained using a novel combination of well-known and new techniques, which could be of independent interest.

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

↑