Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider a linear hashed index file, where each data page (primary page and overflow page) can hold at most three data entries. a) Show a

Consider a linear hashed index file, where each data page (primary page and overflow page) can hold at most three data entries.

a) Show a linear hashed index (with Level=0, N=N0=2 initial buckets, and Next=0) containing two primary page buckets, where one bucket contains the data entry 2* (with hO(2) = 0(2)) and another bucket contains the data entry 3* (with hO(3) = 1(2)). Please make sure that you show the Level and N Level.

b) Let us assume that each insertion of a data entry into an (existing or new) overflow page triggers the split. Then, what is the resulting linear hashed index after each of the following data entries with key: 5, 7, 11, 13, 17, 19, 23, 29 is inserted (one-by-one in the above order) into the linear hashed index shown in Question 6(a). Please make sure you show the Level and Next info in each resulting index structure. Hint: The final index should contain 10 data entries.

c) Let us assume that, if the last bucket is empty, it can be removed and Next can be decremented. Then, what is the resulting linear hashed index after each of the following data entries with key: 29, 17 is deleted (one-by-one in the above order) from the final linear hashed index for Question 6(b) (which contains 10 data entries)? Please make sure you show the Level and Next info in each resulting index structure.

Hint: The final index should contain 8 data entries.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases DeMYSTiFieD

Authors: Andy Oppel

2nd Edition

0071747990, 978-0071747998

More Books

Students also viewed these Databases questions

Question

OUTCOME 1 Explain the reasons for equity-related legislation.

Answered: 1 week ago