Question: Suppose we have a sequential ordered file of 4 0 0 , 0 0 0 unspanned records, where each record is 4 0 0 0
Suppose we have a sequential ordered file of unspanned records, where each record
is bytes. Assume record per block, average seek time ms average rotational delay
ms and block transfer time ms Suppose we want to make X independent random
record reads from the file. This could be done in two different approaches.
read the entire file once and look for the X records of interest
use a binary search to find a particular record, and repeat this for all X records of
interest.
The question is to decide when it would be more efficient to perform approach versus
approach That is what is the value for X when an exhaustive read of the file is more
efficient than X binary searches? Develop this as a function of XA graph would be
helpful.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
