Invention Grant
- Patent Title: Co-prime hashing
-
Application No.: US14956211Application Date: 2015-12-01
-
Publication No.: US10725990B2Publication Date: 2020-07-28
- Inventor: Alex Meyer
- Applicant: Facebook, Inc.
- Applicant Address: US CA Menlo Park
- Assignee: Facebook, Inc.
- Current Assignee: Facebook, Inc.
- Current Assignee Address: US CA Menlo Park
- Agency: FisherBroyles, LLP
- Main IPC: G06F16/22
- IPC: G06F16/22 ; G06F16/901

Abstract:
A hashing system can use a set of multiple numbers that are co-prime to the size of a hash table to select a probe offset when collisions occur. Selecting a probe offset that is co-prime to the hash table size ensures that each hash table slot is available for any insert operation. Utilizing different co-prime numbers for different keys helps avoid clustering of items inserted into the hash table. When a collision occurs, the hashing system can compute a next index to check by selecting a probe offset that is located at a computed index on a list of numbers that are each co-prime to the number of slots in the hash table. The hashing system can compute the index into the list of numbers by applying a hash function to the data item and calculating a modulus of the result with respect to a count of the co-prime numbers list.
Public/Granted literature
- US20170154042A1 CO-PRIME HASHING Public/Granted day:2017-06-01
Information query