判断一个词在线性时间内是否是Hamming-等距的
Checking whether a word is Hamming-isometric in linear time
摘要:
一个有限字$f$是汉明等距的,如果对于任何两个相同长度的字$u$和$v$避开$f$,$u$可以通过逐个改变$u$与$v$不同的所有字母而转换成$v$,以这样的方式,在这个过程中获得的所有新词也避开~ $f$。非汉明等距的词被表征为具有两个不匹配的边界的词。我们从这个特性的线性时间算法来检查是否一个字是汉明等距。它基于具有$k$不匹配的模式匹配算法。四字母表上的李等距词被表征为具有两个李错误的边界的词。我们从这个特性的线性时间算法来检查是否一个字的大小为4的字母表是李等距。
英文摘要:
A finite word $f$ is Hamming-isometric if for any two word $u$ and $v$ of same length avoiding $f$, $u$ can be transformed into $v$ by changing one by one all the letters on which $u$ differs from $v$, in such a way that all of the new words obtained in this process also avoid~$f$. Words which are not Hamming-isometric have been characterized as words having a border with two mismatches. We derive from this characterization a linear-time algorithm to check whether a word is Hamming-isometric. It is based on pattern matching algorithms with $k$ mismatches. Lee-isometric words over a four-letter alphabet have been characterized as words having a border with two Lee-errors. We derive from this characterization a linear-time algorithm to check whether a word over an alphabet of size four is Lee-isometric.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。