Emergent Mind

Linear-Time Algorithm for Long LCF with $k$ Mismatches

(1802.06369)
Published Feb 18, 2018 in cs.DS

Abstract

In the Longest Common Factor with $k$ Mismatches (LCF$k$) 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 $\mathcal{O}(n \logk n)$ time and $\mathcal{O}(n)$ space for constant $k$. We consider the LCF$k$($\ell$) problem in which we assume that the sought factors have length at least $\ell$, and the LCF$k$($\ell$) problem for $\ell=\Omega(\log{2k+2} n)$, which we call the Long LCF$k$ problem. We use difference covers to reduce the Long LCF$k$ problem to a task involving $m=\mathcal{O}(n/\log{k+1}n)$ synchronized factors. The latter can be solved in $\mathcal{O}(m \log{k+1}m)$ time, which results in a linear-time algorithm for Long LCF$k$. In general, our solution to LCF$_k$($\ell$) for arbitrary $\ell$ takes $\mathcal{O}(n + n \log{k+1} n/\sqrt{\ell})$ time.

We're not able to analyze this paper right now due to high demand.

Please check back later (sorry!).

Generate a summary of this paper on our Pro plan:

We ran into a problem analyzing this paper.

Newsletter

Get summaries of trending comp sci papers delivered straight to your inbox:

Unsubscribe anytime.