Question: Exercise 1 : Given the following data file EMPLOYEE ( NAME , SSN , ADDRESS, JOB, . . . ) , suppose that: the record
Exercise :
Given the following data file EMPLOYEE NAME SSN ADDRESS, JOB, suppose that: the record size R bytes; the block size B bytes and the number of file blocks
a Calculate the blocking factor.
b Calculate the number of records r
Lets assume that the total size of the primary index entry is equal to bytes.
c Calculate the index blocking factor.
d Calculate the number of index blocks
e Calculate the binary search cost in time for a direct search on the data file and for a search on the primary index files.
Your answer:
step by step
Exercise :
Suppose that we have a and the size of the search key field V is equal to bytes, the size of the data record pointer Pr bytes, and the tree block pointer P is bytes and the value of p the order or the maximum number of a tree pointers in a node is equal to for an internal node.
a Calculate the block size B
b Suppose that we have a B tree instead of and based on the block size found in question a calculate the order p for an internal node in this case.
Your answer:
step by step
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
