๐”– Bobbio Scriptorium
โœฆ   LIBER   โœฆ

Shift-or string matching with super-alphabets

โœ Scribed by Kimmo Fredriksson


Book ID
104136984
Publisher
Elsevier Science
Year
2003
Tongue
English
Weight
75 KB
Volume
87
Category
Article
ISSN
0020-0190

No coin nor oath required. For personal study only.

โœฆ Synopsis


Given a text T [1 . . . n] and a pattern P [1 . . . m] over some alphabet ฮฃ of size ฯƒ , we want to find all the (exact) occurrences of P in T . The well-known shift-or algorithm solves this problem in time O(n m/w ), where w is the number of bits in machine word, using bit-parallelism. We show how to extend the bit-parallelism in another direction, using super-alphabets. This gives a speed-up by a factor s, where s is the number of characters processed simultaneously. The algorithm is implemented, and we show that it works well in practice too. The result is the fastest known algorithm for exact string matching for short patterns and small alphabets.


๐Ÿ“œ SIMILAR VOLUMES


String matching with alphabet sampling
โœ Francisco Claude; Gonzalo Navarro; Hannu Peltola; Leena Salmela; Jorma Tarhio ๐Ÿ“‚ Article ๐Ÿ“… 2012 ๐Ÿ› Elsevier Science ๐ŸŒ English โš– 771 KB