GATE Exam  >  GATE Questions  >   Consider a hash table of size 10 in which li... Start Learning for Free
Consider a hash table of size 10 in which linear probing is used to avoid collisions. The hash function used is HF(key) . Now consider the following hash table after insertion of these keys: 42,23,34,52,46,33 not necessarily in the same order.
Find the number of input sequences possible that results in the same hash table as above.
  • a)
    24
  • b)
    30
  • c)
    20
  • d)
    32
Correct answer is option 'B'. Can you explain this answer?
Verified Answer
Consider a hash table of size 10 in which linear probing is used to a...
Here keys are given in the sequence
42, 23, 34, 52, 46, 33
to get the output as above has a table, 42 must occur before 52 since the hash table is filled using linear probing.
Also, (42, 23, 34) should come before 52, but these 3 values can come in any order.
So, total possibilities = 3! = 6
Now 33 should occur at last of all the values. So, 33 is fixed to appear at 6th place.
Now 46 can appear at any of the remaining 5 positions.
Total possibility = 3! × 5 = 30
Hence, the answer would be 30.
View all questions of this test
Explore Courses for GATE exam

Similar GATE Doubts

Consider a hash table of size 10 in which linear probing is used to avoid collisions. The hash function used is HF(key) . Now consider the following hash table after insertion of these keys: 42,23,34,52,46,33 not necessarily in the same order.Find the number of input sequences possible that results in the same hash table as above.a)24b)30c)20d)32Correct answer is option 'B'. Can you explain this answer?
Question Description
Consider a hash table of size 10 in which linear probing is used to avoid collisions. The hash function used is HF(key) . Now consider the following hash table after insertion of these keys: 42,23,34,52,46,33 not necessarily in the same order.Find the number of input sequences possible that results in the same hash table as above.a)24b)30c)20d)32Correct answer is option 'B'. 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 a hash table of size 10 in which linear probing is used to avoid collisions. The hash function used is HF(key) . Now consider the following hash table after insertion of these keys: 42,23,34,52,46,33 not necessarily in the same order.Find the number of input sequences possible that results in the same hash table as above.a)24b)30c)20d)32Correct answer is option 'B'. 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 a hash table of size 10 in which linear probing is used to avoid collisions. The hash function used is HF(key) . Now consider the following hash table after insertion of these keys: 42,23,34,52,46,33 not necessarily in the same order.Find the number of input sequences possible that results in the same hash table as above.a)24b)30c)20d)32Correct answer is option 'B'. Can you explain this answer?.
Solutions for Consider a hash table of size 10 in which linear probing is used to avoid collisions. The hash function used is HF(key) . Now consider the following hash table after insertion of these keys: 42,23,34,52,46,33 not necessarily in the same order.Find the number of input sequences possible that results in the same hash table as above.a)24b)30c)20d)32Correct answer is option 'B'. 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 a hash table of size 10 in which linear probing is used to avoid collisions. The hash function used is HF(key) . Now consider the following hash table after insertion of these keys: 42,23,34,52,46,33 not necessarily in the same order.Find the number of input sequences possible that results in the same hash table as above.a)24b)30c)20d)32Correct answer is option 'B'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Consider a hash table of size 10 in which linear probing is used to avoid collisions. The hash function used is HF(key) . Now consider the following hash table after insertion of these keys: 42,23,34,52,46,33 not necessarily in the same order.Find the number of input sequences possible that results in the same hash table as above.a)24b)30c)20d)32Correct answer is option 'B'. Can you explain this answer?, a detailed solution for Consider a hash table of size 10 in which linear probing is used to avoid collisions. The hash function used is HF(key) . Now consider the following hash table after insertion of these keys: 42,23,34,52,46,33 not necessarily in the same order.Find the number of input sequences possible that results in the same hash table as above.a)24b)30c)20d)32Correct answer is option 'B'. Can you explain this answer? has been provided alongside types of Consider a hash table of size 10 in which linear probing is used to avoid collisions. The hash function used is HF(key) . Now consider the following hash table after insertion of these keys: 42,23,34,52,46,33 not necessarily in the same order.Find the number of input sequences possible that results in the same hash table as above.a)24b)30c)20d)32Correct answer is option 'B'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Consider a hash table of size 10 in which linear probing is used to avoid collisions. The hash function used is HF(key) . Now consider the following hash table after insertion of these keys: 42,23,34,52,46,33 not necessarily in the same order.Find the number of input sequences possible that results in the same hash table as above.a)24b)30c)20d)32Correct answer is option 'B'. 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