期刊文献+

一种快速的多模式字符串匹配算法 被引量:29

A Fast Algorithm for Matching Multiple Patterns
下载PDF
导出
摘要 以基于有限自动机的多模式匹配算法 (DFSA)为基础 ,结合 Boyer- Moore(BM)和 QuickSearch (QS)快速单模式匹配算法的优点 ,提出了一种快速的多模式字符串匹配算法 .在一般情况下 ,该算法不需要匹配目标文本串中的每个字符 ,能充分利用匹配过程中本次匹配不成功的信息和已经匹配成功的信息 ,跳过尽可能多的字符 .实验表明 ,模式串较短时 ,本算法所需时间为 DFSA算法的 1 /2~ 1 /3 ;模式串较长时 ,其所需时间为 DFSA算法的 1 /3~ 1 A fast algorithm to perform multiple patterns match in a string was described. The proposed match algorithm is based on the concept of deterministic finite state automata (DFSA), combining the advantages of Boyer Moore's algorithm and Quick Search algorithm, the two fast algorithms for single pattern matching. In general, it does not need inspect each character of the string. It skips as many characters as possible by making full use of the succeeded match information and failure information during the matching. The proposed algorithm achieves excellent performance in the cases of both short patterns and long patterns. The actual experiments show that in the case of short patterns the time it takes to search a string is 1/2~1/3 of the time DFSA method takes, and in the case of long patterns the time is only 1/3~1/5 of the time by DFSA method.
出处 《上海交通大学学报》 EI CAS CSCD 北大核心 2002年第4期516-520,共5页 Journal of Shanghai Jiaotong University
基金 国家"8 6 3"计划资助项目 ( 86 3-30 6 -ZD0 3-0 4-1)
关键词 字符串 算法 有限自动机 多模式匹配 信息处理 pattern match finite state automata multiple pattern match
  • 相关文献

同被引文献165

引证文献29

二级引证文献77

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部