Real-Time Streaming String-Matching

  • Dany Breslauer
  • Zvi Galil
Part of the Lecture Notes in Computer Science book series (LNCS, volume 6661)


This paper presents a real-time randomized streaming string matching algorithm that uses O(logm) space. The algorithm only makes one-sided small probability false-positive errors, possibly reporting phantom occurrences of the pattern, but never misses an actual occurrence.


Period Length Arithmetic Progression String Match Actual Occurrence Text Location 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    Ergun, F., Jowhari, H., Salgan, M.: Periodicity in Streams (2010) (manuscript)Google Scholar
  2. 2.
    Fine, N.J., Wilf, H.S.: Uniqueness theorems for periodic functions. Proc. Amer. Math. Soc. 16, 109–114 (1965)MathSciNetCrossRefzbMATHGoogle Scholar
  3. 3.
    Galil, Z.: String Matching in Real Time. J. Assoc. Comput. Mach. 28(1), 134–149 (1981)MathSciNetCrossRefzbMATHGoogle Scholar
  4. 4.
    Galil, Z.: Optimal parallel algorithms for string matching. Inform. and Control 67, 144–157 (1985)MathSciNetCrossRefzbMATHGoogle Scholar
  5. 5.
    Galil, Z., Seiferas, J.: Time-space-optimal string matching. J. Comput. System Sci. 26, 280–294 (1983)MathSciNetCrossRefzbMATHGoogle Scholar
  6. 6.
    Karp, R.M., Rabin, M.O.: Efficient randomized pattern matching algorithms. IBM J. Res. Develop. 31(2), 249–260 (1987)MathSciNetCrossRefzbMATHGoogle Scholar
  7. 7.
    Knuth, D.E., Morris, J.H., Pratt, V.R.: Fast pattern matching in strings. SIAM J. Comput. 6, 322–350 (1977)MathSciNetCrossRefzbMATHGoogle Scholar
  8. 8.
    Porat, B., Porat, E.: Exact And Approxiamate Pattern Matching In The Streaming Model. In: Proc. 50th IEEE Symp. on Foundations of Computer Science, pp. 315–323 (2009)Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2011

Authors and Affiliations

  • Dany Breslauer
    • 1
  • Zvi Galil
    • 2
  1. 1.Caesarea Rothchild InstituteUniversity of HaifaHaifaIsrael
  2. 2.College of ComputingGeorgia Institute of TechnologyAtlantaUSA

Personalised recommendations