📜  门| GATE-CS-2004 |问题7

📅  最后修改于: 2021-06-28 20:37:18             🧑  作者: Mango

给定以下输入(4322、1334、1471、9679、1989、6171、6173、4199)和哈希函数x mod 10,以下哪个语句是正确的?

1.    9679, 1989, 4199 hash to the same value
2.    1471, 6171 hash to the same value
3.    All elements hash to the same value
4.    Each element hashes to a different value 

(A)仅1
(B)仅2
(C)仅1和2
(D) 3或4答案: (C)
说明: 9679、1989、4199的哈希值是9而1471、6171的哈希值是1。
这个问题的测验