Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q 9 . Suppose that we have an ordered file with r = 6 0 0 0 0 record stored on a disk with block
Q Suppose that we have an ordered file with record stored on a disk with block size, bytes. File records are of fixed size with record length bytes.
a
Whats the blocking factor for the file? What's the number of blocks needed for file?
How many block accesses would be needed to do a binary search for ordering field on the data file?
How many block accesses in average would be needed to do a linear search for nonordering field on the data file?
b Assume that we have constructed a primary index for the file that the ordering key field of the file is bytes long and a block pointer that is bytes long.
How many block accesses would be needed to search for a record using the primary index?
c Assume that we have constructed a secondary index on a nonordering key field of the file that is bytes long and a block pointer that is bytes long.
What's the total number of index entries for the file? What's the total number of blocks needed for the index?
How many block accesses would be needed to search for a record using the secondary index?
The above index, which is constructed based on a nonordering key field, is called a first level index. Assume that a secondlevel index has been constructed based on the firstlevel index to create a multilevel index.
What's the total number of index entries for the secondlevel index.
How many block accesses would be needed to search for a record using the multilevel index?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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