paper

Adaptive Computation of the Swap-Insert Correction Distance

arXiv:1504.07298

Abstract

The Swap-Insert Correction distance from a string of length to another string of length on the alphabet is the minimum number of insertions, and swaps of pairs of adjacent symbols, converting into . Contrarily to other correction distances, computing it is NP-Hard in the size of the alphabet. We describe an algorithm computing this distance in time within , where there are occurrences of in , occurrences of in , and where measures the difficulty of the instance. The difficulty is bounded by above by various terms, such as the length of the shortest string , and by the maximum number of occurrences of a single character in . Those results illustrate how, in many cases, the correction distance between two strings can be easier to compute than in the worst case scenario.

arXiv comment16 pages, no figures, long version of the extended abstract accepted to SPIRE 2015