Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

1. Give brief and clear answers to the following:

(a) Explain how non-volatile RAM can help speed up disk writes

(b) Explain the main advantage(s) and disadvantage(s) of keeping the data ?le sorted.

(c) 17.28 parts (a) and (b)

(d) 18.3

(e) 18.7

(f) 18.8

(g) Since indexes speed up searches, why wouldn't the DBMS automatically create an index for every column of a table?

(h) Explain the main disadvantage(s) of static hashing.

(i) Brie?y describe one situation in which ordered ?les may be better than static hashing.

(j) Explain the main advantage B-trees have over a multilevel index of the type shown in Figure 18.6.

2. In this problem, you have to calculate the number of disk accesses required in the worst case for di?erent index organizations. The data base keeps track of di?erent pieces of information for a student: name (25 bytes), idnumber (15 byes), gpa (10 bytes) and address (90 bytes). There are ?ve hundred thousand students (it is a large university!). Each block can store 2000 bytes of information. A block pointer requires 10 bytes. The data ?le is sorted by the primary key, the student name. The idnumber is a secondary key. How many disk accesses are required if:

(a) access is through student name and there is a primary index on student name (similar to the index in Figure 18.1). You can assume that the index is small enough to be kept in RAM, and is already in RAM.

(b) access is through student name and there is a primary index on student name (similar to the index in Figure 18.1) which also has to be kept on disk.

(c) access is through student name and there is no index

(d) access is through student id and there is a secondary index on the student id (similar to the index in Figure 18.4) which also has to be kept on disk.

(e) access is through student name and there is a 2-level primary index on student name (similar to the index in Figure 18.6) in which the second level of the index is in memory, while the ?rst level of the index is on disk. This is somewhat di?erent from the way the Figure 18.6 index is organized in the sense that we have only 2 levels; the second level already in RAM, and the ?rst level on the disk.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91731394

Have any Question?


Related Questions in Computer Engineering

Research report assignment -background - you are working

RESEARCH REPORT ASSIGNMENT - BACKGROUND - You are working for a software development company in Brisbane which is considering establishing several teams which may be located in countries as diverse as China, Brazil, and ...

Please help me with the assignment and describe your

Please help me with the assignment and describe your answer. Consider the following random sample of data: -1, 3, -2, -9, -3, 3, -5, -3, 8, 86 a) What is the mean of the sample data? Round your response to at least 2 dec ...

Question suppose you are comparing two algorithms a and b

Question : Suppose you are comparing two algorithms A and B that run on the same machine. The running time of A is 10n log2 n and the running time of B is 50n (assume these are exact running time). What is the smallest v ...

There has been a substantial interest in predictability of

There has been a substantial interest in predictability of stock return in recent years. For example, DeBondt and Thaler (1985, 1987) report that long-term past losers (three- to five-years) outperform long-term past win ...

Suppose a consumer is trying to make a choice over the

Suppose a consumer is trying to make a choice over the consumption of two goods: x and y. Px = 3, Py = 4 and the income is equal to 50. Assume that the government distributes some stamps that are good to buy 5 units of g ...

Question read a sentence with period at the end display the

Question: Read a sentence with period at the end. Display the sentence so that all vowels are in uppercase sample I/O Enter a sentence: proud is self-respect. Output: prOUd Is sElf-rEspEct. I have written a c++ code for ...

List of fruitspapayakiwifruitzapote List of fruits: papaya kiwifruit zapote blanco

List of fruits: papaya kiwifruit zapote blanco huckleberry banana fig lime xigua vanilla yiessas tamarind umkolo quince apple imbu elderberry juneberry mango strawberry nectarine date cherry orange watermelon grape raspb ...

Create a menu form you will create a menu form using form

Create a Menu Form You will create a menu form using Form Design view. Add three command buttons for the three forms in the database, and then add three command buttons for the three reports in the database. a. Open the ...

Suppose there is a relation ra b c with a b-tree index with

Suppose there is a relation R(A, B, C) with a B+-tree index with search keys (A, B). 1. What is the worst-case cost of finding records satisfying 10 2. What is the worst-case cost of finding records satisfying 10 3. Unde ...

Question suppose the streets in a city are laid out in a

Question : Suppose the streets in a city are laid out in a perfect grid with avenues A through Z running parallel east-west, and First through Tenth Streets running parallel north-south. Give a count of the number of sho ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As