期刊文献+

单模式精确匹配算法研究 被引量:1

Study of single pattern exact matching algorithms
下载PDF
导出
摘要 模式匹配算法在各领域中有重大的应用价值。文章详细分析了BF、KMP、BM、Tuned BM和QS 5种单模式精确匹配算法;通过上机实验,采用不同的模式串长度对这些算法的匹配次数、比较过的字符个数和所需时间3方面进行测试;结果表明,BM、Tuned BM、QS算法在实际运行性能相对较好;而Tuned BM算法可有效地减少字符比较次数,是其中时间复杂最优的算法。 Presented in the paper is a detailed analysis of five single pattern exact matching algorithms including the Brute-Force(BF) algorithm,the Knuth-Morris-Pratt(KMP) algorithm,the Boyer-Moore (BM) algorithm,the Tuned BM algorithm and the Quick Search(QS) algorithm. Some experiments are made in which the attempted times, character comparisons and needed time of these algorithms are tested through using different length of pattern strings. It is concluded that the performance of the BM, Tuned BM and QS algorithms is satisfactory in actual operation. The Tuned BM algorithm is the quickest one among these algorithms because it can reduce character comparisons effectively and shorten the time.
作者 巫喜红 凌捷
出处 《合肥工业大学学报(自然科学版)》 CAS CSCD 北大核心 2007年第7期840-843,共4页 Journal of Hefei University of Technology:Natural Science
基金 广东省科技攻关资助项目(2005B10101067) 广州市科技攻关资助项目(2005Z3D0291)
关键词 单模式精确匹配 BM算法 Tuned BM算法 QS算法 single pattern exact matching BM algorithm Tuned BM algorithm QS algorithm
  • 相关文献

参考文献3

二级参考文献14

  • 1[1]Boyer RS, Moore JS. A fast string searching algorithm[J]. Communications of the ACM,1977,20:762-772.
  • 2[2]Knuth DE, Morris JH, Pratt VR. Fast pattern matching in strings[J], SIAM Journal on Computer, 1977, 6(2):323-350.
  • 3[3]Aho AV, Corasick MJ. Efficient string matching: an aid to bibliographic search[J]. Communications of the ACM, 1975,18(6):333-340.
  • 4[4]Walter BC. A string matching algorithm fast on the average[A]. Proc 6th International Colloquium on Automata Languages, and Programming[C],1979.118-132.
  • 5[5]Navarro G, Yatesa RB. New and faster filters for multiple approximate string matching[J]. Random Structures and Algorithms,2002,20(1):23-49.
  • 6[6]Wu S, Manber U. A fast algorithm for multi-pattern searching[R]. Technical Report TR 94-17, University of Arizona, May 1994.
  • 7[7]Kim S, Kim Y, A fast multiple string-pattern matching algorithm[A]. Proc 17th AoM/IaoM Conference on Computer Science[C],1999.
  • 8[8]Charras C, Lecroq T. Handbook of Exact String-Matching algorithms[EB/OL]. http://www-igm.univ-mlv.fr/~lecroq/string/, 2003-02-20.
  • 9Hochberg J Jackson K, Stallings C,et al.NADIR:An Automated System for Detecting Network Intrusion and Misuse.Computers and Security, 1993,12(3):235-248.
  • 10Knuth DE , Morris JH, Pratt VR. Fast Pattern Matching in Strings[J].SIAM Journal on Computer, 1977,6(2) :323-350.

共引文献53

同被引文献6

引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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