Multiple string search method
First Claim
1. A data processing system comprising searching means for finding occurrences of a plurality of key strings within a target string, wherein the searching means comprises:
- (a) means for forming a hash value from each of the key strings, and for organizing said plurality of key strings into a plurality of collections of key strings, each of said collections of key strings corresponding to a particular hash value;
(b) means for selecting a plurality of symbol positions in the target string;
(c) means for forming a hash value at each selected symbol position in the target string and for using this hash value to select one of the collections of key strings; and
(d) means for comparing each key string in the selected collection of key strings with the target string.
1 Assignment
0 Petitions
Accused Products
Abstract
A data processing system has a searching mechanism for finding occurrences of a plurality of key strings within a target string. The searching mechanism forms a hash value from each of the key strings, and adds each key string to a collection of key strings having the same hash value. It then selects a plurality of symbol positions in the target string, and forms a hash value at each selected symbol position in the target string. This hash value is used to select one of the collections of key strings. Each key string in the selected collection of key strings is then compared with the target string.
-
Citations
11 Claims
-
1. A data processing system comprising searching means for finding occurrences of a plurality of key strings within a target string, wherein the searching means comprises:
-
(a) means for forming a hash value from each of the key strings, and for organizing said plurality of key strings into a plurality of collections of key strings, each of said collections of key strings corresponding to a particular hash value;
(b) means for selecting a plurality of symbol positions in the target string;
(c) means for forming a hash value at each selected symbol position in the target string and for using this hash value to select one of the collections of key strings; and
(d) means for comparing each key string in the selected collection of key strings with the target string. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A method for finding occurrences of a plurality of key strings within a target string, comprising the steps:
-
(a) forming a hash value from each of the key strings, and organizing said plurality of key strings into a plurality of collections of key strings, each of said collections of key strings corresponding to a particular hash value;
(b) selecting a plurality of symbol positions in the target string;
(c) forming a hash value at each selected symbol position in the target string and using this hash value to select one of the collections of key strings; and
(d) comparing each key string in the selected collection of key strings with the target string. - View Dependent Claims (7, 8, 9, 10)
-
-
11. An information carrier, holding a program for implementing a method for finding occurrences of a plurality of key strings within a target string, the method comprising the steps:
-
(a) forming a hash value from each of the key strings, and organizing said plurality of key strings into a plurality of collections of key strings, each of said collections of key strings corresponding to a particular hash value;
(b) selecting a plurality of symbol positions in the target string;
(c) forming a hash value at each selected symbol position in the target string and using this hash value to select one of the collections of key strings; and
(d) comparing each key string in the selected collection of key strings with the target string.
-
Specification