Give an example of an instance of the Transcript relation (with the attributes StudId, CrsCode, Semester, and Grade) and a hash function on the attribute sequence {StudId; Grade} that sends two identical tuples in StudId;Semester(Transcript) into different hash buckets.

What will be an ideal response?


Consider the following two tuples: <111111111; EE101; F1997; A> and <111111111,MAT123,F1997,Bi> Since these tuples have identical projections on the attributes StudId,Semester, they become one in the projected relation
StudId;Semester(Transcript)
Consider now the following hash function on StudId,Grade:
f (t) = (t:StudId + (t:Grade - 'A')) mod 1000
The first tuple will then be sent to the bucket 111111111 mod 1000 = 111 and the second to 111111112 mod 1000 = 112.

Computer Science & Information Technology

You might also like to view...

Answer the following statements true (T) or false (F)

1) PictureBoxes typically display images. 2) Visual C# files use the file extension .csharp. 3) A Form’s background color is set using the BackColor property. 4) You can add a control to a Form by double clicking its control icon in the Toolbox. 5) The Form, Label and PictureBox have identical properties.

Computer Science & Information Technology

It is possible to combine several video clips and add still photographs to a storyboard in Windows Movie Maker

Indicate whether the statement is true or false

Computer Science & Information Technology

A 10-pound solid iron ball is dropped from 5 feet above the surface of a lake that is 50 feet deep. The time for the ball to disappear is measured with a stopwatch. This measurement is made under two different conditions as follows:

Condition 1: It is noon on a bright sunny day with the wind from the north at 4 mph. The temperature of the lake at the surface is 40 degrees Fahrenheit. The lake is crystal clear with visibility downward 25 feet. Condition 2: It is 2:00 PM on a cloudy day with the wind from the south at 10 mph. The temperature of the lake at the surface is 20 degrees Fahrenheit. Visibility downward is less than a few inches below the surface. Under which condition will the ball take the longest time to disappear? Explain.

Computer Science & Information Technology

You format cell content by changing the ____ of the text by applying styles.

A. font B. size C. color D. All of the above

Computer Science & Information Technology