Question: Please have detailed steps and why. Also, make sure it is VID > 6 0 0 0 . Question C . File Organization and Indexing

Please have detailed steps and why. Also, make sure it is VID >6000.
Question C.File Organization and Indexing
Consider the relation: Vehicle (VID,Maker, Model, Color, Price),which contains 6400records
with each record occupying 50bytes.
VID (Integer,4bytes)is the primary key of the relation; the values are between 1and 6400.
Maker contains 80distinct values; the records are evenly distributed among these values.
Color contains 10distinct values; the records are evenly distributed among these values.
The file is sorted by VID, and stored on a disk with the following configuration:
Block size =1000bytes
Block pointer size =6bytes
(1)What is the total cost (i.e.,number of block accesses)to retrieve all records with VID >
6000using primary index? What is the total cost to retrieve these records using binary search?
(2)A primary index is built on the VID field. What is the total cost to retrieve all records with
VID >6000using the B+tree index?|
(3)A B+tree index is built on the VID field, and each tree node is 60%full on average. What
is the total cost to retrieve all records with VID >6000using the B^(+)tree index? How would the total cost change if the file is not sorted by VID?
(4)A bitmap index is built on both Maker and Color fields. How many blocks are required to
store the bitmap index (Note: 1byte =8bits; each bitmap is stored as a fixed-length record)?
Assume there are 40records with Maker ='Toyota' and Color ='Black'. What is the total
cost to retrieve these records using the bitmap 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!