Consider a hash table of size $11$ that uses open addressing with linear probing. Let $h(k) = k \mod 11$ be the hash function used. A sequence of records with keys
$43 \ 36 \ 92 \ 87 \ 11 \ 4 \ 71 \ 13 \ 14$
is inserted into an initially empty hash table, the bins of which are indexed from zero to ten. What is the index of the bin into which the last record is inserted?
$$\begin{array}{|c|c|} \hline \textbf{Index} & \textbf{key}\\\hline 0 & 87 \\\hline 1 & 11 \\\hline 2 & 13 \\\hline 3 & 36 \\\hline 4 & 92 \\\hline 5 & 4 \\\hline 6 & 71 \\\hline \textbf{7} & \textbf{14} \\\hline 8 \\\hline 9 \\\hline 10 & 43 \\\hline \end{array}$$
(D) is answer
Answer D
https://youtu.be/q42Dgt0r0c0
64.3k questions
77.9k answers
244k comments
80.0k users