×

Time-outs with time-reversed linear probing

  • US 8,306,958 B2
  • Filed: 09/14/2009
  • Issued: 11/06/2012
  • Est. Priority Date: 09/14/2009
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method for implementing timeouts in a hash table, the method comprising computer-implemented operations for:

  • receiving a current key at a current arrival time at a computer;

    determining an index in an array corresponding to the current key using a hash function;

    retrieving a previous key and a previous arrival time stored in the array at the index;

    transforming the array by replacing the previous key and the previous arrival time with the current key and the current arrival time in the array at the index; and

    inserting the previous key and the previous arrival time into a nearest eligible sequential index in the array, the inserting comprisingincrementing the index to a first incremented index, wherein the array at the first incremented index contains a third key and a third arrival time,determining whether the previous arrival time is more recent than the third arrival time,in response to determining that the previous arrival time is more recent than the third arrival time, retrieving the third key and the third arrival time,upon retrieving the third key and the third arrival time, transforming the array by replacing the third key and the third arrival time with the previous key and previous arrival time in the array at the first incremented index, andinserting the third key and the third arrival time into a nearest eligible sequential index in the array.

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