×

String searcher, and compressor using same

  • US 5,051,745 A
  • Filed: 08/21/1990
  • Issued: 09/24/1991
  • Est. Priority Date: 08/21/1990
  • Status: Expired due to Term
First Claim
Patent Images

1. A method for searching a vector of symbols for a predetermined target string, comprising:

  • generating a pointer array having one pointer for each of the symbols in the vector;

    calculating, by means of a hashing function, the hashing value of each of the symbols, and arranging the pointer array in order of hashing value of the respective symbol, the hashing function being chosen so that there are fewer hashing values than there are pointers in the pointer array;

    generating an index of the pointers in the pointer array, that index having only as many entries as there are possible hashing values, and therefore substantially fewer entries than the pointer array;

    applying the hashing function to the target string, to generate a target hashing value; and

    if the target hashing value is not defined or is null, sending a response that the target string does not appear in the vector;

    if the target hashing value is defined and not null, using the index to determine those pointers to symbols having hashing values which are equal to the target hashing value, and sequentially comparing the target string to each of the locations in the vector pointed to by each of the corresponding pointers, to determine whether each location contains a match to the target string

View all claims
  • 5 Assignments
Timeline View
Assignment View
    ×
    ×