String Matching with Inversions and Translocations in Linear Average Time (Most of the Time)

preprint2010arXivOpen access

Abstract

We present an efficient algorithm for finding all approximate occurrences of a given pattern pp of length mm in a text tt of length nn allowing for translocations of equal length adjacent factors and inversions of factors. The algorithm is based on an efficient filtering method and has an $\bigO(nm\max(α, β))$-time complexity in the worst case and $\bigO(\max(α, β))$-space complexity, where αα and ββ are respectively the maximum length of the factors involved in any translocation and inversion. Moreover we show that under the assumptions of equiprobability and independence of characters our algorithm has a $\bigO(n)$ average time complexity, whenever σ=Ω(log⁡m/log⁡log⁡1−εm)σ= Ω(\log m / \log\log^{1-ε} m), where ε>0ε> 0 and σσ is the dimension of the alphabet. Experiments show that the new proposed algorithm achieves very good results in practical cases.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.