A fast and practical bit-vector algorithm for the Longest Common Subsequence problem

Research output: Contribution to journalArticlepeer-review

72 Citations (Scopus)

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 rn and n, n greater than or equal to m, we present an algorithm which determines the length p of an LCS in O(nm/w) time and O(m/w) space, where tv 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 m less than or equal to w. (C) 2001 Elsevier Science B.V All rights reserved.
Original languageEnglish
Pages (from-to)279 - 285
Number of pages7
JournalINFORMATION PROCESSING LETTERS
Volume80
Issue number6
DOIs
Publication statusPublished - 31 Dec 2001

Fingerprint

Dive into the research topics of 'A fast and practical bit-vector algorithm for the Longest Common Subsequence problem'. Together they form a unique fingerprint.

Cite this