The Complexity of Maximal Common Subsequence Enumeration
The Complexity of Maximal Common Subsequence Enumeration
Frequent pattern mining is widely used to find ``important'' or ``interesting'' patterns in data. While it is not easy to mathematically define such patterns, maximal frequent patterns are promising candidates, as frequency is a natural indicator of relevance and maximality helps to summarize the output. As such, their mining has been studied on various data types, including itemsets, graphs, and strings. The complexity of mining maximal frequent itemsets and subtrees has been thoroughly investigated (e.g., [Boros et al., 2003], [Uno et al., 2004]) in the literature. On the other hand, while the idea of mining frequent subsequences in sequential data was already introduced in the seminal paper [Agrawal et al., 1995], the complexity of the problem is still open. In this paper, we investigate the complexity of the maximal common subsequence enumeration problem, which is both an important special case of maximal frequent subsequence mining and a generalization of the classic longest common subsequence (LCS) problem. We show the hardness of enumerating maximal common subsequences between multiple strings, ruling out the possibility of an \emph{output-polynomial time} enumeration algorithm under $P \neq NP$, that is, an algorithm that runs in time ${\rm poly}(|\mathcal I| + N)$, where $|\mathcal I|$ and $N$ are the size of the input and number of output solutions, respectively. To circumvent this intractability, we also investigate the parameterized complexity of the problem, and show several results when the alphabet size, the number of strings, and the length of a string are taken into account as parameters.
Giovanni Buzzega、Alessio Conte、Yasuaki Kobayashi、Kazuhiro Kurita、Giulia Punzi
计算技术、计算机技术
Giovanni Buzzega,Alessio Conte,Yasuaki Kobayashi,Kazuhiro Kurita,Giulia Punzi.The Complexity of Maximal Common Subsequence Enumeration[EB/OL].(2025-04-07)[2025-06-07].https://arxiv.org/abs/2504.04757.点此复制
评论