We consider the longest common subsequence problem in the context of subsequences with gap constraints. In particular, following Day et al. 2022, we consider the setting when the distance (i. e., the gap) between two consecutive symbols of the subsequence has to be between a lower and an upper bound (which may depend on the position of those symbols in the subsequence or on the symbols bordering the gap) as well as the case where the entire subsequence is found in a bounded range (defined by a single upper bound), considered by Kosche et al. 2022. In all these cases, we present effcient algorithms for determining the length of the longest common constrained subsequence between two given strings.
翻译:我们考虑在具有间隔约束的子序列上下文中的最长公共子序列问题。特别地,我们考虑以下情况,即 子序列中两个连续符号之间的距离(即间隔)必须在一个下限和一个上限之间(可能取决于这些符号在子序列中的位置或包围间隔的符号),以及整个子序列在一个有界范围内(由单个上界定义),由 Kosche et al. 2022 提出。在所有这些情况下,我们提出了有效的算法,以确定给定两个字符串之间的最长公共约束子序列的长度。