首页 | 本学科首页   官方微博 | 高级检索  
     


Shift-or string matching with super-alphabets
Authors:Kimmo Fredriksson
Affiliation:Department of Computer Science, University of Joensuu, P.O. Box 111, 80101 Joensuu, Finland
Abstract:Given a text T1…n] and a pattern P1…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(nm/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.
Keywords:Algorithms  Bit-parallelism  String matching
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号