Linear-Time Algorithm for Long LCF with k Mismatches

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 O(n ^k n) time and O(n) space for constant k. We consider the LCF_k(ℓ) problem in which we assume that the sought factors have length at least ℓ, and the LCF_k(ℓ) problem for ℓ=Ω(^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=O(n/^k+1n) synchronized factors. The latter can be solved in O(m ^k+1m) time, which results in a linear-time algorithm for Long LCF_k. In general, our solution to LCF_k(ℓ) for arbitrary ℓ takes O(n + n ^k+1 n/√(ℓ)) time.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
03/04/2020

Time-Space Tradeoffs for Finding a Long Common Substring

We consider the problem of finding, given two documents of total length ...
research
01/16/2020

Faster STR-EC-LCS Computation

The longest common subsequence (LCS) problem is a central problem in str...
research
06/19/2021

Checking whether a word is Hamming-isometric in linear time

A finite word f is Hamming-isometric if for any two word u and v of same...
research
01/31/2019

Quasi-Linear-Time Algorithm for Longest Common Circular Factor

We introduce the Longest Common Circular Factor (LCCF) problem in which,...
research
10/17/2018

Fast and Longest Rollercoasters

For k≥ 3, a k-rollercoaster is a sequence of numbers whose every maximal...
research
07/31/2018

Efficient Computation of Sequence Mappability

Sequence mappability is an important task in genome re-sequencing. In th...
research
12/22/2017

Longest common substring with approximately k mismatches

In the longest common substring problem we are given two strings of leng...

Please sign up or login with your details

Forgot password? Click here to reset