摘要
提出了2种采用位并行技术的算法:ISA算法和IBNDM算法。使用机器字来记录各种参数,通过位运算更新各机器字的取值,模拟非确定自动机(NFA)的状态转换过程,反映各种特殊字符对NFA状态转换的影响,实现特殊字符串的快速匹配。在模式串长度不超过机器字长(通常为32或64)时,2种算法都比正则表达式具有更优越的性能。
Two efficient approaches were proposed based on bit-parallelism technique. They are ISA algorithm and IBNDM algorithm. Both algorithms are based on machine words encoded parameters. We can pack many values in a single word and update them all in a single operation, via bit-operation simulating slate transitions of a Nondeterministic Finite Automaton (NFA), which will reflect the influences of constructing NFA made by various special characters. Under the circumstances that pattern is not longer than the number of bits in the machine word W (in current architectures W is 32 or 64), both algorithms performed better than regular expression.
出处
《武汉理工大学学报》
CAS
CSCD
北大核心
2009年第6期109-113,共5页
Journal of Wuhan University of Technology
基金
国家863项目(2007AA01Z466)
国家自然科学基金(60821001)
高等学校学科创新引智计划基金(B08004)
关键词
特殊字符串匹配
位并行
非确定自动机
正则表达式
special string matching
bit-parallelism
nondeterministic finite automaton (NFA)
regular expression