×

Searching for a path to identify where to move entries among hash tables with storage for multiple entries per bucket during insert operations

  • US 7,827,182 B1
  • Filed: 06/02/2004
  • Issued: 11/02/2010
  • Est. Priority Date: 06/02/2004
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method used in storing values in hash tables for use in hash-based lookup operations, the method comprising:

  • determining a first bucket within a first hash table of a plurality of hash tables based on hashing a particular data item using a first hash function, each of the plurality of hash tables including a plurality of buckets, each of the plurality of buckets sized to store a plurality of data items, the plurality of hash tables including the first hash table and a second hash table;

    determining a second bucket within the second hash table based on hashing the particular data item using a second hash function;

    in response to identifying that the first and second buckets are both full, performing a breadth-first search in the first and second hash tables from the first hash bucket to identify an identified bucket having space to add a data item along a path identified by said breadth-first search to the identified bucket, the breadth-first search including traversing buckets and data items stored within the first and second hash tables based on stored data items in each particular bucket encountered;

    updating the first and second hash tables to move previously stored data items based on the path identified, including moving one of said previously stored data items to the identified bucket; and

    adding the particular data item to the first hash bucket;

    wherein said operation of updating the first and second hash tables is performed after completion of said performing said breadth-first search in the first and second hash tables.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×