Midterm Preparation Assignment:
Storage, Indexing, Hashing
Not due, but recommended before the 7 March 2012 midterm.
While you will not be turning this in, you can
check your answers.
- Exercise 8.3 (8.7 is good also, but probably not the sort of thing
you would see on an exam.)
- Exercise 9.11 (9.19 is also interesting.)
- Exercise 10.1 (2,3,5,7)
- Exercise 10.5 (1)
- Exercise 11.1 (4,5,7)
- Excerise 11.3 (1,2,3)
- Exercise 11.7
- Linear hashing: Given Figure 11.16, and the following hash function:
x | h(x) |
3 | 1011 |
5 | 0101 |
7 | 0111 |
9 | 1001 |
10 | 1110 |
13 | 1111 |
15 | 0011 |
25 | 1101 |
31 | 1011 |
44 | 0000 |
64 | 1100 |
- Show insert(13).
- Show the outcome after a split.
- What fraction of the pages slots would be full
after enough splits to get rid of the overflow page?
(We'll go over the answers to this one Monday in class.)
This page last modified .