A note on the longest common substring with kk-mismatches problem

preprint2014arXivOpen access

Abstract

The recently introduced longest common substring with kk-mismatches (kk-LCF) problem is to find, given two sequences S1S_1 and S2S_2 of length nn each, a longest substring A1A_1 of S1S_1 and A2A_2 of S2S_2 such that the Hamming distance between A1A_1 and A2A_2 is at most kk. So far, the only subquadratic time result for this problem was known for k=1k = 1~\cite{FGKU2014}. We first present two output-dependent algorithms solving the kk-LCF problem and show that for k=O(log⁡1−εn)k = O(\log^{1-\varepsilon} n), where ε>0\varepsilon > 0, at least one of them works in subquadratic time, using O(n)O(n) words of space. The choice of one of these two algorithms to be applied for a given input can be done after linear time and space preprocessing. Finally we present a tabulation-based algorithm working, in its range of applicability, in O(n2log⁡min⁡(k+ℓ0,σ)/log⁡n)O(n^2\log\min(k+\ell_0, σ)/\log n) time, where ℓ0\ell_0 is the length of the standard longest common substring.

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.