The Longest Wave Subsequence Problem: Generalizations of the Longest Increasing Subsequence Problem

被引:0
|
作者
Chen, Guan-Zhi [1 ]
Yang, Chang-Biau [1 ]
Chang, Yu-Cheng [1 ]
机构
[1] Natl Sun Yat Sen Univ, Dept Comp Sci & Engn, Kaohsiung, Taiwan
关键词
Longest increasing subsequence; longest wave subsequence; trend-preserving; increasing/decreasing segment; priority queue; FAST ALGORITHM; PROTEIN; TIME;
D O I
10.1142/S012905412450014X
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
The longest increasing subsequence (LIS) problem aims to find the subsequence exhibiting an increasing trend in a numeric sequence with the maximum length. In this paper, we generalize the LIS problem to the longest wave subsequence (LWS) problem, which encompasses two versions: LWSt and LWSr. Given a numeric sequence A of distinct values and a target trend sequence T, the LWSt problem aims to identify the longest subsequence of A that preserves the trend of the prefix of T. And, the LWSr problem aims to find the longest subsequence of A within r segments, alternating increasing and decreasing subsequences. We propose two efficient algorithms for solving the two versions of the LWS problem. For the LWSt problem, the time complexity of our algorithm is O(nlog n), where n represents the length of the given numeric sequence A. Additionally, we propose an O(rnlog n)-time algorithm for solving the LWSr problem. In both algorithms, we utilize the priority queues for the insertion, deletion, and successor operations.
引用
收藏
页数:16
相关论文
共 50 条
  • [1] The longest common increasing subsequence problem
    Bai, YS
    Weems, BP
    [J]. Proceedings of the 8th Joint Conference on Information Sciences, Vols 1-3, 2005, : 362 - 366
  • [2] On Two Variants of the Longest Increasing Subsequence Problem
    Deorowicz, Sebastian
    Grabowski, Szymon
    [J]. MAN-MACHINE INTERACTIONS, 2009, 59 : 541 - +
  • [4] A CGM algorithm solving the longest increasing subsequence problem
    Seme, David
    [J]. COMPUTATIONAL SCIENCE AND ITS APPLICATIONS - ICCSA 2006, PT 5, 2006, 3984 : 10 - 21
  • [5] The longest almost increasing subsequence problem with sliding windows
    Ho, Cheng-Han
    Yang, Chang-Biau
    [J]. THEORETICAL COMPUTER SCIENCE, 2024, 1005
  • [6] ALGORITHMS FOR LONGEST COMMON SUBSEQUENCE PROBLEM
    HIRSCHBERG, DS
    [J]. JOURNAL OF THE ACM, 1977, 24 (04) : 664 - 675
  • [7] THE LONGEST COMMON SUBSEQUENCE PROBLEM REVISITED
    APOSTOLICO, A
    GUERRA, C
    [J]. ALGORITHMICA, 1987, 2 (03) : 315 - 336
  • [8] On the constrained longest common subsequence problem
    [J]. Gorbenko, A. (gorbenko.aa@gmail.com), 1600, International Association of Engineers (40):
  • [9] On the Longest Common Rigid Subsequence Problem
    Bansal, Nikhil
    Lewenstein, Moshe
    Ma, Bin
    Zhang, Kaizhong
    [J]. ALGORITHMICA, 2010, 56 (02) : 270 - 280
  • [10] On the Longest Common Rigid Subsequence Problem
    Nikhil Bansal
    Moshe Lewenstein
    Bin Ma
    Kaizhong Zhang
    [J]. Algorithmica, 2010, 56 : 270 - 280