Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose we need to sort a relation of 40 GB, with 4KB blocks. Assume memory size is 40 MB, the disk seek cost is 5

Suppose we need to sort a relation of 40 GB, with 4KB blocks. Assume memory size is 40 MB, the disk seek cost is 5 milliseconds, and block transfer cost is 1 millisecond.

Assume for the above sorted relation , each block stores 40 records, and the fanout of the node is 100. Select with an equality condition on that attribute.For the following selection operations, consider which selection algorithm applies for each case, and find the number of block transfers and the number of seeks, respectively:

1. Suppose that a B+ tree index is on the key attribute, and is also the attribute used to sort the relation in 12:10.

2. Suppose that the index is not on the key attribute, but it is the attribute used to sort the relation in 12:10. Analyze its difference from 1.

3. Suppose that the index is not on the attribute used to sort the relation, but is a key attribute. Analyze its difference from 1.

4. Suppose that the index is not on the attribute used to sort the relation, and is a nonkey attribute. Analyze its difference from 1.

5. How about using linear search?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Visual Basic Net Database Programming

Authors: Rod Stephens

1st Edition

0789726815, 978-0789726810

More Books

Students also viewed these Databases questions

Question

13-4 What are alternative methods for building information systems?

Answered: 1 week ago