Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Which one of the following hash functions on ... Start Learning for Free
Which one of the following hash functions on integers will distribute keys most uniformly over 10 buckets numbered 0 to 9 for i ranging from 0 to 2020?
  • a)
    h(i) =i2 mod 10
  • b)
    h(i) =i3 mod 10
  • c)
    h(i) = (11 ∗ i2) mod 10
  • d)
    h(i) = (12 ∗ i) mod 10
Correct answer is option 'B'. Can you explain this answer?
Verified Answer
Which one of the following hash functions on integers will distribute ...
Since mod 10 is used, the last digit matters. If you do cube all numbers from 0 to 9, you get following
Therefore all numbers from 0 to 2020 are equally divided in 10 buckets. If we make a table for square, we don't get equal distribution. In the following table. 1, 4, 6 and 9 are repeated, so these buckets would have more entries and buckets 2, 3, 7 and 8 would be empty.
View all questions of this test
Most Upvoted Answer
Which one of the following hash functions on integers will distribute ...
Since mod 10 is used, the last digit matters. If you do cube all numbers from 0 to 9, you get following
Therefore all numbers from 0 to 2020 are equally divided in 10 buckets. If we make a table for square, we don't get equal distribution. In the following table. 1, 4, 6 and 9 are repeated, so these buckets would have more entries and buckets 2, 3, 7 and 8 would be empty.
Free Test
Community Answer
Which one of the following hash functions on integers will distribute ...
Which of the following hash function on integers will distribute key most uniformly over 10 bucket numbered 0 to 9 for i ranging form 0 to 2022

h ( i) = i power 2 mod 10 and
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Question Description
Which one of the following hash functions on integers will distribute keys most uniformly over 10 buckets numbered 0 to 9 for i ranging from 0 to 2020?a)h(i) =i2mod 10b)h(i) =i3mod 10c)h(i) = (11 ∗ i2) mod 10d)h(i) = (12 ∗ i) mod 10Correct answer is option 'B'. Can you explain this answer? for Computer Science Engineering (CSE) 2025 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about Which one of the following hash functions on integers will distribute keys most uniformly over 10 buckets numbered 0 to 9 for i ranging from 0 to 2020?a)h(i) =i2mod 10b)h(i) =i3mod 10c)h(i) = (11 ∗ i2) mod 10d)h(i) = (12 ∗ i) mod 10Correct answer is option 'B'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2025 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Which one of the following hash functions on integers will distribute keys most uniformly over 10 buckets numbered 0 to 9 for i ranging from 0 to 2020?a)h(i) =i2mod 10b)h(i) =i3mod 10c)h(i) = (11 ∗ i2) mod 10d)h(i) = (12 ∗ i) mod 10Correct answer is option 'B'. Can you explain this answer?.
Solutions for Which one of the following hash functions on integers will distribute keys most uniformly over 10 buckets numbered 0 to 9 for i ranging from 0 to 2020?a)h(i) =i2mod 10b)h(i) =i3mod 10c)h(i) = (11 ∗ i2) mod 10d)h(i) = (12 ∗ i) mod 10Correct answer is option 'B'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of Which one of the following hash functions on integers will distribute keys most uniformly over 10 buckets numbered 0 to 9 for i ranging from 0 to 2020?a)h(i) =i2mod 10b)h(i) =i3mod 10c)h(i) = (11 ∗ i2) mod 10d)h(i) = (12 ∗ i) mod 10Correct answer is option 'B'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Which one of the following hash functions on integers will distribute keys most uniformly over 10 buckets numbered 0 to 9 for i ranging from 0 to 2020?a)h(i) =i2mod 10b)h(i) =i3mod 10c)h(i) = (11 ∗ i2) mod 10d)h(i) = (12 ∗ i) mod 10Correct answer is option 'B'. Can you explain this answer?, a detailed solution for Which one of the following hash functions on integers will distribute keys most uniformly over 10 buckets numbered 0 to 9 for i ranging from 0 to 2020?a)h(i) =i2mod 10b)h(i) =i3mod 10c)h(i) = (11 ∗ i2) mod 10d)h(i) = (12 ∗ i) mod 10Correct answer is option 'B'. Can you explain this answer? has been provided alongside types of Which one of the following hash functions on integers will distribute keys most uniformly over 10 buckets numbered 0 to 9 for i ranging from 0 to 2020?a)h(i) =i2mod 10b)h(i) =i3mod 10c)h(i) = (11 ∗ i2) mod 10d)h(i) = (12 ∗ i) mod 10Correct answer is option 'B'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Which one of the following hash functions on integers will distribute keys most uniformly over 10 buckets numbered 0 to 9 for i ranging from 0 to 2020?a)h(i) =i2mod 10b)h(i) =i3mod 10c)h(i) = (11 ∗ i2) mod 10d)h(i) = (12 ∗ i) mod 10Correct answer is option 'B'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
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