Skip to main content

A Method to Overcome Computer Word Size Limitation in Bit-Parallel Pattern Matching

  • Conference paper
Algorithms and Computation (ISAAC 2008)

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

Included in the following conference series:

Abstract

The performance of the pattern matching algorithms based on bit-parallelism degrades when the input pattern length exceeds the computer word size. Although several divide-and-conquer methods have been proposed to overcome that limitation, the resulting schemes are not that much efficient and hard to implement. This study introduces a new fast bit-parallel pattern matching algorithm that is capable of searching patterns of any length in a common bit-parallel fashion. The proposed bit-parallel length invariant matcher (BLIM) is compared with the Shift-Or and bit-parallel non-deterministic matching (BNDM) algorithms along with the standard Boyer-Moore and Sunday’s quick search, which are known to be the very fast in general. Benchmarks have been conducted on natural language, DNA sequence, and binary alphabet random texts. Besides the length invariant architecture of the algorithm, experimental results indicate that on the average BLIM is 18%, 44%, and 6% faster than BNDM, which is accepted as one of the fastest algorithms of this genre, on natural language, DNA sequence and binary random texts respectively.

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 84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.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

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Aho, A., Corasick, M.: Efficient string matching: An aid to bibliographic search. Communications of the ACM 18, 333–340 (1975)

    Article  MathSciNet  MATH  Google Scholar 

  2. Crochemore, M., Czumaj, A., Gasieniec, L., Jarominek, S., Lecroq, T., Plandowski, W., Rytter, W.: Fast practical multi-pattern matching. Information Processing Letters 71, 107–113 (1993)

    Article  MathSciNet  MATH  Google Scholar 

  3. Crochemore, M., Czumaj, A., Gasieniec, L., Jarominek, S., Lecroq, T., Plandowski, W., Rytter, W.: Speeding up two string matching algorithms. Algorithmica 12, 247–267 (1994)

    Article  MathSciNet  MATH  Google Scholar 

  4. Crochemore, M., Rytter, W.: Text Algorithms. Oxford University Press, Oxford (1994)

    MATH  Google Scholar 

  5. Boyer, R., Moore, J.: A fast string searching algorithm. Communications of the ACM 20, 762–772 (1977)

    Article  MATH  Google Scholar 

  6. Knuth, D., Morris, J., Pratt, V.: Fast pattern matching in strings. SIAM Journal of Computing 6, 323–350 (1977)

    Article  MathSciNet  MATH  Google Scholar 

  7. Sunday, D.: A very fast substring search algorithm. Communications of the ACM 33, 132–142 (1990)

    Article  Google Scholar 

  8. Horspool, N.: Practical fast searching in strings. Software – Practice and Experience 10 (1980)

    Google Scholar 

  9. Baeza-Yates, R., Gonnet, G.: A new approach to text searching. Communications of the ACM 35, 74–82 (1992)

    Article  Google Scholar 

  10. Wu, S., Manber, U.: Fast text searching allowing errors. Communications of the ACM 35, 83–91 (1992)

    Article  Google Scholar 

  11. Wu, S., Manber, U.: Agrep – a fast approximate pattern-matching tool. In: USENIX Winter, Technical Conference, pp. 153–162 (1992)

    Google Scholar 

  12. Navarro, G., Raffinot, M.: Fast and flexible string matching by combining bit-parallelism and suffix automata. ACM Journal of Experimental Algorithms 5, 1–36 (2000)

    Article  MathSciNet  MATH  Google Scholar 

  13. Peltola, H., Tarhio, J.: Alternative algorithms for bit-parallel string matching. In: Nascimento, M.A., de Moura, E.S., Oliveira, A.L. (eds.) SPIRE 2003. LNCS, vol. 2857, pp. 80–94. Springer, Heidelberg (2003)

    Chapter  Google Scholar 

  14. Charras, C., Lecroq, T.: Handbook of exact string matching algorithms. King’s Collage Publications (2004)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2008 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Külekci, M.O. (2008). A Method to Overcome Computer Word Size Limitation in Bit-Parallel Pattern Matching. In: Hong, SH., Nagamochi, H., Fukunaga, T. (eds) Algorithms and Computation. ISAAC 2008. Lecture Notes in Computer Science, vol 5369. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-92182-0_45

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-92182-0_45

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-92181-3

  • Online ISBN: 978-3-540-92182-0

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics