The longest letter-duplicated subsequence and related problems

dc.contributor.authorLai, Wenfeng
dc.contributor.authorLiyanage, Adiesha
dc.contributor.authorZhu, Binhai
dc.contributor.authorZou, Peng
dc.date.accessioned2024-10-29T19:50:34Z
dc.date.issued2024-07
dc.description.abstractMotivated by computing duplication patterns in sequences, a new problem called the longest letter-duplicated subsequence (LLDS) is proposed. Given a sequence S of length n, a letter- duplicated subsequence is a subsequence of S in the form of x d1 1 x d2 2 . . . x d k k with x i ∈ , x j = x j+1 and di ≥ 2 for all i in [k] and j in [k − 1]. A linear time algorithm for computing a longest letter-duplicated subsequence (LLDS) of S can be easily obtained. In this paper, we focus on two variants of this problem: (1) ‘all-appearance’ version, i.e., all letters in must appear in the solution, and (2) the weighted version. For the former, we obtain dichotomous results: We prove that, when each letter appears in S at least 4 times, the problem and a relaxed version on feasibility testing (FT) are both NP-hard. The reduction is from (3+, 1, 2−)- SAT, where all 3-clauses (i.e., containing 3 lals) are monotone (i.e., containing only positive literals) and all 2-clauses contain only negative literals. We then show that when each letter appears in S at most 3 times, then the problem admits an O(n) time algorithm. Finally, we consider the weighted version, where the weight of a block x di i (di ≥ 2) could be any positive function which might not grow with di . We give a non-trivial O(n2) time dynamic programming algorithm for this version, i.e., computing an LD-subsequence of S whose weight is maximized.
dc.identifier.citationLai, W., Liyanage, A., Zhu, B. et al. The longest letter-duplicated subsequence and related problems. Acta Informatica 61, 315–329 (2024). https://doi.org/10.1007/s00236-024-00459-7
dc.identifier.doi10.1007/s00236-024-00459-7
dc.identifier.issn1432-0525
dc.identifier.urihttps://scholarworks.montana.edu/handle/1/18902
dc.language.isoen_US
dc.publisherSpringer Science and Business Media LLC
dc.rightscc-by
dc.rights.urihttps://creativecommons.org/licenses/by/4.0/
dc.subjectlongest letter-duplicated subsequence
dc.subjectcomputing duplication patterns
dc.titleThe longest letter-duplicated subsequence and related problems
dc.typeArticle
mus.citation.extentfirstpage1
mus.citation.extentlastpage15
mus.citation.issue3
mus.citation.journaltitleActa Informatica
mus.citation.volume61
mus.relation.collegeCollege of Engineering
mus.relation.departmentComputer Science
mus.relation.universityMontana State University - Bozeman

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
lai-longest-letter-duplicated-subsequence-2024.pdf
Size:
292.31 KB
Format:
Adobe Portable Document Format

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
825 B
Format:
Item-specific license agreed upon to submission
Description: