Skip to main content

Mining Bit-Parallel LCS-length Algorithms

  • Conference paper
  • First Online:
String Processing and Information Retrieval (SPIRE 2017)

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

Included in the following conference series:

  • 622 Accesses

Abstract

Some of the most efficient algorithms for computing the length of a longest common subsequence (LLCS) between two strings are based on so-called “bit-parallelism”. They achieve \(O(\lceil m/w \rceil n)\) time, where m and n are the string lengths and w is the computer word size. The first such algorithm was presented by Allison and Dix [3] and performs 6 bit-vector operations per step. The number of operations per step has later been improved to 5 by Crochemore et al. [5] and to 4 by Hyyrö [6]. In this short paper we explore whether further improvement is possible. We find that under fairly reasonable assumptions, the LLCS problem requires at least 4 bit-vector operations per step. As a byproduct we also present five new 4-operation bit-parallel LLCS algorithms.

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

Notes

  1. 1.

    The algorithm of Rick, as recommended in [4], was omitted as it was not competitive in our experiments. This was probably due to its high \(O(\sigma m)\) preprocessing cost.

References

  1. Abboud, A., Backurs, A., Williams, V.V.: Tight hardness results for LCS and other sequence similarity measures. In: Proceedings of 56th Annual IEEE Symposium on Foundations of Computer Science, pp. 59–78 (2015)

    Google Scholar 

  2. Aho, A.V., Hirschberg, D.S., Ullman, J.D.: Bounds on the complexity of the longest common subsequence problem. J. ACM 23(1), 1–12 (1976)

    Article  MathSciNet  MATH  Google Scholar 

  3. Allison, L., Dix, T.L.: A bit-string longest common subsequence algorithm. Inf. Process. Lett. 23, 305–310 (1986)

    Article  MathSciNet  Google Scholar 

  4. Bergroth, L., Hakonen, H., Raita, T.: A survey of longest common subsequence algorithms. In: Proceedings of 7th International Symposium on String Processing and Information Retrieval, pp. 39–48 (2000)

    Google Scholar 

  5. Crochemore, M., Iliopoulos, C.S., Pinzon, Y.J., Reid, J.F.: A fast and practical bit-vector algorithm for the longest common subsequence problem. Inf. Process. Lett. 80, 279–285 (2001)

    Article  MathSciNet  MATH  Google Scholar 

  6. Hyyrö, H.: Bit-parallel LCS-length computation revisited. In: Proceedings of 15th Australasian Workshop on Combinatorial Algorithms, pp. 16–27 (2004)

    Google Scholar 

  7. Kuo, S., Cross, G.R.: An improved algorithm to find the length of the longest common subsequence of two strings. ACM SIGIR Forum 23(3–4), 89–99 (1989)

    Article  Google Scholar 

  8. Rick, C.: A new flexible algorithm for the longest common subsequence problem. In: Galil, Z., Ukkonen, E. (eds.) CPM 1995. LNCS, vol. 937, pp. 340–351. Springer, Heidelberg (1995). doi:10.1007/3-540-60044-2_53

    Chapter  Google Scholar 

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

    Article  MathSciNet  MATH  Google Scholar 

  10. Wu, S., Manber, U., Myers, G., Miller, W.: An \(O(NP)\) sequence comparison algorithm. Inf. Process. Lett. 35, 317–323 (1990)

    Article  MathSciNet  MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Heikki Hyyrö .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Springer International Publishing AG

About this paper

Cite this paper

Hyyrö, H. (2017). Mining Bit-Parallel LCS-length Algorithms. In: Fici, G., Sciortino, M., Venturini, R. (eds) String Processing and Information Retrieval. SPIRE 2017. Lecture Notes in Computer Science(), vol 10508. Springer, Cham. https://doi.org/10.1007/978-3-319-67428-5_18

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-67428-5_18

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-67427-8

  • Online ISBN: 978-3-319-67428-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics