

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Information about a database systems homework assignment from the university of illinois at urbana-champaign, due in november 2004. The assignment includes several problems related to merge-sort, pointer swizzling, data representation, indexes on sequential files, b+tree, and extensible hash table. Students are required to complete various exercises and look up records in given trees.
Typology: Assignments
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Note: Print your name and NetID in the upper right corner of every page of your submission.
Suppose we have a relation with 16665 tuples and each tuple requires 15 bytes. We have a machine whose main memory and disk-block size (100 bytes) are sufficient to sort the 16665 tuples using TPMMS (Two-Phase, Multiway Merge-Sort). What is the minimum size of the main memory?
Exercise 12.3.11 (page 589)
Exercise 12.4.3 (page 596)
(a) Exercise 13.1.2 (page 620)
(b) Exercise 13.1.3 (page 620)
Execute the following operations on Fig. 13.23 (page 635). Show the detailed steps, using Example 13.23 and Example 13.24 as examples.
(a) Lookup the record with key 19.
(b) Lookup the record with key 18.
(c) Lookup all records in the range 35 to 45.
(d) Lookup all records with keys less than 35.
(e) Lookup all records with keys greater than 35.
Consider constructing and updating a B+tree of order 3 (i.e., n = 3).
(a) The following is an incomplete B+tree for indexing {10, 20, 30, 40, 50, 60}. Complete the missing keys and pointers.
10 20 30 40 50 60
(b) Insert 25 then 18 to the tree. Show the resulting tree.
(c) Insert 28 then 70 to the tree. Show the resulting tree.
(d) Our tree now has indexed key values {10, 20, 30, 40, 50, 60, 25, 18, 28, 70}. The following tree, called tree Tall, also index the same data values. Is tree Tall a legal B+tree of order 3 (i.e., so that it does not violate any B+tree utilization rules)?
10 18 20 25 28 30 40 50
20 28 60
40
60 70
Another tree. Let’s call it Tree Tall
(e) Let’s pretend that Tree T all is legal, regardless of what your answer is for (d). Now, delete 40 from Tree T all. Show the resulting tree.
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.
(a) 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).
(b) Draw the hash index after all the keys are inserted.