|
Algorithm 1 Add to a slot |
|
Require: a hash table with N slots, ; each slot contains three fields: , , ; an array with k random numbers, ; the length of a bucket, ; the threshold, T; |
| 1: procedure ADD-A-SLOT(, ) |
| 2:
|
| 3:
|
| 4: for to k do
|
| 5:
|
| 6:
|
| 7:
|
| 8:
|
| 9: if and then
|
| 10:
|
| 11:
|
| 12: else if and then
|
| 13:
|
| 14: if then
|
| 15:
|
| 16:
|
| 17: end if
|
| 18:
|
| 19:
|
| 20: end if
|
| 21: end for
|
| 22: if and then
|
| 23:
|
| 24: end if
|
| 25: end procedure
|