摘要:
The present invention discloses a regex matching method and system, and relates to the field of computer technologies. The method includes: sorting multiple regexes into several regex groups, where all regexes in one regex group include a common string, which is known as a generic string; compiling each regex group into a DFA, and setting up a correlation between the generic string of each regex group and the DFA; matching to-be-matched data streams with the generic string respectively, and using the matched generic string as a matched string; obtaining a DFA corresponding to the matched string; and performing regex matching for the to-be-matched data streams according to the DFA, and outputting a matching result. The embodiments of the present invention shorten the data loading process, decrease the time consumed by data loading, and improve the matching performance.
摘要:
The present invention discloses a regex matching method and system, and relates to the field of computer technologies. The method includes: sorting multiple regexes into several regex groups, where all regexes in one regex group include a common string, which is known as a generic string; compiling each regex group into a DFA, and setting up a correlation between the generic string of each regex group and the DFA; matching to-be-matched data streams with the generic string respectively, and using the matched generic string as a matched string; obtaining a DFA corresponding to the matched string; and performing regex matching for the to-be-matched data streams according to the DFA, and outputting a matching result. The embodiments of the present invention shorten the data loading process, decrease the time consumed by data loading, and improve the matching performance.
摘要:
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.
摘要:
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.
摘要:
A fiber-coax unit (FCU) is coupled to an optical line terminal (OLT) and a plurality of coax network units (CNUs). The FCU receives a multicast frame from the OLT. The multicast frame includes a first multicast logical link identifier (LLID) dedicated for multicast traffic directed to CNUs. The FCU replaces the first multicast LLID in the multicast frame with a second multicast LLID corresponding to one or more multicast groups that include at least one CNU of the plurality of CNUs. The FCU transmits the multicast frame to the plurality of CNUs.
摘要:
A powder particle shaping device includes a closed cavity capable of changing between multiple shapes as an external pressure changes, and the closed cavity compresses and moves powder particles with which the closed cavity is filled full while the shape changes. A powder particle shaping method is further provided, which includes a. filling a cavity full with powder particles to be shaped; and b. applying a varying external pressure to make the cavity change repeatedly between multiple shapes, thereby making the powder particles under compression move and be subject to friction, where the cavity is kept in a closed state during an effective processing process. The shaping device and method have highly controllable shaping processing intensity of powder particles and stable processing strength, and thus are applicable to shaping and pulverization of various powder particles, and also applicable to pulverization and further shaping processing of dispersed agglomerates.
摘要:
A powder particle shaping device is provided, which includes a closed cavity capable of changing between multiple shapes as an external pressure changes, and the closed cavity compresses and moves powder particles with which the closed cavity is filled full while the shape changes. A powder particle shaping method is further provided, which includes a. filling a closed cavity full with powder particles to be shaped; and b. applying a varying external pressure to the closed cavity, such that the closed cavity changes repeatedly between multiple shapes, thereby making the powder particles under compression move and be subject to friction. The shaping device and method according to present invention have highly controllable shaping processing intensity of powder particles and stable processing strength, and thus are applicable to shaping and pulverization of various powder particles, and also applicable to pulverization and further shaping processing of dispersed agglomerates.