HW3 Sol
HW3 Sol
Homework 3
Instructor: Dr. Daisy Zhe Wang
TAs:
Yang Chen, Kun Li, Yibin Wang
yang, kli, [email protected]
November 30, 2012
Name:
UFID:
Email
Address:
Signature ______________________________________
Score:
Q1 (Hash Index)
Consider the Linear Hashing index shown in the above figure. Assume that we split whenever an
overflow page is created. Answer the following questions about this index:
1. [5 points] Show the index after inserting an entry with hash value 4.
2. [5 points] Show the original index after inserting an entry with hash value 15.
3. [5 points] Show the original index after deleting the entries with hash values 36 and 44.
(Assume that the full deletion algorithm is used.)
4. [5 points] Find a list of entries whose insertion into the original index would lead to a bucket
with two overflow pages. Use as few entries as possible to accomplish this. "What is the
maximum number of entries that can be inserted into this bucket before a split occurs that reduces
the length of this overflow chain?
The following constitutes the minimum list of entries to cause two overflow pages in the index
: 63, 127, 255, 511, 1023