Computing Values of a Hash Function Instead of 10,000 students, suppose there are only 6. Define a function H, from the set of student ID numbers to the set {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10} as follows: H(n) = n mod 11 for each ID number n. To compute values of H either use a calculator or a computer with a built-in mod function or use the formula n mod 11 = n - (n div 11). In other words, divide n by 11, multiply the integer part of the result by 11, and subtract that number from n. As an example, since 328343419/11 = 29849401.73. H(328343419) = 328343419 - (11 * 29849401) = 8. To store the link to the record for the student with ID number n, start by computing H(n). For instance, if the ID numbers are 328343419, 356633102, 223799061, 607275830 and 513408716, calculate the hash values and comment in detail with mathematical justification on the hash function.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Computing Values of a Hash Function
Instead of 10,000 students, suppose there are only 6. Define a function
H, from the set of student ID numbers to the set {0, 1, 2, 3, 4, 5, 6,
7, 8, 9, 10} as follows:
H(n) = n mod 11 for each ID number n.
To compute values of H either use a calculator or a computer with a
built-in mod function or use the formula n mod 11 = n - (n div 11). In
other words, divide n by 11, multiply the integer part of the result
by 11, and subtract that number from n.
As an example, since 328343419/11 = 29849401.73.
H(328343419) = 328343419 - (11 * 29849401) = 8. To store the link to
the record for the student with ID number n, start by computing H(n).
For instance, if the ID numbers are 328343419, 356633102, 223799061,
607275830 and 513408716, calculate the hash values and comment in detail
with mathematical justification on the hash function.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Fundamentals of Blockchaining
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education