Beyond the Longest Letter-duplicated Subsequence Problem
Abstract
Given a sequence of length , a letter-duplicated subsequence is a subsequence of in the form of with , and for all in and in . A linear time algorithm for computing the longest letter-duplicated subsequence (LLDS) of can be easily obtained. In this paper, we focus on two variants of this problem. We first consider the constrained version when is unbounded, each letter appears in at least 6 times and all the letters in must appear in the solution. We show that the problem is NP-hard (a further twist indicates that the problem does not admit any polynomial time approximation). The reduction is from possibly the simplest version of SAT that is NP-complete, -SAT, where each variable appears at most twice positively and exact once negatively, and each clause contains at most three literals and some clauses must contain exactly two literals. (We hope that this technique will serve as a general tool to help us proving the NP-hardness for some more tricky sequence problems involving only one sequence -- much harder than with at least two input sequences, which we apply successfully at the end of the paper on some extra variations of the LLDS problem.) We then show that when each letter appears in at most 3 times, then the problem admits a factor approximation. Finally, we consider the weighted version, where the weight of a block could be any positive function which might not grow with . We give a non-trivial time dynamic programming algorithm for this version, i.e., computing an LD-subsequence of whose weight is maximized.
Cite
@article{arxiv.2112.05725,
title = {Beyond the Longest Letter-duplicated Subsequence Problem},
author = {Wenfeng Lai and Adiesha Liyanage and Binhai Zhu and Peng Zou},
journal= {arXiv preprint arXiv:2112.05725},
year = {2022}
}
Comments
18 pages