Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

( 3 5 points ) Consider a disk with a block size of 2 0 0 0 bytes, block transfer time of 0 . 5

(35 points) Consider a disk with a block size of 2000 bytes, block transfer time of 0.5 milliseconds,
average rotational delay of 7 milliseconds, and average seek time of 10 milliseconds. Suppose that a
file containing 150000 records of 300 bytes each is to be stored on such disk and that no record is
allowed to span two blocks.
a) Compute number of passes, number of disk accesses, and time (in milliseconds) required to sort
this file using general external merge sort (without any improvement) algorithm assuming
that 11 buffer pages are available in the memory.
b) Assume that an unclustered B+ tree index using Alternative 2 is constructed on the file. In this
index, you can assume that the key field and address pair occupy 100 bytes for each record, and
each leaf node is 60% full. Only the leaf nodes and the file are stored on disk. Compute time
required for sorting the file by using the unclustered B+ tree index.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions