Question: Suppose you need to sort a relation of 40 gigabytes, with 4-kilobyte blocks, using a memory size of 40 megabytes. Suppose the cost of a
Suppose you need to sort a relation of 40 gigabytes, with 4-kilobyte blocks, using a memory size of 40 megabytes. Suppose the cost of a seek is 5 milliseconds, while the disk transfer rate is 40 megabytes per second.
a. Find the cost of sorting the relation, in seconds, with bb = 1 and with bb = 100.
b. In each case, how many merge passes are required?
c. Suppose a flash storage device is used instead of a disk, and it has a latency of 20 micro second and a transfer rate of 400 megabytes per second. Re compute the cost of sorting the relation, in seconds, with bb = 1 and with bb = 100, in this setting.
Step by Step Solution
3.37 Rating (163 Votes )
There are 3 Steps involved in it
a Find the cost of sorting the relation in seconds with bb 1 ... View full answer
Get step-by-step solutions from verified subject matter experts
