使用 CDAWG 空间计算最小缺失词与扩展双特殊因子
Computing Minimal Absent Words and Extended Bispecial Factors with CDAWG Space
AI总结:
本文基于 CDAWG 提出更省空间的数据结构,在 $O(\mathsf{e}_\min)$ 空间和 $O(|\mathsf{MAW}(S)|)$ 时间内输出字符串的全部 MAW,并揭示其与扩展双特殊因子的关系。
摘要:
如果字符串 $w$ 不出现在字符串 $S$ 中,而 $w$ 的任意真子串都出现在 $S$ 中,则称 $w$ 是 $S$ 的最小缺失词(minimal absent word,MAW)。我们关注长度至少为 2 的非平凡 MAW。为给定字符串寻找此类非平凡 MAW 的动机来自生物信息学和数据压缩应用。Fujishige 等人 [TCS 2023] 基于有向无环词图(directed acyclic word graph,DAWG)提出了一种大小为 $Θ(n)$ 的数据结构,能够在 $O(n + |\mathsf{MAW}(S)|)$ 时间内输出长度为 $n$ 的给定字符串 $S$ 的所有 MAW 集合 $\mathsf{MAW}(S)$。本文提出一种基于紧凑 DAWG(compact DAWG,CDAWG)的更节省空间的数据结构,能够以 $O(\mathsf{e}_\min)$ 空间在 $O(|\mathsf{MAW}(S)|)$ 时间内输出 $\mathsf{MAW}(S)$,其中 $\mathsf{e}_\min$ 表示 $S$ 的 CDAWG 与其反转串 $S^R$ 的 CDAWG 大小的最小值。对于任意长度为 $n$ 的字符串,都有 $\mathsf{e}_\min < 2n$;而对于高度重复的字符串,$\mathsf{e}_\min$ 相对于 $n$ 可以是次线性的(最高可达对数级)。我们还通过 CDAWG 表明,MAW 及其推广形式最小稀有词与扩展双特殊因子之间存在密切关系。
英文摘要:
A string $w$ is said to be a minimal absent word (MAW) for a string $S$ if $w$ does not occur in $S$ and any proper substring of $w$ occurs in $S$. We focus on non-trivial MAWs which are of length at least 2. Finding such non-trivial MAWs for a given string is motivated for applications in bioinformatics and data compression. Fujishige et al. [TCS 2023] proposed a data structure of size $Θ(n)$ that can output the set $\mathsf{MAW}(S)$ of all MAWs for a given string $S$ of length $n$ in $O(n + |\mathsf{MAW}(S)|)$ time, based on the directed acyclic word graph (DAWG). In this paper, we present a more space efficient data structure based on the compact DAWG (CDAWG), which can output $\mathsf{MAW}(S)$ in $O(|\mathsf{MAW}(S)|)$ time with $O(\mathsf{e}_\min)$ space, where $\mathsf{e}_\min$ denotes the minimum of the sizes of the CDAWGs for $S$ and for its reversal $S^R$. For any strings of length $n$, it holds that $\mathsf{e}_\min < 2n$, and for highly repetitive strings $\mathsf{e}_\min$ can be sublinear (up to logarithmic) in $n$. We also show that MAWs and their generalization minimal rare words have close relationships with extended bispecial factors, via the CDAWG.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。