The longest subsequence-duplicated subsequence and related problems

IF 1 4区 计算机科学 Q3 COMPUTER SCIENCE, THEORY & METHODS
Manuel Lafond , Wenfeng Lai , Adiesha Liyanage , Binhai Zhu
{"title":"The longest subsequence-duplicated subsequence and related problems","authors":"Manuel Lafond ,&nbsp;Wenfeng Lai ,&nbsp;Adiesha Liyanage ,&nbsp;Binhai Zhu","doi":"10.1016/j.ic.2025.105313","DOIUrl":null,"url":null,"abstract":"<div><div>Motivated by computing duplication patterns in sequences, a new fundamental problem called the longest subsequence-duplicated subsequence (LSDS) is proposed. Given a sequence <em>S</em> of length <em>n</em>, a subsequence-duplicated subsequence is a subsequence of <em>S</em> in the form of <span><math><msubsup><mrow><mi>x</mi></mrow><mrow><mn>1</mn></mrow><mrow><msub><mrow><mi>d</mi></mrow><mrow><mn>1</mn></mrow></msub></mrow></msubsup><msubsup><mrow><mi>x</mi></mrow><mrow><mn>2</mn></mrow><mrow><msub><mrow><mi>d</mi></mrow><mrow><mn>2</mn></mrow></msub></mrow></msubsup><mo>⋯</mo><msubsup><mrow><mi>x</mi></mrow><mrow><mi>k</mi></mrow><mrow><msub><mrow><mi>d</mi></mrow><mrow><mi>k</mi></mrow></msub></mrow></msubsup></math></span> with <span><math><msub><mrow><mi>x</mi></mrow><mrow><mi>i</mi></mrow></msub></math></span> being a subsequence of <em>S</em>, <span><math><msub><mrow><mi>x</mi></mrow><mrow><mi>j</mi></mrow></msub><mo>≠</mo><msub><mrow><mi>x</mi></mrow><mrow><mi>j</mi><mo>+</mo><mn>1</mn></mrow></msub></math></span> and <span><math><msub><mrow><mi>d</mi></mrow><mrow><mi>i</mi></mrow></msub><mo>≥</mo><mn>2</mn></math></span> for all <em>i</em> in <span><math><mo>[</mo><mi>k</mi><mo>]</mo></math></span> and <em>j</em> in <span><math><mo>[</mo><mi>k</mi><mo>−</mo><mn>1</mn><mo>]</mo></math></span>. We first present an <span><math><mi>O</mi><mo>(</mo><msup><mrow><mi>n</mi></mrow><mrow><mn>6</mn></mrow></msup><mo>)</mo></math></span> time algorithm to compute the longest cubic subsequences of all the <span><math><mi>O</mi><mo>(</mo><msup><mrow><mi>n</mi></mrow><mrow><mn>2</mn></mrow></msup><mo>)</mo></math></span> substrings of <em>S</em>, improving the trivial <span><math><mi>O</mi><mo>(</mo><msup><mrow><mi>n</mi></mrow><mrow><mn>7</mn></mrow></msup><mo>)</mo></math></span> bound. Then, an <span><math><mi>O</mi><mo>(</mo><msup><mrow><mi>n</mi></mrow><mrow><mn>6</mn></mrow></msup><mo>)</mo></math></span> time algorithm for computing the longest subsequence-duplicated subsequence (LSDS) of <em>S</em> is obtained. Finally we focus on two variants of this problem. We first consider the constrained version when Σ is unbounded, each letter appears in <em>S</em> at most <em>d</em> times and all the letters in Σ must appear in the solution. We show that the problem is NP-hard for <span><math><mi>d</mi><mo>=</mo><mn>4</mn></math></span>, via a reduction from a special version of SAT (which is obtained from 3-COLORING). We then show that when each letter appears in <em>S</em> at most <span><math><mi>d</mi><mo>=</mo><mn>3</mn></math></span> times, then the problem is solvable in <span><math><mi>O</mi><mo>(</mo><msup><mrow><mi>n</mi></mrow><mrow><mn>4</mn></mrow></msup><mo>)</mo></math></span> time.</div></div>","PeriodicalId":54985,"journal":{"name":"Information and Computation","volume":"306 ","pages":"Article 105313"},"PeriodicalIF":1.0000,"publicationDate":"2025-06-06","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Information and Computation","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0890540125000495","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"COMPUTER SCIENCE, THEORY & METHODS","Score":null,"Total":0}
引用次数: 0

Abstract

Motivated by computing duplication patterns in sequences, a new fundamental problem called the longest subsequence-duplicated subsequence (LSDS) is proposed. Given a sequence S of length n, a subsequence-duplicated subsequence is a subsequence of S in the form of x1d1x2d2xkdk with xi being a subsequence of S, xjxj+1 and di2 for all i in [k] and j in [k1]. We first present an O(n6) time algorithm to compute the longest cubic subsequences of all the O(n2) substrings of S, improving the trivial O(n7) bound. Then, an O(n6) time algorithm for computing the longest subsequence-duplicated subsequence (LSDS) of S is obtained. Finally we focus on two variants of this problem. We first consider the constrained version when Σ is unbounded, each letter appears in S at most d times and all the letters in Σ must appear in the solution. We show that the problem is NP-hard for d=4, via a reduction from a special version of SAT (which is obtained from 3-COLORING). We then show that when each letter appears in S at most d=3 times, then the problem is solvable in O(n4) time.
最长子序列-重复子序列及其相关问题
基于序列中重复模式的计算,提出了一个新的基本问题——最长子序列-重复子序列。给定长度为n的序列S,子序列重复子序列是S的x1d1x2d2⋯xkdk形式的子序列,其中xi是S的子序列,对于所有i in [k]和j in [k−1],xj≠xj+1和di≥2。我们首先提出了一个O(n6)时间算法来计算S的所有O(n2)子串的最长三次子序列,改进了平凡的O(n7)界。然后,给出了计算S的最长子序列重复子序列(LSDS)的O(n6)时间算法。最后,我们关注这个问题的两个变体。我们首先考虑约束版本,当Σ无界时,每个字母在S中最多出现d次,并且Σ中的所有字母必须出现在解中。我们表明,问题是np困难的d=4,通过从一个特殊版本的SAT(这是由3-COLORING)。然后我们证明,当每个字母在S中最多出现d=3次时,那么问题在O(n4)时间内可解。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Information and Computation
Information and Computation 工程技术-计算机:理论方法
CiteScore
2.30
自引率
0.00%
发文量
119
审稿时长
140 days
期刊介绍: Information and Computation welcomes original papers in all areas of theoretical computer science and computational applications of information theory. Survey articles of exceptional quality will also be considered. Particularly welcome are papers contributing new results in active theoretical areas such as -Biological computation and computational biology- Computational complexity- Computer theorem-proving- Concurrency and distributed process theory- Cryptographic theory- Data base theory- Decision problems in logic- Design and analysis of algorithms- Discrete optimization and mathematical programming- Inductive inference and learning theory- Logic & constraint programming- Program verification & model checking- Probabilistic & Quantum computation- Semantics of programming languages- Symbolic computation, lambda calculus, and rewriting systems- Types and typechecking
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信