Reversal distance for strings with duplicates: linear time approximation using hitting set
The electronic journal of combinatorics, Tome 14 (2007)
In the last decade there has been an ongoing interest in string comparison problems; to a large extend the interest was stimulated by genome rearrangement problems in computational biology but related problems appear in many other areas of computer science. Particular attention has been given to the problem of sorting by reversals (SBR): given two strings, $A$ and $B$, find the minimum number of reversals that transform the string $A$ into the string $B$ (a reversal $\rho(i,j)$, $i < j$, transforms a string $A=a_1\ldots a_n$ into a string $A'=a_1\ldots a_{i-1} a_{j} a_{j-1} \ldots a_{i} a_{j+1} \ldots a_n$). Closely related is the minimum common string partition problem (MCSP): given two strings, $A$ and $B$, find a minimum size partition of $A$ into substrings $P_1,\ldots,P_l$ (i.e., $A=P_1\ldots P_l$) and a partition of $B$ into substrings $Q_1,\ldots,Q_l$ such that $(Q_1,\ldots,Q_l)$ is a permutation of $(P_1,\ldots,P_l)$. Primarily the SBR problem has been studied for strings in which every symbol appears exactly once (that is, for permutations) and only recently attention has been given to the general case where duplicates of the symbols are allowed. In this paper we consider the problem $k$-SBR, a version of SBR in which each symbol is allowed to appear up to $k$ times in each string, for some $k\geq 1$. The main result of the paper is a $\Theta(k)$-approximation algorithm for $k$-SBR running in time $O(n)$; compared to the previously known algorithm for $k$-SBR, this is an improvement by a factor of $\Theta(k)$ in the approximation ratio, and by a factor of $\Theta(k)$ in the running time. We approach the $k$-SBR by finding an approximation for the $k$-MCSP first and then turning it into a solution for $k$-SBR. Crucial ingredients of our algorithm are the suffix tree data structure and a linear time algorithm for a special case of a disjoint set union problem.
DOI :
10.37236/968
Classification :
68W25, 68R15, 92D20, 68P10
Mots-clés : string comparison, Minimum Common String Partition Problem
Mots-clés : string comparison, Minimum Common String Partition Problem
@article{10_37236_968,
author = {Petr Kolman and Tomasz Wale\'n},
title = {Reversal distance for strings with duplicates: linear time approximation using hitting set},
journal = {The electronic journal of combinatorics},
year = {2007},
volume = {14},
doi = {10.37236/968},
zbl = {1184.68641},
url = {http://geodesic.mathdoc.fr/articles/10.37236/968/}
}
Petr Kolman; Tomasz Waleń. Reversal distance for strings with duplicates: linear time approximation using hitting set. The electronic journal of combinatorics, Tome 14 (2007). doi: 10.37236/968
Cité par Sources :