Packing Mechanism for Mitigating Collisions and Improving Efficiency for a Hash Function
AssigneeGoogle Inc.
InventorSachin Kadu
Life of this patent
Estimating the term…
Abstract
The technology generally relates to systems and methods for generating and maintaining hashed data. Data entries may be applied to a hash function so as to produce a hash value for each data entry, and data entries may have duplicative hash values to other data entries. Lookup tables may be configured to dynamically assign locations within a hash table to particular hash values based on data entries that are received. In addition, the data entries may be added to one or more hash tables so that the data entries are packed efficiently.
Claims20
A system for maintaining hashed data comprising:
- one or more electronic memories that are accessible by one or more processors, wherein the one or more processors are configured to:
- access, within the one or more electronic memories, a plurality of lookup tables, including at least a first lookup table and a second lookup table, wherein each of the plurality of lookup tables contains an index of a plurality of hash values, and wherein each of the plurality of lookup tables are configured to indicate for each hash value whether at least one associated data entry exists and to identify a location within a hash table when at least one associated data entry exists;
- and
- maintain the plurality of lookup tables so as to allow data entries associated with a given hash value to be divided into a first subset of data entries identified by the first lookup table and a second subset of data entries identified by the second lookup table.
A method for maintaining hashed data comprising:
- receiving, by one or more processors, a hash value;
- accessing, by the one or more processors, a first lookup table and a second lookup table to determine whether one or more existing data entries are associated with the hash value, wherein each of the first lookup table and the second lookup tables contain an index of a plurality of hash values, and wherein each of the plurality of lookup tables are configured to indicate for each hash value whether at least one associated data entry exists and to identify a location within a hash table when at least one associated data entry exists, and wherein the plurality of lookup tables are configured so as to allow a set of data entries associated with a given hash value to be divided into a first subset of data entries identified by the first lookup table and a second subset of data entries identified by the second lookup table;
- and
- if one or more associated data entries exist, identify one or more hash table locations for the one or more associated data entries based on the location information within at least one of the first lookup table and the second lookup table.
Dependencies are inferred from the claim text.