Journal of Northeastern University ›› 2013, Vol. 34 ›› Issue (9): 1240-1243.DOI: -

• Information & Control • Previous Articles     Next Articles

A Constructing Method of Regular Expression’s Smaller εNFA

JING Maohua1,2, YANG Yixian2,3, YU Changyong1, XIN Yang3   

  1. 1. School of Computer and Communication Engineering, Northeastern University at Qinhuangdao, Qinhuangdao 066004, China; 2. School of Information Science & Engineering, Northeastern University, Shenyang 110819, China; 3. Information Security Center, Beijing University of Posts and Telecommunications, Beijing 100876,China.
  • Received:2013-01-18 Revised:2013-01-18 Online:2013-09-15 Published:2013-04-22
  • Contact: JING Maohua
  • About author:-
  • Supported by:
    -

Abstract: Regular expression matching technology based on finite automaton(FA)has been widely used in the network and information field. A new method was proposed to construct the smaller nondeterministic FA(NFA) of regular expressions, namely, grouping regular expression based on closure(GREC). The GREC method was constructed based on the principle that all kinds of homomorphism computing of regular expression were closure and the hierarchy and recursiveness of closure operation were in regular set. The regular expression was cut into pieces, and then the NFA was constructed for each slice. Finally the stack to the restructuring of the NFA of each slice was used to obtain the final NFA. It can be concluded that NFA can be quickly constructed by the proposed GREC method, which has higher space efficiency compared with traditional Thompson structured approach when the regular expression is too complex in hierarchical structure or contains too many closure operations.

Key words: regular expression, finite automaton, closure, homomorphism computing, construction algorithm

CLC Number: