• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2008, Vol. 30 ›› Issue (8): 69-71.

• 论文 • 上一篇    下一篇

一种用于多模式匹配的高效二叉检索树

李东[1] 古宁[1] 林育蓓[2]   

  • 出版日期:2008-08-01 发布日期:2010-05-19

  • Online:2008-08-01 Published:2010-05-19

摘要:

网络环境的文本检索往往是同时面向大量用户的,传统的单模式匹配算法无法应付数量巨大的关键字,而一般的基于Trie树的多模式匹配算法又存在空间复杂度不良、结构复  杂等问题。针对这种检索大量关键字的应用,本文通过修改Trie树节点的结构得到一种更为简单的多模式匹配算法。该算法既有多模式匹配的性能,又具有高效的空间利用率,并且非常容易实现。

关键词: 多模式匹配 二叉检索树 Trie树 比较位

Abstract:

Literal information searching on the Internet is often supplied to a large amount of users at the same time. Traditional single-pattern matching algorithms are not capable of dealing with a large amount of pattern strings, while common Trie-based multi-pattern matching algorithms suffer from poor spac  e complexity and complicated structures. Aiming at this kind of applications, a simpler and more space-efficient multi-pattern matching algorithm is pro posed in this paper, through some modifications to the node structure of ordinary Trie trees. This algorithm possesses the good performance of multi-pat tern matching, and is more space-efficient and much easier to implement.

Key words: multi-pattern matching, binary searching tree, trie tree, compare bit