首页 | 官方网站   微博 | 高级检索  
     


A fast and practical bit-vector algorithm for the Longest Common Subsequence problem
Authors:Maxime Crochemore  Costas S Iliopoulos  Yoan J Pinzon  James F Reid  
Affiliation:

a Institut Gaspard-Monge, Université de Marne-la-Vallée, F-77454 Marne-la-Vallée Cedex 2, France

b Department Computer Science, King's College London, London WC2R 2LS, UK

c School of Computing, Curtin University of Technology, GPO Box 1987 U, Perth 6845, Western Australia

d LNCIB, Area Science Park, Padriciano 99, Triesta, 34102, Italy

Abstract:This paper presents a new practical bit-vector algorithm for solving the well-known Longest Common Subsequence (LCS) problem. Given two strings of length m and n, ngreater-or-equal, slantedm, we present an algorithm which determines the length p of an LCS in O(nm/w) time and O(m/w) space, where w is the number of bits in a machine word. This algorithm can be thought of as column-wise “parallelization” of the classical dynamic programming approach. Our algorithm is very efficient in practice, where computing the length of an LCS of two strings can be done in linear time and constant (additional/working) space by assuming that mless-than-or-equals, slantw.
Keywords:Algorithms  Longest Common Subsequence  Dynamic programming  Bit-vector algorithm
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号