阿摩線上測驗 登入

試題詳解

試卷:109年 - 109 國立臺灣大學_碩士班招生考試_電機工程研究所丙組:資料結構(B)#105932 | 科目:台大◆電機◆資料結構(B)

試卷資訊

試卷名稱:109年 - 109 國立臺灣大學_碩士班招生考試_電機工程研究所丙組:資料結構(B)#105932

年份:109年

科目:台大◆電機◆資料結構(B)

1. Consider a hash table with 13 slots. Suppose we use linear probing as the collision resolution strategy, where the i'th probe position (wherc i = 0, 1, 2, ..) for a key k is given by the function
 h(k,i) = (k+i) (mod 13)
Suppose we insert the following 9 keys into the hash table in the exact sequence: 66, 4, 84, 91, 100, 72, 70, 37, 61. What is the index of the slot storing the key 61?
(A)2
(B)8
(C)9
(D)10
(E) None of above
正確答案:登入後查看

詳解 (共 2 筆)

推薦的詳解#6087229
未解鎖
題目指定 linear probing ...
(共 172 字,隱藏中)
前往觀看
2
0
推薦的詳解#7234789
未解鎖
這是一道關於 雜湊表 (Hash Tab...
(共 2832 字,隱藏中)
前往觀看
0
0