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

用CDAWG表示后缀树

Representing the suffix tree with the CDAWG

Djamal Belazzougui, Fabio Cunial

摘要:

给定一个字符串$T$,已知其后缀树可以使用具有$e_T$弧的紧凑有向无环字图(CDAWG)来表示,其采用空间的全部$O(e_T+e_{\overline{T}})$字,其中${\overline{T}}$是$T$的逆,并且在最坏情况下支持$O(1)$和$O(\log{\log{n}})$之间的时间上的一些关键操作。这种表示对于高度重复的字符串特别有吸引力,例如相似基因组的集合或版本控制的文档,其中$e_T$在实践中以$T$的长度亚线性增长。在本文中,我们增加了这样的表示,在RAM模型中的$O(1)$和$O(\log{n})$之间的最坏情况下的时间支持一些额外的查询,而不会增加空间的复杂性渐近。我们的技术,基于一个沉重的路径分解的后缀树,也使后缀数组的表示,逆后缀数组,和$T$本身,这需要$O(e_T)$字的空间,并支持随机存取$O(\log{n})$的时间。此外,我们建立了一个连接之间的反向CDAWG的$T$和上下文无关的语法,产生$T$和只有$T$,这可能有独立的利益。

英文摘要:

Given a string $T$, it is known that its suffix tree can be represented using the compact directed acyclic word graph (CDAWG) with $e_T$ arcs, taking overall $O(e_T+e_{\overline{T}})$ words of space, where ${\overline{T}}$ is the reverse of $T$, and supporting some key operations in time between $O(1)$ and $O(\log{\log{n}})$ in the worst case. This representation is especially appealing for highly repetitive strings, like collections of similar genomes or of version-controlled documents, in which $e_T$ grows sublinearly in the length of $T$ in practice. In this paper we augment such representation, supporting a number of additional queries in worst-case time between $O(1)$ and $O(\log{n})$ in the RAM model, without increasing space complexity asymptotically. Our technique, based on a heavy path decomposition of the suffix tree, enables also a representation of the suffix array, of the inverse suffix array, and of $T$ itself, that takes $O(e_T)$ words of space, and that supports random access in $O(\log{n})$ time. Furthermore, we establish a connection between the reversed CDAWG of $T$ and a context-free grammar that produces $T$ and only $T$, which might have independent interest.

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

↑