{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# hw2 - CSE671 Introduction to DB Systems II Homework 2 Due...

This preview shows pages 1–2. Sign up to view the full content.

1 CSE671 - Introduction to DB Systems II Homework 2 Due: in class, Jan. 28, 2008 Problem 1 : Extensible Hashing (30 points) Consider indexing the following key values using an extensible hash table. Suppose that we insert the keys in the order of 44, 36, 30, 56, 34, 62, 50, 22 The hash function h(n) for key n is h(n) = n mod 16; i.e., the hash function is the remainder after the key value is divided by 16. Thus, the hash value is a 4-bit value. Assume that each bucket can hold 2 data items. (1) Draw the hash index (both the directory and the buckets), after the first four keys are inserted. Show the keys themselves in the buckets, as well as the hash values. Be sure to indicate the number of bits in the hash value that are used (in the directory as well as each bucket). (2) Draw the hash index after all the keys are inserted. Problem 2 : Linear Hashing vs. B+-tree (40 points) Consider indexing the following key values using a linear hash table and a B+ tree. Here is the specification of these index structures.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern