GATE Exam  >  GATE Questions  >   Consider double hashing where the hash funct... Start Learning for Free
Consider double hashing where the hash function is HF(key) = (HF1(key) + iHF2(key))mod7
HF1(key) = Key mod 7
HF2(key) = R - (Key mod R)
where R is the maximum prime number less than the table size.
The following keys are being inserted into the table :
76 , 93 , 40 , 47 , 10 , 55
Find the number of times the second hash function needs to be used while hashing the keys _______.
  • a)
    2
  • b)
    1
  • c)
    3
  • d)
    None of above
Correct answer is option 'A'. Can you explain this answer?
Verified Answer
Consider double hashing where the hash function is HF(key) = (HF1(key...
Hence 2 times a second hash function is used.
View all questions of this test
Explore Courses for GATE exam

Similar GATE Doubts

Consider double hashing where the hash function is HF(key) = (HF1(key) + iHF2(key))mod7HF1(key) = Key mod 7HF2(key) = R - (Key mod R)where R is the maximum prime number less than the table size.The following keys are being inserted into the table :76 , 93 , 40 , 47 , 10 , 55Find the number of times the second hash function needs to be used while hashing the keys _______.a)2b)1c)3d)None of aboveCorrect answer is option 'A'. Can you explain this answer?
Question Description
Consider double hashing where the hash function is HF(key) = (HF1(key) + iHF2(key))mod7HF1(key) = Key mod 7HF2(key) = R - (Key mod R)where R is the maximum prime number less than the table size.The following keys are being inserted into the table :76 , 93 , 40 , 47 , 10 , 55Find the number of times the second hash function needs to be used while hashing the keys _______.a)2b)1c)3d)None of aboveCorrect answer is option 'A'. Can you explain this answer? for GATE 2024 is part of GATE preparation. The Question and answers have been prepared according to the GATE exam syllabus. Information about Consider double hashing where the hash function is HF(key) = (HF1(key) + iHF2(key))mod7HF1(key) = Key mod 7HF2(key) = R - (Key mod R)where R is the maximum prime number less than the table size.The following keys are being inserted into the table :76 , 93 , 40 , 47 , 10 , 55Find the number of times the second hash function needs to be used while hashing the keys _______.a)2b)1c)3d)None of aboveCorrect answer is option 'A'. Can you explain this answer? covers all topics & solutions for GATE 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Consider double hashing where the hash function is HF(key) = (HF1(key) + iHF2(key))mod7HF1(key) = Key mod 7HF2(key) = R - (Key mod R)where R is the maximum prime number less than the table size.The following keys are being inserted into the table :76 , 93 , 40 , 47 , 10 , 55Find the number of times the second hash function needs to be used while hashing the keys _______.a)2b)1c)3d)None of aboveCorrect answer is option 'A'. Can you explain this answer?.
Solutions for Consider double hashing where the hash function is HF(key) = (HF1(key) + iHF2(key))mod7HF1(key) = Key mod 7HF2(key) = R - (Key mod R)where R is the maximum prime number less than the table size.The following keys are being inserted into the table :76 , 93 , 40 , 47 , 10 , 55Find the number of times the second hash function needs to be used while hashing the keys _______.a)2b)1c)3d)None of aboveCorrect answer is option 'A'. Can you explain this answer? in English & in Hindi are available as part of our courses for GATE. Download more important topics, notes, lectures and mock test series for GATE Exam by signing up for free.
Here you can find the meaning of Consider double hashing where the hash function is HF(key) = (HF1(key) + iHF2(key))mod7HF1(key) = Key mod 7HF2(key) = R - (Key mod R)where R is the maximum prime number less than the table size.The following keys are being inserted into the table :76 , 93 , 40 , 47 , 10 , 55Find the number of times the second hash function needs to be used while hashing the keys _______.a)2b)1c)3d)None of aboveCorrect answer is option 'A'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Consider double hashing where the hash function is HF(key) = (HF1(key) + iHF2(key))mod7HF1(key) = Key mod 7HF2(key) = R - (Key mod R)where R is the maximum prime number less than the table size.The following keys are being inserted into the table :76 , 93 , 40 , 47 , 10 , 55Find the number of times the second hash function needs to be used while hashing the keys _______.a)2b)1c)3d)None of aboveCorrect answer is option 'A'. Can you explain this answer?, a detailed solution for Consider double hashing where the hash function is HF(key) = (HF1(key) + iHF2(key))mod7HF1(key) = Key mod 7HF2(key) = R - (Key mod R)where R is the maximum prime number less than the table size.The following keys are being inserted into the table :76 , 93 , 40 , 47 , 10 , 55Find the number of times the second hash function needs to be used while hashing the keys _______.a)2b)1c)3d)None of aboveCorrect answer is option 'A'. Can you explain this answer? has been provided alongside types of Consider double hashing where the hash function is HF(key) = (HF1(key) + iHF2(key))mod7HF1(key) = Key mod 7HF2(key) = R - (Key mod R)where R is the maximum prime number less than the table size.The following keys are being inserted into the table :76 , 93 , 40 , 47 , 10 , 55Find the number of times the second hash function needs to be used while hashing the keys _______.a)2b)1c)3d)None of aboveCorrect answer is option 'A'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Consider double hashing where the hash function is HF(key) = (HF1(key) + iHF2(key))mod7HF1(key) = Key mod 7HF2(key) = R - (Key mod R)where R is the maximum prime number less than the table size.The following keys are being inserted into the table :76 , 93 , 40 , 47 , 10 , 55Find the number of times the second hash function needs to be used while hashing the keys _______.a)2b)1c)3d)None of aboveCorrect answer is option 'A'. Can you explain this answer? tests, examples and also practice GATE tests.
Explore Courses for GATE exam
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev