An algorithm demonstrates a space-delay tradeoff for listing all LCSs of two strings, indicating efficiency gains.
The longest common subsequence (LCS) problem, consisting of finding an arbitrary LCS of given two strings, has been studied for a long time due to its many applications in fields. As a variant of this problem, we consider the problem of enumerating all LCSs. In LCS enumeration, there is a tradeoff between the delay time to find each LCS and the size of the space used to shorten it. For any positive constant α with α < 1, we propose anO(n2-α)-space algorithm that outputs all LCSs each in O(n1+α log2 n) time after an O(n2)-time preprocessing, where n is the length of the input strings.
No takes yet. Share an insight, caveat, or question.
Yoshifumi Sakai (2026) studied this question.
Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context: