Question: A data file has 1 0 0 , 0 0 0 records of fixed length. The blocking factor of the file is 5 . We

A data file has 100,000 records of fixed length. The blocking factor of the file is 5. We build an index on field A of the data file which is a key field of the data file. The index blocking factor is 25. Assume that we want to find a record with a specific value for field A which exists in the data file. We measure the cost of such an operation in terms of block accesses (I/O cost). We build an index on field A. We want to calculate the cost of finding the record with and without using the index and see how much improvement we have with the index, if any, when field A is the ordering field of the data file.
Answer the following questions:
1. Calculate the number of blocks needed to store the data file.
2. Calculate the cost of finding the record without using the index.
3. What type of index is a single level index on field A?
4. How many index entries does the single level index have?
5. What is a dense index? Is this single level index a dense index?
6. Calculate the cost of finding the record using the single level index.
7. How much improvement we have using the single level index? (Calculate the ratio of the two costs).
8. Turn now the single level index on field A into a multilevel index. How many levels it has?
9. Calculate the cost of finding the record using the multilevel index.

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 Programming Questions!