arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2307.01967cs.DS
收藏

多字符串的广义最小缺失字的线性时间计算

Linear-time computation of generalized minimal absent words for multiple strings

Kouta Okabe, Takuya Mieno, Yuto Nakashima, Shunsuke Inenaga, Hideo Bannai

AI总结:

本文将最小缺失字(MAW)概念推广至多字符串集合,分别提出了针对两个字符串的最优线性时间算法,以及针对多个字符串在字RAM模型下的高效算法。

摘要:

如果字符串 $w$ 不作为子串出现在字符串 $S$ 中,且 $w$ 的所有真子串都出现在 $S$ 中,则称 $w$ 为字符串 $S$ 的最小缺失字(MAW)。MAW 是经过充分研究的组合字符串对象,在生物信息学、音乐学和数据压缩等领域具有潜在应用。本文将 MAW 的概念推广到多字符串的集合 $\mathcal{S} = \{S_1, \ldots, S_k\}$。我们首先描述了针对 $k = 2$ 个字符串情况的解决方案,并展示了如何在最优的 $O(n + |\mathsf{M}|)$ 时间和 $O(n)$ 工作空间内计算 MAW 的集合 $\mathsf{M}$,其中 $n$ 表示 $\mathcal{S}$ 中字符串的总长度。接着,我们转向 $k > 2$ 个字符串的一般情况,并展示了在字长为 $ω= \log n$ 的字 RAM 模型中,如何在 $O(n \lceil k / \log n \rceil + |\mathsf{M}|)$ 时间和 $O(n (k + \log n))$ 比特的工作空间内计算 MAW 的集合 $\mathsf{M}$。对于 $k = O(\log n)$ 的情况,后一种算法以最优的 $O(n + |\mathsf{M}|)$ 时间运行。

英文摘要:

A string $w$ is called a minimal absent word (MAW) for a string $S$ if $w$ does not occur as a substring in $S$ and all proper substrings of $w$ occur in $S$. MAWs are well-studied combinatorial string objects that have potential applications in areas including bioinformatics, musicology, and data compression. In this paper, we generalize the notion of MAWs to a set $\mathcal{S} = \{S_1, \ldots, S_k\}$ of multiple strings. We first describe our solution to the case of $k = 2$ strings, and show how to compute the set $\mathsf{M}$ of MAWs in optimal $O(n + |\mathsf{M}|)$ time and with $O(n)$ working space, where $n$ denotes the total length of the strings in $\mathcal{S}$. We then move on to the general case of $k > 2$ strings, and show how to compute the set $\mathsf{M}$ of MAWs in $O(n \lceil k / \log n \rceil + |\mathsf{M}|)$ time and with $O(n (k + \log n))$ bits of working space, in the word RAM model with machine word size $ω= \log n$. The latter algorithm runs in optimal $O(n + |\mathsf{M}|)$ time for $k = O(\log n)$.

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

↑