ACM Transactions on Algorithms · 2013 · 40 citations · 17 references
ComputingComputer ScienceAlgorithmsNatural Language ProcessingOptimizationCoding TheoryData CompressionPattern RecognitionString AlgorithmsString TheoryCompressionString CompressionString Indexing
We consider the following variant of the classical pattern matching problem: given an uncompressed pattern p [1.. m ] and a compressed representation of a string t [1.. N ], does p occur in t ? When t is compressed using the LZW method, we are able to detect the occurrence in optimal linear time, thus answering a question of Amir et al. [1994]. Previous results implied solutions with complexities O ( n log m + m ) Amir et al. [1994], O ( n + m 1+ε ) [Kosaraju 1995], or (randomized) O ( n log Nn + m ) [Farach and Thorup 1995], where n is the size of the compressed representation of t . Our algorithm is conceptually simple and fully deterministic.
17
Fast Pattern Matching in Strings
Donald E. Knuth, James H. Morris, Vaughan Pratt · SIAM Journal on Computing · 1977 · 2.9K citations
A fast string searching algorithm
Robert S. Boyer, J Strother Moore · Communications of the ACM · 1977 · 2.3K citations · Full text
A Technique for High-Performance Data Compression
Linear pattern matching algorithms
Peter Weiner · 1973 · 1.8K citations