模式识别与人工智能
Sunday, Apr. 13, 2025 Home      About Journal      Editorial Board      Instructions      Ethics Statement      Contact Us                   中文
  2010, Vol. 23 Issue (1): 103-106    DOI:
Orignal Article Current Issue| Next Issue| Archive| Adv Search |
An Improved Character String Pattern Matching Algorithm
HU Jin-Zhu,XIONG Chun-Xiu,SHU Jiang-Bo,ZHOU Xin,CHENG Wen-Tao
Department of Computer Science,Huazhong Normal University,Wuhan 430079

Download: PDF (279 KB)   HTML (1 KB) 
Export: BibTeX | EndNote (RIS)      
Abstract  By analyzing a variety of improved pattern matching algorithms, an pattern matching algorithm is improved. Firstly, the text string is preprocessed. Two kinds of characters are made up. One does not exist in the pattern string, and the other is the characters that appear the least. Secondly, through matching both the first character and the last character of the pattern string, the number of the marked characters which appear the least is reduced. If the matching fails, the pattern string directly slides to the next marked character which appears the least. Finally, experimental results show that the frequencies of the movement and the comparison decreased greatly by the improved algorithm, and the additional cost of space is less than the length of the pattern string. Moreover, the efficiency of the pattern matching is improved.
Key wordsPattern Matching      Text String      Pattern String      Preprocessing     
Received: 06 April 2009     
ZTFLH: TP391  
Service
E-mail this article
Add to my bookshelf
Add to citation manager
E-mail Alert
RSS
Articles by authors
HU Jin-Zhu
XIONG Chun-Xiu
SHU Jiang-Bo
ZHOU Xin
CHENG Wen-Tao
Cite this article:   
HU Jin-Zhu,XIONG Chun-Xiu,SHU Jiang-Bo等. An Improved Character String Pattern Matching Algorithm[J]. , 2010, 23(1): 103-106.
URL:  
http://manu46.magtech.com.cn/Jweb_prai/EN/      OR     http://manu46.magtech.com.cn/Jweb_prai/EN/Y2010/V23/I1/103
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