Large Edit Distance with Multiple Block Operations

We consider the addition of some or all of the operations block move, block delete, block copy, block reversals, and block copy reversals, to the traditional edit distance problem (finding the minimum number of insert-character and delete-character operations to convert one string to another). When all of the above operations are allowed, the problem, called the nearest neighbors problem, is NP hard, and the best known approximation is O(logn log* n), which was achieved by Muthukrishnan and Sahinalp [2000,2002a]. In this paper we show that this problem can be approximated by a constant factor of 3.5 using a simple sliding window method. When eliminating reversals, the same method reduces the best known approximation of 12, achieved by Ergun, Muthukrishnan and Sahinalp [2003], down to a factor of 4. Both constant factors are proved to be tight. Allowing only subsets of these operations does not necessarily make the problem easier. Shapira and Storer [2002] present a logn factor approximation algorithm for edit distance with block moves (which is also an NP-complete problem). Here, we show that edit distance with block deletions can be solved optimally, but edit distance with block moves and block deletions remains NP-complete and can be reduced to the problem of block moves only, keeping the same logn factor approximation.

[1]  Graham Cormode,et al.  The string edit distance matching problem with moves , 2002, SODA '02.

[2]  Dana Shapira,et al.  In-place differential file compression , 2003, Data Compression Conference, 2003. Proceedings. DCC 2003.

[3]  Vineet Bafna,et al.  Sorting by Transpositions , 1998, SIAM J. Discret. Math..

[4]  M S Waterman,et al.  Sequence alignment and penalty choice. Review of concepts, case studies and implications. , 1994, Journal of molecular biology.

[5]  S. Muthukrishnan,et al.  Simple and Practical Sequence Nearest Neighbors with Block Operations , 2002, CPM.

[6]  Dana Shapira,et al.  Edit distance with move operations , 2002, J. Discrete Algorithms.

[7]  Daniel P. Lopresti,et al.  Block Edit Models for Approximate String Matching , 1997, Theor. Comput. Sci..

[8]  Uzi Vishkin,et al.  Communication complexity of document exchange , 1999, SODA '00.

[9]  Walter F. Tichy,et al.  The string-to-string correction problem with block moves , 1984, TOCS.

[10]  D. Durand,et al.  A Short Course in Computational Molecular Biology , 1997 .

[11]  Vineet Bafna,et al.  Genome rearrangements and sorting by reversals , 1993, Proceedings of 1993 IEEE 34th Annual Foundations of Computer Science.

[12]  S. Muthukrishnan,et al.  Approximate nearest neighbors and sequence comparison with block operations , 2000, STOC '00.

[13]  M S Waterman,et al.  Identification of common molecular subsequences. , 1981, Journal of molecular biology.

[14]  Mike Paterson,et al.  A Faster Algorithm Computing String Edit Distances , 1980, J. Comput. Syst. Sci..

[15]  Funda Ergün,et al.  Comparing Sequences with Segment Rearrangements , 2003, FSTTCS.

[16]  S. Muthukrishnan,et al.  An Improved Algorithm for Sequence Comparison with Block Reversals , 2002, LATIN.

[17]  Sridhar Hannenhalli Polynomial-time Algorithm for Computing Translocation Distance between Genomes , 1995, CPM.