Papers
Topics
Authors
Recent
Search
2000 character limit reached

Linear-Time Algorithm for Long LCF with kk Mismatches

Published 18 Feb 2018 in cs.DS | (1802.06369v1)

Abstract: In the Longest Common Factor with kk Mismatches (LCFk_k) problem, we are given two strings XX and YY of total length nn, and we are asked to find a pair of maximal-length factors, one of XX and the other of YY, such that their Hamming distance is at most kk. Thankachan et al. show that this problem can be solved in O(nlog⁡<sup>k</sup>n)\mathcal{O}(n \log<sup>k</sup> n) time and O(n)\mathcal{O}(n) space for constant kk. We consider the LCFk_k(ℓ\ell) problem in which we assume that the sought factors have length at least ℓ\ell, and the LCFk_k(ℓ\ell) problem for ℓ=Ω(log⁡<sup>2k+2</sup>n)\ell=\Omega(\log<sup>{2k+2}</sup> n), which we call the Long LCFk_k problem. We use difference covers to reduce the Long LCFk_k problem to a task involving m=O(n/log⁡<sup>k+1n)m=\mathcal{O}(n/\log<sup>{k+1}n) synchronized factors. The latter can be solved in O(mlog⁡<sup>k+1m)\mathcal{O}(m \log<sup>{k+1}m) time, which results in a linear-time algorithm for Long LCFk_k. In general, our solution to LCFk_k(ℓ\ell) for arbitrary ℓ\ell takes O(n+nlog⁡<sup>k+1</sup>n/ℓ)\mathcal{O}(n + n \log<sup>{k+1}</sup> n/\sqrt{\ell}) time.

Citations (18)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.