571 views
0 votes
0 votes

Consider a hash table of size 11. Let h(k) = k mode 11 be the hash function used. A sequence of records with keys {33, 68, 62, 47, 48, 60, 104, 23, 19, 120, 87} is inserted into an initially empty hash table, the bins of which are indexed from zero to ten.

If collisions are resolved by linear probing then maximum number of collisions in worst case will be?

1 Answer

0 votes
0 votes
Max. Collision possible = 1

Related questions

372
views
3 answers
0 votes
Mrityudoot asked Jan 20
372 views
In a max heap of n elements, the time complexity to find 10th largest element is:a)Θ(n log n)b)Θ(n)c)Θ(1)d)Θ(log n) I personally think it should ... can be anywhere in the heap, all the elements need to be traversed once to decide that.
806
views
1 answers
0 votes
atulcse asked Jan 16, 2022
806 views
Consider the following graph:Find the total number of max-heap possible orderings with elements 12, 10, 1, 5, 7, 9, 8 such that each element is filled in ... of the above tree and element 10 occupies only the left child node of its parent.
2.0k
views
5 answers
3 votes
srestha asked May 22, 2019
1,976 views
Consider the following function height, to which pointer to the root node of a binary tree shown below is passedNote that max(a,b) defined by #define max(a ... a:b.int height(Node *root)The output of the above code will be _________________
808
views
1 answers
1 votes
srestha asked May 22, 2019
808 views
A stack based CPU executes the instruction. Memory location $500$ contain $0X 88$ and memory location $700$ contain $0X37$. The stack pointer is at $0X003F$The ... contain $0XBF$ after execution of instruction.$D)$ Both $a)$ and $c)$