A method for representing a search tree embodying a plurality of
signatures to be searched for in an input string of characters constructs
a failure tree in which the states are re-organized in levels according
to the number of failure transitions between each state and the root node
of the search tree.