Sparse dynamic programming I: linear cost functions
Journal of the ACM (JACM)
Matching for run-length encoded strings
Journal of Complexity
Algorithms for the Longest Common Subsequence Problem
Journal of the ACM (JACM)
Introduction to data compression (2nd ed.)
Introduction to data compression (2nd ed.)
A fast algorithm for computing longest common subsequences
Communications of the ACM
Information Processing Letters
Sequence Alignment Algorithms for Run-Length-Encoded Strings
COCOON '08 Proceedings of the 14th annual international conference on Computing and Combinatorics
Information Processing Letters
Approximate Matching for Run-Length Encoded Strings Is 3sum-Hard
CPM '09 Proceedings of the 20th Annual Symposium on Combinatorial Pattern Matching
Hardness of comparing two run-length encoded strings
Journal of Complexity
Fast algorithms for computing the constrained LCS of run-length encoded strings
Theoretical Computer Science
Hardness of longest common subsequence for sequences with bounded run-lengths
CPM'12 Proceedings of the 23rd Annual conference on Combinatorial Pattern Matching
Hi-index | 0.00 |
In this paper, we propose an O(min{mN,Mn}) time algorithm for finding a longest common subsequence of strings X and Y with lengths M and N, respectively, and run-length-encoded lengths m and n, respectively. We propose a new recursive formula for finding a longest common subsequence of Y and X which is in the run-length-encoded format. That is, Y=y"1y"2...y"N and X=r"1^l^"^1r"2^l^"^2...r"m^l^"^m, where r"i is the repeated character of run i and l"i is the number of its repetitions. There are three cases in the proposed recursive formula in which two cases are for r"i matching y"j. The third case is for r"i mismatching y"j. We will look specifically at the prior two cases that r"i matches y"j. To determine which case will be used when r"i matches y"j, we have to find a specific value which can be obtained by using another of our proposed recursive formulas.