English

On the Complexity of Finding Approximate LCS of Multiple Strings

Data Structures and Algorithms 2025-09-22 v3

Abstract

Finding an Approximate Longest Common Substring (ALCS) within a given set S={s1,s2,,sm}S=\{s_1,s_2,\ldots,s_m\} of m2m \ge 2 strings is a key problem in computational biology, such as identifying related mutations across multiple genetic sequences. We study several variants of ALCS problems that, given integers kk and tmt \le m, seek the longest string uu -- or the longest substring uu of any string in SS -- that lies within distance kk of at least one substring in tt distinct strings from SS. While the general problems are NP-hard, we present efficient algorithms for restricted cases under Hamming and edit distances using the LCPkLCP_k and kk-errata tree data structures. Our methods achieve run times of O(N2)\mathcal{O}(N^2), O(kN2)\mathcal{O}(k\ell N^2), and O(mNlogk)\mathcal{O}(mN\log^k \ell), where \ell is the length of the longest string and NN is the sum of the lengths of all the strings in SS. We also establish conditional lower bounds under the Strong Exponential Time Hypothesis and extend our study to indeterminate strings.

Keywords

Cite

@article{arxiv.2505.15992,
  title  = {On the Complexity of Finding Approximate LCS of Multiple Strings},
  author = {Hamed Hasibi and Neerja Mhaskar and W. F. Smyth},
  journal= {arXiv preprint arXiv:2505.15992},
  year   = {2025}
}

Comments

15 pages

R2 v1 2026-07-01T02:29:47.468Z