Complete the code to identify the method used in open addressing for collision handling.
In open addressing, when a collision occurs, the algorithm tries to find the next [1] slot in the hash table.
Open addressing searches for the next empty slot to resolve collisions.
Complete the code to describe the probing sequence in linear probing.
In linear probing, the next slot is found by moving [1] step(s) forward from the current slot.
Linear probing moves one step forward to find the next slot.
Fix the error in the description of quadratic probing.
Quadratic probing finds the next slot by adding [1] to the original hash index, where i is the probe number.Quadratic probing adds i squared (i * i) to the original hash index to find the next slot.
Fill both blanks to complete the formula for double hashing.
The double hashing formula is: (hash1(key) + [1] * [2]) mod table_size.
Double hashing uses the formula: (hash1(key) + i * hash2(key)) mod table_size to find the next slot.
Fill all three blanks to complete the explanation of open addressing.
In open addressing, all elements are stored in the [1] itself. When a collision occurs, the algorithm probes the table using a sequence defined by [2] until an [3] slot is found.
Open addressing stores all elements in the hash table itself. It uses a probing function to find the next slot until an empty slot is found.