# zbMATH — the first resource for mathematics

A sum-over-paths extension of edit distances accounting for all sequence alignments. (English) Zbl 1209.68454
Summary: This paper introduces a simple Sum-over-Paths (SoP) formulation of string edit distances accounting for all possible alignments between two sequences, and extends related previous work from bioinformatics to the case of graphs with cycles. Each alignment $$\wp$$, with a total cost $$C(\wp)$$, is assigned a probability of occurrence $$P(\wp)=\exp[-\theta C(\wp)]/\mathcal Z$$ where $$\mathcal Z$$ is a normalization factor. Therefore, good alignments (having a low cost) are favored over bad alignments (having a high cost). The expected cost $$\sum_{\wp \in \mathcal P}C(\wp)\exp[-\theta C(\wp)]/\mathcal Z$$ computed over all possible alignments $$\wp \in \mathcal P$$ defines the SoP edit distance. When $$\theta \rightarrow \infty$$, only the best alignments matter and the measure reduces to the standard edit distance. The rationale behind this definition is the following: for some applications, two sequences sharing many good alignments should be considered as more similar than two sequences having only one single good, optimal, alignment in common. In other words, sub-optimal alignments could also be taken into account. Forward/backward recurrences allowing to efficiently compute the expected cost are developed. Virtually any Viterbi-like sequence comparison algorithm computed on a lattice can be generalized in the same way; for instance, a SoP longest common subsequence is also developed. Pattern classification tasks performed on five data sets show that the new measures usually outperform the standard ones and, in any case, never perform significantly worse, at the expense of tuning the parameter $$\theta$$.

##### MSC:
 68T10 Pattern recognition, speech recognition 68R10 Graph theory (including graph drawing) in computer science 68W32 Algorithms on strings
##### Software:
CONTRAlign; LIBLINEAR
Full Text: