Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(3) Let p = 7, m = 4, and consider the keys 1,2, 5, 6. See if you can find a per- fect hash of

image text in transcribed

(3) Let p = 7, m = 4, and consider the keys 1,2, 5, 6. See if you can find a per- fect hash of these keys with two-level storage where the secondary storage takes up tables whose sizes sum to no more than 8, following the method described in class and using hash functions from {hab} for the appropriately chosen a and b. Draw a picture of your two level hash table with the keys filled in and say exactly which hash functions you used for the main table and the secondary tables specified. (page 264 in text) Consider a hash table of size m = 1000 and a hash function h(k) = [m(kA mod 1)] for A = .618. Compute the locations to which the keys 61, 62, and 63 are mapped. (You can use a calculator.) (Note that x mod 1 means taking the fractional part of x). (3) Let p = 7, m = 4, and consider the keys 1,2, 5, 6. See if you can find a per- fect hash of these keys with two-level storage where the secondary storage takes up tables whose sizes sum to no more than 8, following the method described in class and using hash functions from {hab} for the appropriately chosen a and b. Draw a picture of your two level hash table with the keys filled in and say exactly which hash functions you used for the main table and the secondary tables specified. (page 264 in text) Consider a hash table of size m = 1000 and a hash function h(k) = [m(kA mod 1)] for A = .618. Compute the locations to which the keys 61, 62, and 63 are mapped. (You can use a calculator.) (Note that x mod 1 means taking the fractional part of x)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Identify and explain factors that affect quality of earnings.

Answered: 1 week ago

Question

The background knowledge of the interpreter

Answered: 1 week ago