用前缀表计算覆盖
Computing Covers Using Prefix Tables
摘要:
字母表$Σ$上的\emph{indeterminate string} $x = x[1..n]$是$Σ$的非空子集的序列;如果每个子集的大小为1,则$x$被称为\emph{regular}。正规$x$的真子串$u$称为$x$的一个\emph{cover}当且仅当对于每个$i \in 1..n$,$x$中的$u$的出现包括$x[i]$。$x$的\emph{cover array} $γ= γ[1..n]$是一个整数数组,使得$γ[i]$是$x[1..i]$的最长覆盖。十五年前,一个复杂的,但仍然是线性时间,算法被提出来计算覆盖阵列的定期$x$的基础上事先计算的边界阵列的$x$。本文首先描述了一个基于$x$前缀表的正则串$x$覆盖数组的线性时间算法。然后,我们将这个结果扩展到不确定字符串。
英文摘要:
An \emph{indeterminate string} $x = x[1..n]$ on an alphabet $Σ$ is a sequence of nonempty subsets of $Σ$; $x$ is said to be \emph{regular} if every subset is of size one. A proper substring $u$ of regular $x$ is said to be a \emph{cover} of $x$ iff for every $i \in 1..n$, an occurrence of $u$ in $x$ includes $x[i]$. The \emph{cover array} $γ= γ[1..n]$ of $x$ is an integer array such that $γ[i]$ is the longest cover of $x[1..i]$. Fifteen years ago a complex, though nevertheless linear-time, algorithm was proposed to compute the cover array of regular $x$ based on prior computation of the border array of $x$. In this paper we first describe a linear-time algorithm to compute the cover array of regular string $x$ based on the prefix table of $x$. We then extend this result to indeterminate strings.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。