What should be the load factor for separate chaining hashing?

Category: QuestionsWhat should be the load factor for separate chaining hashing?
Editor">Editor Staff asked 1 month ago

What should be the load factor for separate chaining hashing?
 
(a) 0.5
 
(b) 1
 
(c) 1.5
 
(d) 2
 
The question is from Hash Tables topic in chapter Hash Tables of Data Structures & Algorithms I
 
This question was addressed to me during an internship interview.

1 Answers
Editor">Editor Staff answered 1 month ago

Right option is (b) 1
 
To explain: For hashing using separate chaining method, the load factor should be maintained as 1. For open addressing method, it should not exceed 0.5.