Midterm Practice Problems

Midterm Practice Problems - Part A: Indexing 1) Consider an...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Part A: Indexing 1) Consider an initially empty extendible hashing index with a directory size of one, where the directory entry points to an empty bucket. Write down a sequence of data insertions into this index such that the final index structure has a directory size of eight. You should also draw the final index structure after the insertions (including the directory, buckets, hash entries, local depths and global depth). You can assume that each bucket can hold at most two data entries. 2) Consider an initially empty linear hashing index with one empty bucket. Write down a sequence of 5 data insertions into this index such that the final index structure has exactly one overflow bucket. You should also draw the final index structure after the insertions (including the position of the next pointer). You can assume that a split occurs whenever an overflow bucket is created. Further, you can assume that each bucket can hold at most two data entries. (6 points) 3) Consider a completely full B+-tree of order 2 and height 5. Give the maximum number of entries that can be deleted from the B+-tree so that its height remains 5. Your answer should be a number. can be deleted from the B+-tree so that its height remains 5....
View Full Document

Page1 / 2

Midterm Practice Problems - Part A: Indexing 1) Consider an...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online