Also called Resizing a hash table, Rehashing and Dynamic hash table.
fresh numbers
The test's questions that a run answers, asked again on new numbers whenever you like. The answer, its working and the reason for every other choice come from hash table that grows's own run on the numbers shown.
choose one
1question 1
A table that grows starts with 2 empty slots and puts in 37, 30, 62, 34 and 72. How many numbers are moved in all?
the answer, and why
the answer is D
The slots double before the 2nd, 3rd and 5th numbers, moving 1, 2 and 4. 1 + 2 + 4 is 7.
if you chose another
AThat counts only the last doubling, before the 5th number.
BThat counts one move a number, but the 1st and 4th move nothing and the 5th moves 4.
CThat counts up to the 9th number, which moves 8 more.