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

对齐后缀树:一种有效的相似数据索引

Suffix Tree of Alignment: An Efficient Index for Similar Data

Joong Chae Na, Heejin Park, Maxime Crochemore, Jan Holub, Costas S. Iliopoulos, Laurent Mouchard, Kunsoo Park

摘要:

我们考虑一个类似字符串的索引数据结构。广义后缀树可以解决这个问题。两个字符串$A$和$B$的广义后缀树是一个压缩trie,表示$A$和$B$中的所有后缀。它有$|A|+|B|$叶子,可以在$O(|A|+|B|)$时间内构造。然而,如果两个字符串相似,则广义后缀树不是有效的,因为它没有利用通常表示为$A$和$B$的对齐的相似性。在本文中,我们提出了一个空间/时间有效的后缀树的对齐,明智地利用相似性对齐。我们的用于$A$和$B$的比对的后缀树具有$|A| + l_d + l_1$叶,其中$l_d$是$B$不同于$A$的所有部分的长度之和,并且$l_1$是$A$和$B$的一些共同部分的长度之和。我们没有妥协的模式搜索,以减少空间。我们的后缀树可以在$O(|P|+occ)$时间中搜索模式$P$,其中$occ$是$P$在$A$和$B$中出现的次数。我们还提出了一个有效的算法来构建后缀树的比对。当从零开始构建后缀树时,该算法需要$O(|A| + l_d + l_1 + l_2)$时间,其中$l_2$是$A$和$B$的其他公共子串的长度之和。当$A$的后缀树已经给定时,它需要$O(l_d + l_1 + l_2)$时间。

英文摘要:

We consider an index data structure for similar strings. The generalized suffix tree can be a solution for this. The generalized suffix tree of two strings $A$ and $B$ is a compacted trie representing all suffixes in $A$ and $B$. It has $|A|+|B|$ leaves and can be constructed in $O(|A|+|B|)$ time. However, if the two strings are similar, the generalized suffix tree is not efficient because it does not exploit the similarity which is usually represented as an alignment of $A$ and $B$. In this paper we propose a space/time-efficient suffix tree of alignment which wisely exploits the similarity in an alignment. Our suffix tree for an alignment of $A$ and $B$ has $|A| + l_d + l_1$ leaves where $l_d$ is the sum of the lengths of all parts of $B$ different from $A$ and $l_1$ is the sum of the lengths of some common parts of $A$ and $B$. We did not compromise the pattern search to reduce the space. Our suffix tree can be searched for a pattern $P$ in $O(|P|+occ)$ time where $occ$ is the number of occurrences of $P$ in $A$ and $B$. We also present an efficient algorithm to construct the suffix tree of alignment. When the suffix tree is constructed from scratch, the algorithm requires $O(|A| + l_d + l_1 + l_2)$ time where $l_2$ is the sum of the lengths of other common substrings of $A$ and $B$. When the suffix tree of $A$ is already given, it requires $O(l_d + l_1 + l_2)$ time.

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

↑