aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Test 4 - Algorithms | Computer Science(CS)
  • Given the following input(4322,1334,1471,9679,1989,6171,6...
Multiple choice

Given the following input(4322,1334,1471,9679,1989,6171,6173,4199) and the hash function x mod 10, which of the following statements are true?

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

  1. 1 only

  2. 2 only

  3. 1 and 2 only

  4. 3 and 4 only

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Keep practicing — related questions

  • The keys 12, 18, 13, 2, 3, 23, 5 and 15 are inserted into an initially empty hash table of length 10 using ...
  • The keys 12, 18, 13, 2, 3, 23, 5 and 15 are inserted into an initially empty hash table of length 10 using ...
  • A hash table of length 10 uses open addressing with hash function h(k)=k mod 10, and linear probing. After ...
  • A hash table of length 10 uses open addressing with hash function h(k)=k mod 10, and linear probing. After ...
  • Consider a hash table of size seven, with starting index zero, and a hash function (3x + 4) mod 7. Assuming...
  • Consider a hash table of size seven, with starting index zero, and a hash function (3x + 4) mod 7. Assuming...
  • A set of values (23, 18, 29, 28, 39, 13, 16, 42, 17) are stored in an array having 11 locations (array inde...
  • Two different keys with the same hash value is hash-collision in Hashtable.Two different entries will be ke...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy