Operating-Systems
February 19, 2025
Operating-Systems
February 19, 2025
Operating-Systems
February 19, 2025
Operating-Systems
February 19, 2025

Data-Structures

Question 691
A hash table with 10 buckets with one slot per bucket is depicted here. The symbols, S1 to s7 are initially entered using a hashing function with linear probing. The maximum number of comparisons needed in searching an item that is not present is

A
4
B
5
C
6
D
3
Question 691 Explanation: 
In this, maximum size of cluster=4(S6, S3, S7, S1)
→ Worst case of finding a number is equal to maximum size of cluster + 1(after searching all the cluster it enters into empty cluster)
→ Maximum number of comparisons = 4 + 1 = 5
Correct Answer: B
Question 691 Explanation: 
In this, maximum size of cluster=4(S6, S3, S7, S1)
→ Worst case of finding a number is equal to maximum size of cluster + 1(after searching all the cluster it enters into empty cluster)
→ Maximum number of comparisons = 4 + 1 = 5

Leave a Reply

Your email address will not be published. Required fields are marked *