模式识别与人工智能
Friday, Apr. 4, 2025 Home      About Journal      Editorial Board      Instructions      Ethics Statement      Contact Us                   中文
  2006, Vol. 19 Issue (1): 47-51    DOI:
Papers and Reports Current Issue| Next Issue| Archive| Adv Search |
An Improved MultiPattern String Matching Algorithm
DAI LiuLing1,2, HUANG HeYan 2, CHEN ZhaoXiong2
1.Software Institute, Beijing Institute of Technology, Beijing 100081
2.Language Information Engineering Center, Chinese Academy of Sciences, Beijing 100083

Download: PDF (439 KB)   HTML (1 KB) 
Export: BibTeX | EndNote (RIS)      
Abstract  A new algorithm for matching multiple strings at the same time is suggested. The new algorithm is based on the ideas of QS and SunWu algorithm, named as QMS (Quick Multipattern Searching) algorithm in this paper. QMS uses hashing and PREFIX table to decrease the number of comparisons. During the computation of the shift distance, the character closely after the current window is considered. Because the shift distance is computed with more accurate technique, larger average shift distance is acquired. More characters can be skipped when the text is scanned, so the algorithm becomes very efficient. Tests on an actual corpus show that QMS algorithm is much more efficient than SunWu algorithm under common circumstances.
Key wordsMultiPattern String Matching      BoyerMoore Algorithm      Quick Search Algorithm      SunWu Algorithm     
Received: 23 April 2004     
ZTFLH: TP18  
Service
E-mail this article
Add to my bookshelf
Add to citation manager
E-mail Alert
RSS
Articles by authors
DAI LiuLing
HUANG HeYan
CHEN ZhaoXiong
Cite this article:   
DAI LiuLing,HUANG HeYan,CHEN ZhaoXiong. An Improved MultiPattern String Matching Algorithm[J]. , 2006, 19(1): 47-51.
URL:  
http://manu46.magtech.com.cn/Jweb_prai/EN/      OR     http://manu46.magtech.com.cn/Jweb_prai/EN/Y2006/V19/I1/47
Copyright © 2010 Editorial Office of Pattern Recognition and Artificial Intelligence
Address: No.350 Shushanhu Road, Hefei, Anhui Province, P.R. China Tel: 0551-65591176 Fax:0551-65591176 Email: bjb@iim.ac.cn
Supported by Beijing Magtech  Email:support@magtech.com.cn