Linear-time algorithm for long LCF with k mismatches

From MaRDI portal
Linear-time algorithm for long LCF with \(k\) mismatches



Abstract: In the Longest Common Factor with k Mismatches (LCFk) problem, we are given two strings X and Y of total length n, and we are asked to find a pair of maximal-length factors, one of X and the other of Y, such that their Hamming distance is at most k. Thankachan et al. show that this problem can be solved in mathcalO(nlogkn) time and mathcalO(n) space for constant k. We consider the LCFk(ell) problem in which we assume that the sought factors have length at least ell, and the LCFk(ell) problem for ell=Omega(log2k+2n), which we call the Long LCFk problem. We use difference covers to reduce the Long LCFk problem to a task involving m=mathcalO(n/logk+1n) synchronized factors. The latter can be solved in mathcalO(mlogk+1m) time, which results in a linear-time algorithm for Long LCFk. In general, our solution to LCFk(ell) for arbitrary ell takes mathcalO(n+nlogk+1n/sqrtell) time.





Describes a project that uses

Uses Software






This page was built for publication: Linear-time algorithm for long LCF with \(k\) mismatches

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q5140788)