Question: b ) Consider a disk with block size 5 1 2 bytes. A block pointer is 6 bytes long, and a record pointer is 7

b) Consider a disk with block size 512 bytes. A block pointer is 6 bytes long, and a record pointer is 7 bytes long. A file has 30,000 EMPL OYE E records of fixed-length. E ach record has thefollowing fields: NAME (30 bytes), SSN (9bytes), DEPARTMENTCODE (9 bytes), ADDRESS (40 bytes), PH ONE (9 bytes),BIRTHDATE (8 bytes), SEX (1 byte), JOBCODE (4bytes), SAL ARY (4 bytes, real number). An additiond byte is used as a deletion marker.Assume that file is not ordered by the key field SSN and we need to create a secondary index on SSN.
(i) Find the number of levels needed, if wemake it into a multilevel index.
Data file
No. of records r=30000
Block size B=512 bytes
Record size R=115 bytes
Blocking factor bfr=BR=512115=4.45=4
Number of file blocks, b=rbfr=300004=7500
Index file-1st level
No. of records r=30000
Block size B=512 bytes
Record size R=9 bytes
Blocking factor bfr=BR=5129=56
Number of file blocks, b=3000056=536
Index file-2nd level
 b) Consider a disk with block size 512 bytes. A block

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!