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 条
  • [31] A note on randomized streaming space bounds for the longest increasing subsequence problem
    Chakrabarti, Amit
    [J]. INFORMATION PROCESSING LETTERS, 2012, 112 (07) : 261 - 263
  • [32] A Sub-Quadratic Algorithm for the Longest Common Increasing Subsequence Problem
    Duraj, Lech
    [J]. 37TH INTERNATIONAL SYMPOSIUM ON THEORETICAL ASPECTS OF COMPUTER SCIENCE (STACS 2020), 2020, 154
  • [33] On the longest common increasing binary subsequence
    Houdre, Christian
    Lember, Juri
    Matzinger, Heinrich
    [J]. COMPTES RENDUS MATHEMATIQUE, 2006, 343 (09) : 589 - 594
  • [34] Beam-ACO for the Longest Common Subsequence Problem
    Blum, Christian
    [J]. 2010 IEEE CONGRESS ON EVOLUTIONARY COMPUTATION (CEC), 2010,
  • [35] The constrained longest common subsequence problem for degenerate strings
    Iliopoulos, Costas
    Rahman, M. Sohel
    Voracek, Michal
    Vagner, Ladislav
    [J]. IMPLEMENTATION AND APPLICATION OF AUTOMATA, 2007, 4783 : 309 - +
  • [36] The Longest Almost-Increasing Subsequence
    Elmasry, Amr
    [J]. COMPUTING AND COMBINATORICS, 2010, 6196 : 338 - 347
  • [37] The longest almost-increasing subsequence
    Elmasry, Amr
    [J]. INFORMATION PROCESSING LETTERS, 2010, 110 (16) : 655 - 658
  • [38] Analysis of Evolutionary Algorithms for the Longest Common Subsequence Problem
    Jansen, Thomas
    Weyland, Dennis
    [J]. GECCO 2007: GENETIC AND EVOLUTIONARY COMPUTATION CONFERENCE, VOL 1 AND 2, 2007, : 939 - +
  • [39] An efficient algorithm for the longest common palindromic subsequence problem
    Liang, Ting-Wei
    Yang, Chang-Biau
    Huang, Kuo-Si
    [J]. THEORETICAL COMPUTER SCIENCE, 2022, 922 : 475 - 485
  • [40] NEW SYSTOLIC ARRAYS FOR THE LONGEST COMMON SUBSEQUENCE PROBLEM
    LIN, YC
    [J]. PARALLEL COMPUTING, 1994, 20 (09) : 1323 - 1334