首页    期刊浏览 2024年09月18日 星期三
登录注册

文章基本信息

  • 标题:Linear-Time Algorithm for Long LCF with k Mismatches
  • 作者:Panagiotis Charalampopoulos ; Maxime Crochemore ; Costas S. Iliopoulos
  • 期刊名称:LIPIcs : Leibniz International Proceedings in Informatics
  • 电子版ISSN:1868-8969
  • 出版年度:2018
  • 卷号:105
  • 页码:23:1-23:16
  • DOI:10.4230/LIPIcs.CPM.2018.23
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要: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. [Thankachan et al. 2016] show that this problem can be solved in O(n log^k n) time and O(n) space for constant k. We consider the LCF_k(l) problem in which we assume that the sought factors have length at least l. We use difference covers to reduce the LCF_k(l) problem with l=Omega(log^{2k+2}n) to a task involving m=O(n/log^{k+1}n) synchronized factors. The latter can be solved in O(m log^{k+1}m) time, which results in a linear-time algorithm for LCF_k(l) with l=Omega(log^{2k+2}n). In general, our solution to the LCF_k(l) problem for arbitrary l takes O(n + n log^{k+1} n/sqrt{l}) time.
  • 关键词:longest common factor; longest common substring; Hamming distance; heavy-light decomposition; difference cover
Loading...
联系我们|关于我们|网站声明
国家哲学社会科学文献中心版权所有