【24h】

Approximating Constrained LCS

机译:近似受限的LC

获取原文

摘要

The problem of finding the longest common subsequence (LCS) of two given strings A and B is a well-studied problem. The Constrained longest common subsequence (C-LCS) for three strings A, B and C is the longest common subsequence of A and B that contains C as a subsequence. The fastest algorithm solving the C-LCS problem has a time complexity of O(mnk) where m, n and k are the lengths of A, B and C respectively. We propose to consider the approximate version of the LCS and the Constrained LCS. For LCS we propose a simple linear time approximation algorithm that yields an approximation ratio of 1/(|Σ|). For C-LCS we obtain the first two approximation algorithms. Our first algorithm has an approximation factor of 1/((min(m,n))~(1/2)) with an O(mn) running time, while the second algorithm yields a 1/((min(m,n)|Σ|)~(1/2)) approximation factor within a running time of O(m + n).
机译:找到两个给定字符串A和B的最长常见子序列(LCS)的问题是一个良好的问题。三个字符串A,B和C的受约束的最长常见的子序列(C-LC)是A和B的最长常见随后,其包含C作为子序列。求解C-LCS问题的最快算法具有O(MNK)的时间复杂度,其中M,N和K分别是A,B和C的长度。我们建议考虑LCS和受限LCS的近似版本。对于LCS,我们提出了一种简单的线性时间近似算法,其产生1 /(|σ|)的近似比。对于C-LCS,我们获得了前两个近似算法。我们的第一算法具有1 /((min(m,n))〜(1/2))的近似因子,其中o(mn)运行时间,而第二算法产生1 /((min(m,n,n )|Σ|)〜(1/2))O(m + n)的运行时间内的近似因子。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号