Skip to main content

A Dynamic Programming Algorithm for a Generalized LCS Problem with Multiple Subsequence Inclusion Constraints

  • Conference paper
  • First Online:
Internet of Vehicles - Safe and Intelligent Mobility (IOV 2015)

Part of the book series: Lecture Notes in Computer Science ((LNISA,volume 9502))

Included in the following conference series:

Abstract

In this paper, we consider a generalized longest common subsequence problem with multiple subsequence inclusive constraints. For the two input sequences X and Y of lengths n and m, and a set of d constraints \(P=\{P_1,\cdots ,P_d\}\) of length \(l_i\) for each \(P_i\in P\), the problem is to find a common subsequence Z of X and Y including each of constraint string in P as a subsequence and the length of Z is maximized. A simple dynamic programming algorithm to this problem is presented in this paper. The correctness of the new algorithm is demonstrated. The time complexities of the new algorithm is O(nmdt), where \(t=\prod \limits _{1\le i\le d}l_i\).

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. 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 

  2. Apostolico, A., Guerra, C.: The longest common subsequences problem revisited. Algorithmica 2(1), 315–336 (1987)

    Article  MathSciNet  MATH  Google Scholar 

  3. 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 

  4. Crochemore, M., Hancart, C., Lecroq, T.: Algorithms on Strings. Cambridge University Press, Cambridge (2007)

    Book  MATH  Google Scholar 

  5. Wagner, R., Fischer, M.: The string-to-string correction problem. J. ACM 21(1), 168–173 (1974)

    Article  MathSciNet  MATH  Google Scholar 

  6. Ann, H.Y., Yang, C.B., Tseng, C.T., Hor, C.Y.: A fast and simple algorithm for computing the longest common subsequence of run-length encoded strings. Inform. Process. Lett. 108(11), 360–364 (2008)

    Article  MathSciNet  Google Scholar 

  7. Hirschberg, D.S.: Algorithms for the longest common subsequence problem. J. ACM 24(4), 664–675 (1977)

    Article  MathSciNet  MATH  Google Scholar 

  8. Hunt, J.W., Szymanski, T.G.: A fast algorithm for computing longest common subsequences. Commun. ACM 20(5), 350–353 (1977)

    Article  MathSciNet  MATH  Google Scholar 

  9. 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 

  10. Iliopoulos, C.S., Rahman, M.S., Vorcek, M., Vagner, L.: Finite automata based algorithms on subsequences and supersequences of degenerate strings. J. Discrete Algorithm 8(2), 117–130 (2010)

    Article  MATH  Google Scholar 

  11. Maier, D.: The complexity of some problems on subsequences and supersequences. J. ACM 25, 322–336 (1978)

    Article  MathSciNet  MATH  Google Scholar 

  12. Blum, C., Blesa, M.J., Lnez, M.: Beam search for the longest common subsequence problem. Comput. Oper. Res. 36(12), 3178–3186 (2009)

    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. Tang, C.Y., Lu, C.L.: Constrained multiple sequence alignment tool development and its application to RNase family alignment. J. Bioinform. Comput. Biol. 1, 267–287 (2003)

    Article  Google Scholar 

  16. 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 

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

    MathSciNet  Google Scholar 

  18. Iliopoulos, C.S., Rahman, M.S.: New efficient algorithms for the LCS and constrained LCS problems. Inform. Process. Lett. 106(1), 13–18 (2008)

    Article  MathSciNet  MATH  Google Scholar 

  19. Iliopoulos, C.S., Rahman, M.S., Rytter, W.: Algorithms for two versions of LCS problem for indeterminate strings. J. Comb. Math. Comb. Comput. 71, 155–172 (2009)

    MathSciNet  MATH  Google Scholar 

  20. Peng, Y.H., Yang, C.B., Huang, K.S., Tseng, K.T.: An algorithm and applications to sequence alignment with weighted constraints. Int. J. Found. Comput. Sci. 21(1), 51–59 (2010)

    Article  MathSciNet  MATH  Google Scholar 

  21. Deorowicz, S.: Quadratic-time algorithm for a string constrained LCS problem. Inform. Process. Lett. 112(11), 423–426 (2012)

    Article  MathSciNet  MATH  Google Scholar 

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

    Article  MathSciNet  Google Scholar 

  23. Farhana, E., Ferdous, J., Moosa, T., Rahman, M.S.: Finite automata based algorithms for the generalized constrained longest common subsequence problems. In: Chavez, E., Lonardi, S. (eds.) SPIRE 2010. LNCS, vol. 6393, pp. 243–249. Springer, Heidelberg (2010)

    Chapter  Google Scholar 

  24. 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 

  25. 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 

  26. 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 

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 authors

Correspondence to Yingjie Wu or 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). A Dynamic Programming Algorithm for a Generalized LCS Problem with Multiple Subsequence Inclusion Constraints. In: Hsu, CH., Xia, F., Liu, X., Wang, S. (eds) Internet of Vehicles - Safe and Intelligent Mobility. IOV 2015. Lecture Notes in Computer Science(), vol 9502. Springer, Cham. https://doi.org/10.1007/978-3-319-27293-1_38

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-27293-1_38

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-27292-4

  • Online ISBN: 978-3-319-27293-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics