- Linear probing with chaining replacement. When 1. Chaining 1. A collision happens whenever the hash function for two different keys points to the same location to store the value. com Theorem:Using 2-independent hash functions, we can prove an O(n1/2) expected cost of lookups with linear probing, and there's a matching adversarial lower bound. There are mainly two methods to handle collision: Separate Chaining Open Addressing In this article, only . Common hash functions include division, multiplication, and universal hashing. , when two or more keys map to the same slot), the algorithm looks for another empty slot in the hash table to store the collided key. In linear probing, the algorithm simply looks for the next available slot in the hash table and places the collided key there For a successful search using open addressing with linear probing, the average number of comparisons is approximately 1 2 (1 + 1 1 λ) and an unsuccessful search gives 1 2 (1 + (1 1 λ) 2) If we are using chaining, the average number of comparisons is 1 + λ 2 for the successful case, and simply λ comparisons if the search is unsuccessful. If a car finds its spot taken, it moves down the line to find the next open one. If we simply delete a key, then search may fail. ausbb3 xen scd68 isqn 1c6 zqnin rbc qr3l vesnn4uat 3vb