TY - JOUR
T1 - A data structure for substring-substring LCS length queries
AU - Sakai, Yoshifumi
N1 - Publisher Copyright:
© 2022 Elsevier B.V.
PY - 2022/4/8
Y1 - 2022/4/8
N2 - The longest common subsequence (LCS) length of two strings is used as one of the most fundamental metrics measuring the similarity between the strings. To find out the local structures common to the strings under this similarity metric, we need a fast calculation of the LCS length of any pair of substrings of the two strings. For supporting such queries, it makes sense to preprocess the two strings in a quadratic time, because it takes about the same amount of time to compute the LCS length of the entire strings from scratch. We propose a quadratic-time constructible data structure that supports sublinear-time queries of the LCS length for any pair of substrings. The query time is O(llog1+ϵl), where ϵ is a positive constant arbitrarily small and l is the sum of the substring lengths.
AB - The longest common subsequence (LCS) length of two strings is used as one of the most fundamental metrics measuring the similarity between the strings. To find out the local structures common to the strings under this similarity metric, we need a fast calculation of the LCS length of any pair of substrings of the two strings. For supporting such queries, it makes sense to preprocess the two strings in a quadratic time, because it takes about the same amount of time to compute the LCS length of the entire strings from scratch. We propose a quadratic-time constructible data structure that supports sublinear-time queries of the LCS length for any pair of substrings. The query time is O(llog1+ϵl), where ϵ is a positive constant arbitrarily small and l is the sum of the substring lengths.
KW - Algorithms
KW - Longest common subsequence
KW - Semi-local string comparison
UR - http://www.scopus.com/inward/record.url?scp=85125123937&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=85125123937&partnerID=8YFLogxK
U2 - 10.1016/j.tcs.2022.02.004
DO - 10.1016/j.tcs.2022.02.004
M3 - Article
AN - SCOPUS:85125123937
SN - 0304-3975
VL - 911
SP - 41
EP - 54
JO - Theoretical Computer Science
JF - Theoretical Computer Science
ER -