Linear-Time Algorithm for Long LCF with k Mismatches

CPM(2018)

引用 5|浏览11
暂无评分
摘要
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 𝒪(n log^k n) time and 𝒪(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 ℓ=Ω(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=𝒪(n/log^k+1n) synchronized factors. The latter can be solved in 𝒪(m log^k+1m) time, which results in a linear-time algorithm for Long LCF_k. In general, our solution to LCF_k(ℓ) for arbitrary ℓ takes 𝒪(n + n log^k+1 n/√(ℓ)) time.
更多
查看译文
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要