What is the highest normal form of the universal schema

Assignment Help Database Management System
Reference no: EM131028100

Questions:

(Please submit your final exam in MS word and name your file with your name!)

A. Please answer the following questions as detailed as possible:

a. For a B-tree of order 4 consisting of 3 levels, what is the maximum amount of records which may be stored?

b. For a B+-tree of order 3 consisting of 3 levels for the index part, what is the maximum amount of records which may be stored assuming that a data block for data records can hold 100 of them?

c. A PARTS file with Part# as hash key includes records with the following Part# values: 2369, 3760, 4692, 4871, 5659, 1821, 1074, 7115, 1620, 2428, 3943, 4750, 6975, 4981, 9208. The file use eight buckets, number from 0 to 7. Each bucket is one disk block and holds two records. Load these records into the file in the given order, using the hashing function h(K) = K mod 8. Calculate the average number of block accesses for a random retrieval on Part#.

B. Given universal schema R(A,B,C,D,E,F,G,H,I} and a set of functional dependencies as follows:

AB → CD
A → E
B → FH
C → G
D → B
G → C
H → I

a. What is the key for the universal schema R?

b. What is the highest normal form of the universal schema R? Please explain.

c. If the universal schema R is not in 3NF (the third normal form), please make lossless join decomposition of schema R into a set of 3NF schemas with the property of functional dependency preservation.

d. List all the keys (include candidate keys) in all the schemas (tables) achieved in c.

e. List all the foreign keys in each schema (table) if any.

f. Prove that the decomposition in c. is lossless join decomposition.

g. Is the decomposition you have created a BCNF decomposition? (That is, is each of the schemas (tables) achieved in c. in BCNF?

C. Assume one file has r =106 records. Each record takes R = 100 bytes, of which 10 bytes are for the key of the record. Suppose the key values range from 1 through 1,000,000, inclusive. Assume the block size B is 1000 bytes for all files, and that an address (block pointer, tree node pointer, or data record pointer) takes 10 bytes.

1. Sequential file:
a. What is the blocking factor bfr for the file?
b. How many data blocks b are needed to hold records?
c. How many data blocks accesses on the average are needed to fetch a record by using linear search?
d. How many data blocks accesses are needed to fetch a record by using binary search?

2. Single Level Index:
e. What is the blocking factor bfri for the index?
f. How many index blocks bi are needed to build the single level primary index?
g. How many block accesses on the average are needed to fetch a record by using single level primary index and by doing linear search?
h. What is the least number of block accesses to fetch a record by using single level primary index?

3. Multilevel Index:
i. What is the fan-out value if multi-level index is used?
j. How many levels are there so that top level index fits on a single block in multilevel index?
k. How many block accesses are needed to fetch a record by using multilevel index?
l. What is the key value of the 4th index record on the top level, assuming each index record points to the record with the highest key value in a block of the next level down?

4. B+-tree Structure:
m. What is the order P of the B+-tree if B+-tree access structure on the key is constructed?
n. What is the number of leaf-level blocks needed if blocks are approximately 69% full (round up for convenience)?
o. What is the number of levels needed if internal nodes also 69% full (round up for convenience)?
p. What is the total number of blocks required by the B+-tree?
q. What is the number of block accesses needed to search for and retrieve a record from the file -- given its key value by using B+-tree?

D. Given the relational tables as follows:

SHIP(Shipname, Captain)
CREW(Crewname, Hometown, Shipname)
GROWS(Hometown, Flower)
ALLERGIES(Crewname, Flower)

Please use SQL statement to construct the following queries:
(You are not supposed to use any aggregation functions such as count(), sum(), etc.; you are assumed that you do not know the data values of Shipname, Captain, Crewname, Hometown, Flower, etc. in the database table when you query the database table).

a. For each crew, if the crew is allergic to no flowers that grow on his/her hometown, then list the crew's name.

b. For each crew, if the crew is allergic to all flowers that grow on his/her hometown, then list the crew's name.

c. For each crew, if the crew is allergic only to the flowers that grow on their hometown, then list the crew's name.

d. For each crew, if the crew is allergic to exactly the same flowers that his/her captain is allergic to, then list the crew's name.

E. Explain how functional dependencies can be used to indicate that:

a.) A one-to-one relationship set exists between entity sets advisor and student.

