Answered step by step
Verified Expert Solution
Question
1 Approved Answer
ZOOTON a care facility for animals they call each animal as PET and keeps a records of them in a file. The File has
ZOOTON a care facility for animals they call each animal as PET and keeps a records of them in a file. The File has r = 30,000 of those on habitats and it's a fixed length. Each record has the following fields: PET Name (30 bytes), PET ID (9 bytes), Speciesname (40 bytes), country (10 bytes), Birth_date (8 bytes), Gender (1 byte), noofoffsprings(8 bytes), medical condtion(100 bytes). An additional byte is used as a deletion marker. The file is stored on the disk whose parameters are given [ie.block size B = 512 bytes; interblock gap size G = 128 bytes; number of blocks per track = 20; number of tracks per surface = 400; a disk pack consists of 15 double- sided disks, seek time is 30msec, rotational delay=12.5] (a) Calculate the average record length R in bytes. (b) Calculate the number of blocks needed for the file. (c) Assume that the file is ordered by PETID; by doing a binary search, calculate the time it takes to search for a record given its PETID value.
Step by Step Solution
★★★★★
3.34 Rating (160 Votes )
There are 3 Steps involved in it
Step: 1
Solution a To calculate the average record length R in bytes we sum up the lengths of all the fields in a record and divide by the number of fields Record length 30 bytes PET Name 9 bytes PET ID 40 by...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started