Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider a disk with block size B = 512 bytes. A block pointer is P = 6 bytes long, and a record pointer is PR

Consider a disk with block size B = 512 bytes. A block pointer is P = 6 bytes long, and a record pointer is PR = 7 bytes long. A file has r = 80,000 EMPLOYEE records of fixed length. Each record has the following fields: NAME (25 bytes), SSN (9 bytes), DEPARTMENTCODE (9 bytes), ADDRESS (40 bytes), PHONE (8 bytes), BIRTHDATE (8 bytes), SEX (1 byte), JOBCODE (4 bytes), SALARY (4 bytes).

a. Calculate the record size R in bytes.

b. Calculate the blocking factor bfr and the number of file blocks b, assuming an unspanned organization.

c. Suppose that the file is ordered by the key field SSN and we want to construct a primary index on SSN.

Calculate:

(i) the index blocking factor bfri

(ii) the number of first-level index entries and the number of first-level index blocks

(iii) the number of levels needed if we make it into a multilevel index

(iv) the total number of blocks required by the multilevel index, and

(v) the number of block accesses needed to search for and retrieve a record from the file-given its SSN value-using the primary index.

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

Temporal Databases Research And Practice Lncs 1399

Authors: Opher Etzion ,Sushil Jajodia ,Suryanarayana Sripada

1st Edition

3540645195, 978-3540645191

More Books

Students also viewed these Databases questions

Question

What is Internet2?

Answered: 1 week ago

Question

What magazine and ads did you choose to examine?

Answered: 1 week ago