###
DOI:
Journal of Software:2008.19(3):674-686

面向中英文混合环境的多模式匹配算法
孙钦东,黄新波,王倩
(西安理工大学 计算机科学与工程学院,陕西 西安 710048; 西安交通大学 电子与信息工程学院,陕西 西安 710049;西安工程大学 电子信息学院,陕西 西安 710048)
Multiple Pattern Matching on Chinese/English Mixed Texts
SUN Qin-Dong,HUANG Xin-Bo,WANG Qian
()
Abstract
Chart / table
Reference
Similar Articles
Article :Browse 3866   Download 4238
Received:August 21, 2006    Revised:August 24, 2007
> 中文摘要: 分析了中英文混合环境下多模式匹配的特点,以及已有多模式匹配算法应用于中英文混合环境时的不足,给出并证明了中英文混合环境下多模式匹配算法的性能定理,提出了一种适合于中英文混合环境的基于线索完全哈希Trie结构的多模式匹配算法.该算法扩展了标准Trie结构,以中英文字符内码为键值构造完全哈希Trie匹配机,并利用模式串之间的关系对Trie匹配机进行线索化.理论分析与实验结果表明,所提出的算法在匹配中无需复杂的哈希运算,不需要回溯匹配指针,在中英文混合环境下能够进行正确、高效的匹配,而且不存在空间膨胀问题,具有较低的空间与时间复杂度,有较大理论与应用价值.
中文关键词: 多模式匹配  中英文混合  哈希  Trie
Abstract:The characteristics of multiple pattern matching in mixed Chinese and English text and the problem of the existing multiple pattern matching algorithms used for processing mixed Chinese and English text are analyzed. A theorem of multiple pattern matching in mixed Chinese and English text is discovered and proved. A novel multiple pattern matching algorithm based on the threaded trie tree is proposed, which expands the standard trie structure, constructs the hash trie matching machine with the codes of Chinese and English characters, and threads the trie tree according to the characteristic of patterns set. The proposed algorithm does not need complex hash operation, and the matching pointer does not need backdate during matching. Theoretic analysis and experimental results demonstrate that the proposed algorithm efficiently solves the space expansion problem, and process mixed Chinese and English text correctly and efficiently with lower time and space complexity.
文章编号:     中图分类号:    文献标志码:
基金项目:Supported by the Key Science-Technology Project of Xi'an of China under Grant No.06JK225(西安市科技攻关项且);the Research Program of the Education Department of Shannxi Province of China under Grant No.06JK225(陕西省教育厅专项科研计划) Supported by the Key Science-Technology Project of Xi'an of China under Grant No.06JK225(西安市科技攻关项且);the Research Program of the Education Department of Shannxi Province of China under Grant No.06JK225(陕西省教育厅专项科研计划)
Foundation items:
Reference text:

孙钦东,黄新波,王 倩.面向中英文混合环境的多模式匹配算法.软件学报,2008,19(3):674-686

SUN Qin-Dong,HUANG Xin-Bo,WANG Qian.Multiple Pattern Matching on Chinese/English Mixed Texts.Journal of Software,2008,19(3):674-686