DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · 2011 · 18 citations · 16 references
EngineeringComputer EngineeringComputer ScienceAlgorithmsComputer ArchitectureParallel ComputingHardware AccelerationInstruction Set ArchitectureLookup TablesMemory Hierarchy OptimizationMemory Subsystem DesignString AlgorithmsComplexity Of String AlgorithmsEmulationInteger MultiplicationLookup Table ArchitecturesLookup Table DesignMultiplication InstructionProcessor Emulation
In the packed string matching problem, each machine word accomodates alpha characters, thus an n-character text occupies n/alpha memory words. We extend the Crochemore-Perrin constant-space O(n)-time string matching algorithm to run in optimal O(n/alpha) time and even in real-time, achieving a factor alpha speedup over traditional algorithms that examine each character individually. Our solution can be efficiently implemented, unlike prior theoretical packed string matching work. We adapt the standard RAM model and only use its AC0 instructions (i.e. no multiplication) plus two specialized AC0 packed string instructions. The main string-matching instruction is available in commodity processors (i.e. Intel's SSE4.2 and AVX Advanced String Operations); the other maximal-suffix instruction is only required during pattern preprocessing. In the absence of these two specialized instructions, we propose theoretically-efficient emulation using integer multiplication (not AC0) and table lookup.
16
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
STRING-MATCHING AND OTHER PRODUCTS
Manuela Fischer, Mike Paterson · DSpace@MIT (Massachusetts Institute of Technology) · 1974 · 398 citations · Full text
Factorizing words over an ordered alphabet
Jean Pierre Duval · Journal of Algorithms · 1983 · 236 citations