首页 | 本学科首页   官方微博 | 高级检索  
     


An all-substrings common subsequence algorithm
Authors:C.E.R. Alves
Affiliation:a Faculdade de Tecnologia e Ciências Exatas, Universidade São Judas Tadeu, São Paulo, SP, Brazil
b Departamento de Computação e Estatística, Universidade Federal de Mato Grosso do Sul, Campo Grande, MS, Brazil
c Departamento de Ciência da Computação, Universidade de São Paulo, São Paulo, SP, Brazil
Abstract:Given two strings A and B of lengths na and nb, na?nb, respectively, the all-substrings longest common subsequence (ALCS) problem obtains, for every substring B of B, the length of the longest string that is a subsequence of both A and B. The ALCS problem has many applications, such as finding approximate tandem repeats in strings, solving the circular alignment of two strings and finding the alignment of one string with several others that have a common substring. We present an algorithm to prepare the basic data structure for ALCS queries that takes O(nanb) time and O(na+nb) space. After this preparation, it is possible to build a matrix of size View the MathML source that allows any LCS length to be retrieved in constant time. Some trade-offs between the space required and the querying time are discussed. To our knowledge, this is the first algorithm in the literature for the ALCS problem.
Keywords:68W05   68W40
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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