Method and apparatus for creating pattern matching state machine and identifying pattern
Abstract
The present invention discloses a method and an apparatus for creating a pattern matching state machine and identifying a pattern, and relates to pattern matching technologies. The method includes: obtaining a sub-keyword field after division; generating a state transition (goto) function according to the sub-keyword field; generating a failure function of each state node according to the goto function; generating a next-hop goto function δ of each state node according to the goto function and the failure function; in the process of converting the failure chain, the entry with a failure transition to the initial state is not generated. Therefore, the storage content does not increase massively, the storage structure of the AC algorithm is optimized, and the processing speed of the AC algorithm is improved.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 4.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method, which is implemented by a hardware processer, for creating a pattern matching state machine, the method comprising: dividing a keyword in a predefined keyword set according to a preset rule, and obtaining a sub-keyword field as a result of the division; generating a state transition (goto) function according to the sub-keyword field, and generating a failure function of each state node according to the goto function; and generating a next-hop goto function a δ of each state node according to the goto function and the failure function; wherein generating the next-hop goto function δ o
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (4 of 4 total)
References Cited — Backward Prior Art (16)
Non-Patent Literature (5)
- Alfred V. Aho, et al., "Efficient String Matching: An Aid to Bibliographic Search, Communications of the ACM", Jun. 1975, vol. 18, No. 6, p. 333-340.
- Fang Xianjia, et al., "Research on Optimizing Multi-Pattern Matching Algorithm", 2007, China Academic Journal Electronic Publishing House, p. 211-213.
- International Search Report dated Jul. 9, 2009 in connection with International Patent Application No. PCT/CN2009/071082.
- Sarang Dharmapurikar, et al., "Fast and Scalable Pattern Matching for Content Filtering", ANCS'05, Oct. 28, 2005, p. 183-192.
- Wei-Nan Li, et al., "Multi-Pattern Matching Algorithms and Hardware Based Implementation", Journal of Software, vol. 17, No. 12, Dec. 2006, p. 2403-2415.