IDEAS home Printed from https://ideas.repec.org/a/spr/jcomop/v28y2014i4d10.1007_s10878-012-9588-2.html
   My bibliography  Save this article

Efficient polynomial-time algorithms for the constrained LCS problem with strings exclusion

Author

Listed:
  • Hsing-Yen Ann

    (National Center for High-Performance Computing)

  • Chang-Biau Yang

    (National Sun Yat-sen University)

  • Chiou-Ting Tseng

    (National Sun Yat-sen University)

Abstract

In this paper, we revisit a recent variant of the longest common subsequence (LCS) problem, the string-excluding constrained LCS (STR-EC-LCS) problem, which was first addressed by Chen and Chao (J Comb Optim 21(3):383–392, 2011). Given two sequences $$X$$ and $$Y$$ of lengths $$m$$ and $$n,$$ respectively, and a constraint string $$P$$ of length $$r,$$ we are to find a common subsequence $$Z$$ of $$X$$ and $$Y$$ which excludes $$P$$ as a substring and the length of $$Z$$ is maximized. In fact, this problem cannot be correctly solved by the previously proposed algorithm. Thus, we give a correct algorithm with $$O(mnr)$$ time to solve it. Then, we revisit the STR-EC-LCS problem with multiple constraints $$\{ P_1, P_2, \ldots , P_k \}.$$ We propose a polynomial-time algorithm which runs in $$O(mnR)$$ time, where $$R = \sum _{i=1}^{k} |P_i|,$$ and thus it overthrows the previous claim of NP-hardness.

Suggested Citation

  • Hsing-Yen Ann & Chang-Biau Yang & Chiou-Ting Tseng, 2014. "Efficient polynomial-time algorithms for the constrained LCS problem with strings exclusion," Journal of Combinatorial Optimization, Springer, vol. 28(4), pages 800-813, November.
  • Handle: RePEc:spr:jcomop:v:28:y:2014:i:4:d:10.1007_s10878-012-9588-2
    DOI: 10.1007/s10878-012-9588-2
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s10878-012-9588-2
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s10878-012-9588-2?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Yi-Ching Chen & Kun-Mao Chao, 2011. "On the generalized constrained longest common subsequence problems," Journal of Combinatorial Optimization, Springer, vol. 21(3), pages 383-392, April.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.

      Corrections

      All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:spr:jcomop:v:28:y:2014:i:4:d:10.1007_s10878-012-9588-2. See general information about how to correct material in RePEc.

      If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

      If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

      If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

      For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .

      Please note that corrections may take a couple of weeks to filter through the various RePEc services.

      IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.