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

压缩重复文本中的快速近似模式匹配

Faster Approximate Pattern Matching in Compressed Repetitive Texts

Travis Gagie, Paweł Gawrychowski, Christopher Hoobin, Simon J. Puglisi

摘要:

受即将增长的大规模,高度冗余的基因组数据库,我们研究的问题,压缩字符串数据库,同时支持快速随机访问,子串提取和模式匹配的基础字符串(S)。Bille等人(2011)最近展示了如何给定一个具有$r$规则的直线程序,用于长度为$n$的字符串$s$,我们可以构建一个$\Oh{r}$ -word数据结构,允许我们在$\Oh{\log n + m}$时间内提取长度为$m$的任何子串。他们还展示了,给定长度为$m$和编辑距离(k \leq m)的模式$p$,他们的数据结构如何支持在$\Oh{r (\min (m k, k^4 + m) + \log n) + \occ}$时间内找到$s$中与$p$近似匹配的所有\occ。Rytter(2003)和Charikar et al.(2005)证明了$r$总是至少是$s$的LZ 77解析中短语的个数$z$,并给出了用$\Oh{z \log n}$规则构建直线程序的算法。在本文中,我们给出了一个简单的$\Oh{z \log n}$字的数据结构,需要同样的时间为子串提取,但只有$\Oh{z \min (m k, k^4 + m) + \occ}$时间近似模式匹配。

英文摘要:

Motivated by the imminent growth of massive, highly redundant genomic databases, we study the problem of compressing a string database while simultaneously supporting fast random access, substring extraction and pattern matching to the underlying string(s). Bille et al. (2011) recently showed how, given a straight-line program with $r$ rules for a string $s$ of length $n$, we can build an $\Oh{r}$-word data structure that allows us to extract any substring of length $m$ in $\Oh{\log n + m}$ time. They also showed how, given a pattern $p$ of length $m$ and an edit distance (k \leq m), their data structure supports finding all \occ approximate matches to $p$ in $s$ in $\Oh{r (\min (m k, k^4 + m) + \log n) + \occ}$ time. Rytter (2003) and Charikar et al. (2005) showed that $r$ is always at least the number $z$ of phrases in the LZ77 parse of $s$, and gave algorithms for building straight-line programs with $\Oh{z \log n}$ rules. In this paper we give a simple $\Oh{z \log n}$-word data structure that takes the same time for substring extraction but only $\Oh{z \min (m k, k^4 + m) + \occ}$ time for approximate pattern matching.

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

↑