String matching with up to k swaps and mismatches

Ohad Lipsky, Benny Porat, Ely Porat, B. Riva Shalom, Asaf Tzur

Research output: Contribution to journalArticlepeer-review

5 Scopus citations

Abstract

Finding the similarity between two sequences is a major problem in computer science. It is motivated by many issues from computational biology as well as from information retrieval and image processing. These fields take into account possible corruptions of the data caused by genome rearrangements, typing mistakes, and more. Therefore, many applications do not require merely complete resemblance of the sequences, but rather an approximate matching. We consider mismatches and swaps as natural mistakes which are allowed in a meagre number. The edit distance problem with swap and mismatch operations was solved in O(nmlogm) time. Yet, the problem of string matching with at most k swaps and mismatches errors was open. In this paper, we present an algorithm that finds all locations where the pattern has at most k mismatch and swap errors in time O(nklogm).

Original languageEnglish
Pages (from-to)1020-1030
Number of pages11
JournalInformation and Computation
Volume208
Issue number9
DOIs
StatePublished - Sep 2010

Keywords

  • Pattern matching
  • Swap

Fingerprint

Dive into the research topics of 'String matching with up to k swaps and mismatches'. Together they form a unique fingerprint.

Cite this