A hardness result and new algorithm for the longest common palindromic subsequence problem

被引:10
|
作者
Inenaga, Shunsuke [1 ]
Hyyro, Heikki [2 ]
机构
[1] Kyushu Univ, Dept Informat, Fukuoka, Japan
[2] Univ Tampere, Fac Nat Sci, Tampere, Finland
关键词
Algorithms; String processing; Palindromic subsequences; Longest common subsequences; Nesting rectangles; CONSTRAINED LCS;
D O I
10.1016/j.ipl.2017.08.006
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
The 2-LCPS problem, first introduced by Chowdhury et al. (2014) [17], asks one to compute (the length of) a longest common palindromic subsequence between two given strings A and B. We show that the 2-LCPS problem is at least as hard as the well-studied longest common subsequence problem for four strings. Then, we present a new algorithm which solves the 2-LCPS problem in O (sigma M-2 + n) time, where n denotes the length of A and B, M denotes the number of matching positions between A and B, and a denotes the number of distinct characters occurring in both A and B. Our new algorithm is faster than Chowdhury et al.'s sparse algorithm when sigma = o(log(2) n log log n). (C) 2017 Elsevier B.V. All rights reserved.
引用
收藏
页码:11 / 15
页数:5
相关论文
共 50 条
  • [1] An efficient algorithm for the longest common palindromic subsequence problem
    Liang, Ting-Wei
    Yang, Chang-Biau
    Huang, Kuo-Si
    THEORETICAL COMPUTER SCIENCE, 2022, 922 : 475 - 485
  • [2] Palindromic Subsequence Automata and Longest Common Palindromic Subsequence
    Hasan M.M.
    Islam A.S.M.S.
    Rahman M.S.
    Sen A.
    Mathematics in Computer Science, 2017, 11 (2) : 219 - 232
  • [3] A new algorithm for the longest common subsequence problem
    Xiang, Xuyu
    Zhang, Dafang
    Qin, Jiaohua
    CIS WORKSHOPS 2007: INTERNATIONAL CONFERENCE ON COMPUTATIONAL INTELLIGENCE AND SECURITY WORKSHOPS, 2007, : 112 - 115
  • [4] Anytime algorithms for the longest common palindromic subsequence problem
    Djukanovic, Marko
    Raidl, Guenther R.
    Blum, Christian
    COMPUTERS & OPERATIONS RESEARCH, 2020, 114
  • [5] A new flexible algorithm for the longest common subsequence problem
    Rick, C
    COMBINATORIAL PATTERN MATCHING, 1995, 937 : 340 - 351
  • [6] Exact and Heuristic Approaches for the Longest Common Palindromic Subsequence Problem
    Djukanovic, Marko
    Raidl, Gunther R.
    Blum, Christian
    LEARNING AND INTELLIGENT OPTIMIZATION, LION 12, 2019, 11353 : 199 - 214
  • [7] On finding a longest common palindromic subsequence
    Bae, Sang Won
    Lee, Inbok
    THEORETICAL COMPUTER SCIENCE, 2018, 710 : 29 - 34
  • [8] Computing a Longest Common Palindromic Subsequence
    Chowdhury, Shihabur Rahman
    Hasan, Md. Mahbubul
    Iqbal, Sumaiya
    Rahman, M. Sohel
    FUNDAMENTA INFORMATICAE, 2014, 129 (04) : 329 - 340
  • [9] A genetic algorithm for the longest common subsequence problem
    Hinkemeyer, Brenda
    Julstrorn, Bryant A.
    GECCO 2006: GENETIC AND EVOLUTIONARY COMPUTATION CONFERENCE, VOL 1 AND 2, 2006, : 609 - +
  • [10] An improved algorithm for the longest common subsequence problem
    Mousavi, Sayyed Rasoul
    Tabataba, Farzaneh
    COMPUTERS & OPERATIONS RESEARCH, 2012, 39 (03) : 512 - 520