@inproceedings{dd77bf21e5b84d85b325fc1f9e629382,
title = "Optimal packed string matching",
abstract = "In the packed string matching problem, each machine word accommodates α characters, thus an n-character text occupies n/α memory words. We extend the Crochemore-Perrin constant-space O(n)-time string matching algorithm to run in optimal O(n/α) time and even in real-time, achieving a factor α 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 AC0instructions (i.e., no multiplication) plus two specialized AC0packed 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.",
keywords = "Bit parallelism, Real time, Space efficiency, String matching",
author = "Oren Ben-Kiki and Philip Bille and Dany Breslauer and Leszek G{\c a}sieniec and Roberto Grossi and Oren Weimann",
year = "2011",
doi = "https://doi.org/10.4230/LIPIcs.FSTTCS.2011.423",
language = "American English",
isbn = "9783939897347",
series = "Leibniz International Proceedings in Informatics, LIPIcs",
pages = "423--432",
booktitle = "31st International Conference on Foundations of Software Technology and Theoretical Computer Science, FSTTCS 2011",
note = "31st International Conference on Foundations of Software Technology and Theoretical Computer Science, FSTTCS 2011 ; Conference date: 12-12-2011 Through 14-12-2011",
}