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

交换插入修正距离的自适应计算

Adaptive Computation of the Swap-Insert Correction Distance

Jérémy Barbay, Pablo Pérez-Lantero

摘要:

在字母表$[1..d]$上,从长度为$n$的字符串$S$到长度为$m\geq n$的另一个字符串$L$的交换插入校正距离是插入和交换相邻符号对的最小数量,将$S$转换为$L$。与其他校正距离类似,计算它在字母表的大小$d$上是NP难的。我们描述了一个算法计算这个距离的时间内$O(d^2 nm g^{d-1})$,其中有$n_α$发生$S$中的$α$,$m_α$发生$L$中的$α$,其中$g=\max_{α\in[1..d]} \min\{n_α,m_α-n_α\}$措施的难度的实例。难度$g$由以上各种术语限定,例如最短字符串$S$的长度,以及单个字符在$S$中出现的最大次数。这些结果说明,在许多情况下,两个字符串之间的校正距离比最坏的情况更容易计算。

英文摘要:

The Swap-Insert Correction distance from a string $S$ of length $n$ to another string $L$ of length $m\geq n$ on the alphabet $[1..d]$ is the minimum number of insertions, and swaps of pairs of adjacent symbols, converting $S$ into $L$. Contrarily to other correction distances, computing it is NP-Hard in the size $d$ of the alphabet. We describe an algorithm computing this distance in time within $O(d^2 nm g^{d-1})$, where there are $n_α$ occurrences of $α$ in $S$, $m_α$ occurrences of $α$ in $L$, and where $g=\max_{α\in[1..d]} \min\{n_α,m_α-n_α\}$ measures the difficulty of the instance. The difficulty $g$ is bounded by above by various terms, such as the length of the shortest string $S$, and by the maximum number of occurrences of a single character in $S$. Those results illustrate how, in many cases, the correction distance between two strings can be easier to compute than in the worst case scenario.

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

↑