b.) A one-to-many relationship set exists between entity sets advisor and student.

F. Given the relational schema R, where X and Y are attribute sets such as: X ⊆ R and Y ⊆ R, please elaborate the meaning of the functional dependencies such as: Φ → Y and X → Φ.

Reference no: EM131028100

Questions Cloud

Schedule variance for the project : Note the discrepancy of earned value figures when using the 50-50 Rule and 0-100 Rule. Why is there a discrepancy? Which Rule should we use? Explain your rationale. Using the 50-50 Rule earned value computation, what is schedule variance for the pr..
Find current gain - voltage gain and power gain of amplifier : The load is a 5- Ω resistance. Find the current gain, voltage gain, and power gain of the amplifier. If the power supply has a voltage of 12V and supplies an average current of 2A, find the power dissipated in the amplifier and the efficiency.
Determine the following probabilities : Four (standard) dice (cubes with 1,2,3,4,5,6 respectively,dots on their six faces) each of a different color are tossed each landing with one of its faces up, thereby showing a number of dots. Determine the following probabilities.
Decided to get a running start on an upcoming sale : Our new process manager decided to get a running start on an upcoming sale and advised the planner to start the project with 90% of the details, increase the batch size, and add more people in order to finish the process as soon as possible. From cla..
What is the highest normal form of the universal schema : Calculate the average number of block accesses for a random retrieval - what is the key for the universal schema R and what is the highest normal form of the universal schema R? Please explain.
Determine the number of its n- combinations : consider the multiset {n times a, n times b, 1,2,3...,n+1} of size 3n+1. Determine the number of its n- combinations.
Identify the factors that affect toxicity in a population : Identify the factors that affect toxicity in a population. Pick three of the factors and provide a brief discussion on how that factor can affect the health of a population.
Describe the websites applications or multimedia resources : Write a 350- to 700-word summary discussing the following based on your research: Describe the websites, applications, or multimedia resources. How do healthcare providers use these resources to enhance their products and services
Daily dessert plan that would to maximize total taste index : Maggie Stewart loves desserts but due to weight and cholesterol concerns, she has decided that she must plan her desserts carefully. There are two possible desserts she is considering: snack bars and ice cream. Write the LP formulation to determine M..

Reviews

Write a Review

Database Management System Questions & Answers

  Koszyk manufacturing corporation

Koszyk Manufacturing Corporation has a traditional costing system in which it applies manufacturing overhead to its products using a predetermined overhead rate based on direct labor-hours

  Create a flowchart and pseudocode using control breaks

The system should store the current inventory levels for different raw materials in a file.

  Design supermarket management system

Design supermarket management system with it's problem definition

  Explain a structured data type that can hold multiple values

The array was the first example of a structured data type that can hold multiple values. The structure is the second example

  Create a class diagram

Create a use case diagram and use case descriptions for each use case scenario in your use case diagram (minimum of 3).

  Create an e-r diagram and logical schema

Computerize the entire business, just the processes that Bob's Home Repairs finds most bothersome. You don't need to create forms for data entry - discuss why these differences exist and what, if any, solution you would recommend.

  Create the database in sql server

Review your diagram for the database, making sure that the design is complete and normalized. Create the database in SQL Server

  Structure of a database

Graphs and trees provide you with ways to visualize data sets, and the opportunity to do analysis on the data (e.g., shortest path). Knowing the structure of a database enables you to choose a proper algorithm for searching for data within a datab..

  Write a second select statement that uses

Write a SELECT statement that returns three columns: EmailAddress, OrderID, and the order total for each customer.

  What are the different types of join operations

What is meant by Proactive, Retroactive and Simultaneous Update. What are the different types of JOIN operations?

  Suppose a movie database in which data is recorded about

suppose a movie database in which data is recorded about the movie industry. the data needs are summarized as follows

  Create visual logic flow chart from the following pseudocode

Create visual logic flow chart from the following pseudocode.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd