# US 2025/0209052 A1 · Packing Mechanism for Mitigating Collisions and Improving Efficiency for a Hash Function

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0209052 A1
- Document ID: US20250209052A1
- Status: Published application
- Kind: A1
- Application number: 18/390,116
- Filed: 2023-12-20
- Published: 2025-06-26
- Earliest claimed: 2023-12-20
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Sachin Kadu
- Web page: https://patentgrep.com/patent/US20250209052A1

## CPC

- G06F 16/2255: {Hash tables}
- H04L 45/7453: using hashing
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## 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.

## Claims

### Claim 1

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.

### Claim 2 (depends on 1)

The system of claim 1, wherein the one or more processors are further configured so that the first lookup table associates a particular hash value to a first hash table location and the second lookup table associates the particular hash value to a second hash table location.

### Claim 3 (depends on 1)

The system of claim 1, wherein the one or more processors are further configured to:
identify one or more data entries to be added to the hash table;
determine whether at least one of the first lookup table and the second lookup table are to be updated in connection with the one or more data entries, and if so update the index of hash values for least one of the first lookup table and the second lookup table with identifiers of one or more locations within the hash table corresponding to the one or more data entries.

### Claim 4 (depends on 3)

The system of claim 3, wherein determining whether at least one of the first lookup table and the second lookup table are to be updated comprises determining whether one of the one or more data entries corresponds to a particular hash value that has been assigned to a hash table location that has been previously filled.

### Claim 5 (depends on 1)

The system of claim 1, wherein the first lookup table associates the plurality of hash values with locations within a first hash table and the second lookup table associates the plurality of hash values with locations within a second hash table.

### Claim 6 (depends on 5)

The system of claim 5, wherein the one or more processors are further configured to:
identify a particular hash value that has been associated with a particular location within the first hash table; and
determine if the particular location within the first hash table is filled.

### Claim 7 (depends on 6)

The system of claim 6, wherein the one or more processors are further configured to add a new data entry corresponding to the particular hash value to a particular location within the second hash table, if the particular location within the first hash table is filled.

### Claim 8 (depends on 7)

The system of claim 7, wherein adding the new data entry comprises updating the second lookup table so as to associate the particular location within the second hash table with the particular hash value.

### Claim 9 (depends on 1)

The system of claim 1, wherein the first lookup table and the second lookup table each associate the plurality of hash values with locations within a shared hash table, and wherein the one or more processors are configured to allow a particular hash value to be assigned by the first lookup table to a first location within the shared hash table and the particular hash value to be assigned by the second lookup table to a second location within the shared hash table.

### Claim 10 (depends on 1)

The system of claim 1, wherein the hash table comprises one or more hash tables that are stored remotely from the first lookup table and second lookup table, and wherein the one or more processors are further configured to be able to access the first lookup table and the second lookup table and determine, without accessing the one or more hash tables, if no data entries have been associated with a particular hash value.

### Claim 11

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.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
identifying, by the one or more processors, one or more data entries to be added to the hash table;
determining, by the one or more processors, whether at least one of the first lookup table and the second lookup table are to be updated in connection with the one or more data entries; and
if so, updating, by the one or more processors, the index of hash values for least one of the first lookup table and the second lookup table with identifiers of one or more locations within the hash table corresponding to the one or more data entries.

### Claim 13 (depends on 12)

The method of claim 12, wherein determining whether at least one of the first lookup table and the second lookup table are to be updated comprises determining whether one of the one or more data entries corresponds to a particular hash value that has been assigned to a hash table location that has been previously filled.

### Claim 14 (depends on 11)

The method of claim 11, the first lookup table associates a particular hash value to a first hash table location and the second lookup table associates the particular hash value to a second hash table location.

### Claim 15 (depends on 11)

The method of claim 11, wherein the first lookup table associates the plurality of hash values with locations within a first hash table and the second lookup table associates the plurality of hash values with locations within a second hash table.

### Claim 16 (depends on 15)

The method of claim 15, further comprising:
identifying, by the one or more processors, a particular hash value that has been associated with a particular location within the first hash table; and
determining, by the one or more processors, if the particular location within the first hash table is filled.

### Claim 17 (depends on 16)

The method of claim 16, further comprising adding, by the one or more processors, a new data entry corresponding to the particular hash value to a particular location within the second hash table, if the particular location within the first hash table is filled.

### Claim 18 (depends on 17)

The method of claim 17, wherein adding the new data entry comprises updating the second lookup table so as to associate the particular location within the second hash table with the particular hash value.

### Claim 19 (depends on 11)

The method of claim 11, wherein the first lookup table and the second lookup table each associate the plurality of hash values with locations within a shared hash table, and wherein the one or more processors are configured to allow a particular hash value to be assigned by the first lookup table to a first location within the shared hash table and the particular hash value to be assigned by the second lookup table to a second location within the shared hash table.

### Claim 20 (depends on 11)

The method of claim 11, wherein the hash table comprises one or more hash tables that are stored remotely from the first lookup table and second lookup table, and further comprising determining, without accessing the one or more hash tables, if no data entries have been associated with a particular hash value.
