Linear-Time Algorithm for Long LCF with k Mismatches
P. Charalampopoulos,
M. Crochemore,
C. S. Iliopoulos,
T. Kociumaka,
S. P. Pissis,
J. Radoszewski,
W. Rytter,
T. Waleń
August, 2018
Abstract
In the Longest Common Factor with k Mismatches () 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. [Thankachan et al. 2016] show that this problem can be solved in time and space for constant k. We consider the problem in which we assume that the sought factors have length at least l. We use difference covers to reduce the problem with to a task involving synchronized factors. The latter can be solved in time, which results in a linear-time algorithm for with . In general, our solution to the problem for arbitrary takes time.
Publication
CPM pp:23:1-23:16