Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assume that we have an ordered file that stores 1 8 0 0 0 0 records of relation STUDENT on disk. The block size is

Assume that we have an ordered file that stores 180000 records of relation STUDENT on disk. The block size is 512 Bytes. The fields of STUDENT Record are- sid (4 bytes), sname (8 bytes), sbranch (3 bytes), saddress (12 bytes), sadharID (5 bytes), scity (8 bytes). The record length is uniform. The primary Key field is sid and also defines the order of records in the file. Any block pointer takes 7 Bytes. Assume unspanned record organisation.
Do the following.
Design a multilevel index (with root-level) on sid. Now, (i) give the total number of data blocks needed, (ii) the number of index blocks in each level, and (iii) the number of block accesses needed to retrieve a record with the given sid (worst case).
Design a two-level index on sadharID. Now, (i) give the total number of data blocks needed, (ii) the number of index blocks in each level, and (iii) the number of block accesses needed to retrieve a record with the given sadharID (worst case).

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_2

Step: 3

blur-text-image_3

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

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Sham Navathe

4th Edition

0321122267, 978-0321122261

More Books

Students also viewed these Databases questions

Question

=+. Show in Example 6.3 that P[IS, - L,| > L'/2+ 0.

Answered: 1 week ago

Question

b. Why were these values considered important?

Answered: 1 week ago