In hashing, collision resolution is carried out by close addressing. Which of the following is close addressing technique – I. Buckets (for contiguous storage) II. Chains (for linked storage)
In hashing, collision resolution is carried out by close addressing. Which of the following is close addressing technique – I. Buckets (for contiguous storage) II. Chains (for linked storage) Correct Answer Only II
Concept:
Hashing is a technique which uses a hash function to map a value with a particular location. Sometimes,
two values have same memory location which means collision. Collision resolution is carried by close
addressing.
Explanation:
Close addressing is known as open hashing. In this, key is stored in the bucket to which it is hashed to.
Separate data structure is used during a collision for each bucket.
Techniques of close addressing technique:
1) Chaining using linked list
2) Chaining using dynamic arrays
3) By using self - balancing search trees