Question: Q 2 . Hashing [ 2 0 marks ] Consider a relation s with one attribute A . Suppose you have to insert the following
Q Hashing marks
Consider a relation with one attribute Suppose you have to insert the following
into the relation Construct a
dynamic hash index on the attribute of based on extendable hashing.
a marks A simple hash function length which converts the real
number as a string, counts its length and computes the value by modulus It maps
the real numbers in into Show the hash values of each number in
Please complete the form below.
b marks Since the value of is less than we can use a bit binary integer to
denote it ie from to Show the binary representation of each hash value
of Please complete the form below.
c marks In the hash index, a bucket keeps entries, where an entry is a pair of
searchkey and pointer to the record in that has the key. Assume that the dynamic
hash index has a bucket address table and an empty bucket of bit initially as shown
in Figure During insertions, the maximum length of the hash prefix is limited to
bits. Overflow buckets are used when necessary. Insert into the relation in
the given order, and show the dynamic hash index the bucket address table and the
buckets after each insertion.
Figure : Initial state of the hash index.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
