Skip to main content

An Efficient Algorithm for a Generalized LCSĀ Problem

  • Conference paper
  • First Online:
Algorithms and Architectures for Parallel Processing (ICA3PP 2015)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 9531))

  • 1440 Accesses

Abstract

In this paper, we present a simple polynomial time algorithm for a generalized longest common subsequence problem with multiple substring exclusion constraints. The problem was declared to be NP-hard, but we finally found that this is not true. A new polynomial time solution for this problem is presented in this paper. The correctness of the new algorithm is proved. The time complexity of our algorithm is analysed.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Aho, A.V., Corasick, M.J.: Efficient string matching: an aid to bibliographic search. Commun. ACM 18(6), 333ā€“340 (1975)

    ArticleĀ  MathSciNetĀ  MATHĀ  Google ScholarĀ 

  2. Ann, H.Y., Yang, C.B., Peng, Y.H., Liaw, B.C.: Efficient algorithms for the block edit problems. Inf. Comput. 208(3), 221ā€“229 (2010)

    ArticleĀ  MathSciNetĀ  MATHĀ  Google ScholarĀ 

  3. Arslan, A.N., Egecioglu, O.: Algorithms for the constrained longest common subsequence problems. Int. J. Found. Comput. Sci. 16(6), 1099ā€“1109 (2005)

    ArticleĀ  MathSciNetĀ  MATHĀ  Google ScholarĀ 

  4. Chen, Y.C., Chao, K.M.: On the generalized constrained longest common subsequence problems. J. Comb. Optim. 21(3), 383ā€“392 (2011)

    ArticleĀ  MathSciNetĀ  MATHĀ  Google ScholarĀ 

  5. Chin, F.Y.L., Santis, A.D., Ferrara, A.L., Ho, N.L., Kim, S.K.: A simple algorithm for the constrained sequence problems. Inform. Process. Lett. 90(4), 175ā€“179 (2004)

    ArticleĀ  MathSciNetĀ  MATHĀ  Google ScholarĀ 

  6. Deorowicz, S., Obstoj, J.: Constrained longest common subsequence computing algorithms in practice. Comput. Inform. 29(3), 427ā€“445 (2010)

    MathSciNetĀ  MATHĀ  Google ScholarĀ 

  7. Gotthilf, Z., Hermelin, D., Lewenstein, M.: Constrained LCS: hardness and approximation. In: Ferragina, P., Landau, G.M. (eds.) CPM 2008. LNCS, vol. 5029, pp. 255ā€“262. Springer, Heidelberg (2008)

    ChapterĀ  Google ScholarĀ 

  8. Gotthilf, Z., Hermelin, D., Landau, G.M., Lewenstein, M.: Restricted LCS. In: Chavez, E., Lonardi, S. (eds.) SPIRE 2010. LNCS, vol. 6393, pp. 250ā€“257. Springer, Heidelberg (2010)

    ChapterĀ  Google ScholarĀ 

  9. Hirschberg, D.S.: Algorithms for the longest common subsequence problem. J. ACM 24(4), 664ā€“675 (1977)

    ArticleĀ  MathSciNetĀ  MATHĀ  Google ScholarĀ 

  10. Iliopoulos, C.S., Rahman, M.S.: A new efficient algorithm for computing the longest common subsequence. Theor. Comput. Sci. 45(2), 355ā€“371 (2009)

    MathSciNetĀ  MATHĀ  Google ScholarĀ 

  11. Iliopoulos, C.S., Rahman, M.S., Vorcek, M., Vagner, L.: Finite automata based algorithms on subsequences and supersequences of degenerate strings. J. Discret. Algorithm. 8(2), 117ā€“130 (2010)

    ArticleĀ  MathSciNetĀ  MATHĀ  Google ScholarĀ 

  12. Maier, D.: The complexity of some problems on subsequences and supersequences. J. ACM 25, 322ā€“336 (1978)

    ArticleĀ  MathSciNetĀ  MATHĀ  Google ScholarĀ 

  13. Shyu, S.J., Tsai, C.Y.: Finding the longest common subsequence for multiple biological sequences by ant colony optimization. Comput. Oper. Res. 36(1), 73ā€“91 (2009)

    ArticleĀ  MathSciNetĀ  MATHĀ  Google ScholarĀ 

  14. Tsai, Y.T.: The constrained longest common subsequence problem. Inform. Process. Lett. 88(4), 173ā€“176 (2003)

    ArticleĀ  MathSciNetĀ  MATHĀ  Google ScholarĀ 

  15. Tseng, C.T., Yang, C.B., Ann, H.Y.: Efficient algorithms for the longest common subsequence problem with sequential substring constraints. J. Complexity 29, 44ā€“52 (2013)

    ArticleĀ  MathSciNetĀ  MATHĀ  Google ScholarĀ 

  16. Wagner, R., Fischer, M.: The string-to-string correction problem. J. ACM 21(1), 168ā€“173 (1974)

    ArticleĀ  MathSciNetĀ  MATHĀ  Google ScholarĀ 

  17. Wang, L., Wang, X., Wu, Y., Zhu, D.: A dynamic programming solution to a generalized LCS problem. Inform. Process. Lett. 113(1), 723ā€“728 (2013)

    ArticleĀ  MathSciNetĀ  MATHĀ  Google ScholarĀ 

Download references

Acknowledgments

This work was supported by the Science and Technology Foundation of Quanzhou under Grant No.2013Z38, Fujian Provincial Key Laboratory of Data-Intensive Computing and Fujian University Laboratory of Intelligent Computing and Information Processing.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Xiaodong Wang .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

Ā© 2015 Springer International Publishing Switzerland

About this paper

Cite this paper

Zhu, D., Wu, Y., Wang, X. (2015). An Efficient Algorithm for a Generalized LCSĀ Problem. In: Wang, G., Zomaya, A., Martinez, G., Li, K. (eds) Algorithms and Architectures for Parallel Processing. ICA3PP 2015. Lecture Notes in Computer Science(), vol 9531. Springer, Cham. https://doi.org/10.1007/978-3-319-27140-8_11

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-27140-8_11

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-27139-2

  • Online ISBN: 978-3-319-27140-8

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics