paper

Linear-Time Algorithm for Long LCF with Mismatches

arXiv:1802.06369

Abstract

In the Longest Common Factor with Mismatches (LCF) problem, we are given two strings and of total length , and we are asked to find a pair of maximal-length factors, one of and the other of , such that their Hamming distance is at most . Thankachan et al. show that this problem can be solved in time and space for constant . We consider the LCF() problem in which we assume that the sought factors have length at least , and the LCF() problem for , which we call the Long LCF problem. We use difference covers to reduce the Long LCF problem to a task involving synchronized factors. The latter can be solved in time, which results in a linear-time algorithm for Long LCF. In general, our solution to LCF() for arbitrary takes time.

submitted to CPM 2018