Computing and Enumerating Minimal Common Supersequences Between Two Strings
Abstract
Given strings each of length at most , computing the shortest common supersequence of them is a well-known NP-hard problem (when is unbounded). On the other hand, when , such a shortest common supersequence can be computed in time using dynamic programming as a textbook example. In this paper, we consider the problem of computing a \emph{minimal} common supersequence and enumerating all minimal common supersequences for input strings. Our results are summarized as follows. A minimal common supersequence of input strings can be computed in time. (The method also works when is a constant). All minimal common supersequences between two input strings can be enumerated with a data structure of space and an time delay, and the data structure can be constructed in time.
Keywords
Cite
@article{arxiv.2603.22591,
title = {Computing and Enumerating Minimal Common Supersequences Between Two Strings},
author = {Braeden Sopp and Adiesha Liyanage and Mingyang Gong and Binhai Zhu},
journal= {arXiv preprint arXiv:2603.22591},
year = {2026}
}
Comments
22 pages, 2 figures, 2 algorithms