Linear Probing A hash table of length 10 uses open addressing and linear probing with hash function h(k, i)=(k+i) % 10,  where k is the key and i is the order of the insertion. After inserting 6 key values into an empty hash table, the resulting table is as shown below. Note that ‘---’ denotes an empty location in the table.   Slot # 0 1 2 3 4 5 6 7 8 9 keys --- --- 42 23 4 2 6 33 --- ---   Which one of the following is a possible order in which the key values could have been inserted in the table?单项选择题

A

4, 42, 23, 2, 33, 6

B

6, 4, 42, 23, 2, 33

C

6, 42, 4, 2, 23, 33

D

None is a correct answer.

E

42, 6, 33, 23, 4, 2

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!