METHOD AND DEVICE FOR CREATING PATTERN MATCHING STATE MACHINE
First Claim
1. A method for creating a pattern matching state machine, comprising:
- obtaining a predefined keyword set;
generating a Goto function according to the keyword set;
constructing a Failure function according to the generated Goto function, and setting that an acceptable input set of a Failure state of each state is not a subset of an acceptable input set of the state, wherein the acceptable input set of the state indicates that when any symbol within the symbol set is input in the state, the Goto function of the state does not fail; and
generating an Output function according to the Goto function and the Failure function.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and a device for creating a pattern matching state machine are provided. The method includes: obtaining a predefined keyword set; generating a Goto function according to the keyword set; constructing a Failure function according to the generated Goto function, and setting that an acceptable input set of the Failure state of each state is not a subset of an acceptable input set of the state, where the acceptable input set of the state indicates that when any symbol within the symbol set is input in the state, the Goto function of the state does not fail; and generating an Output function according to the Goto function and the Failure function.
20 Citations
14 Claims
-
1. A method for creating a pattern matching state machine, comprising:
-
obtaining a predefined keyword set; generating a Goto function according to the keyword set; constructing a Failure function according to the generated Goto function, and setting that an acceptable input set of a Failure state of each state is not a subset of an acceptable input set of the state, wherein the acceptable input set of the state indicates that when any symbol within the symbol set is input in the state, the Goto function of the state does not fail; and generating an Output function according to the Goto function and the Failure function. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A device of creating a pattern matching state machine, comprising:
-
an obtaining unit, adapted to obtain a predefined keyword set; a Goto function generating unit, adapted to generate a Goto function according to the keyword set; a Failure function generating unit, adapted to construct a Failure function according to the generated Goto function, and set that an acceptable input set of a Failure state of each state is not a subset of an acceptable input set of the state, wherein the acceptable input set of the state indicates that when any symbol within the symbol set is input in the state, the Goto function of the state does not fail; and an Output function generating unit, adapted to generate an Output function according to the Goto function and the Failure function. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
Specification