paper

Faster Space-Efficient STR-IC-LCS Computation

arXiv:2210.07979 · doi:10.1016/j.tcs.2024.114607

Abstract

One of the most fundamental method for comparing two given strings and is the longest common subsequence (LCS), where the task is to find (the length) of an LCS of and . In this paper, we deal with the STR-IC-LCS problem which is one of the constrained LCS problems proposed by Chen and Chao [J. Comb. Optim, 2011]. A string is said to be an STR-IC-LCS of three given strings , , and , if is a longest string satisfying that (1) includes as a substring and (2) is a common subsequence of and . We present three efficient algorithms for this problem: First, we begin with a space-efficient solution which computes the length of an STR-IC-LCS in time and space, where is the length of an LCS of and of length . When or , then this algorithm uses only linear space. Second, we present a faster algorithm that works in time, where is the length of , while retaining the space efficiency. Third, we give an alternative algorithm that runs in time with space, where denotes the STR-IC-LCS length for input strings , , and .

This is a full version of "Space-Efficient STR-IC-LCS Computation" presented at SOFSEM 2023

References in corpus (1)