[SOLVED] CIS4301 Database Management Systems I Homework4

120.00 $

Category: Tags: , , , , , , ,
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

docx file icon CIS_4301_Spring_2023_Homework4-iaeomb.docx (39.5 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (2 votes)

Armstrong’s Axioms)                                    [16 points]

[6 points] Let R(A,B,C,D,E) be a relation schema, and let F={ABC,CDE,BD,EA} be a set of functional dependencies (FDs). Show for each of the following FDs whether they can be logically implied from F by using Armstrong’s axioms and their derived inference rules. Show each step.

  • [3 points] BCAE
  • [3 points] AE
  • [5 points] Let R(A,B,C,D,E,F) be a relation schema, and let F ={ABE,AC F,BEF D} be a set of functional dependencies (FDs). Which of the following attribute sets is a candidate key? Explain your answer by using Armstrong’s axioms and their derived inference rules.
    • BEF
    • ABC
    • DE
  • [5 points] Let R(A,B,C,D,E,F) be a relation schema, and let F = {AB C,BC DE,AC E,DE F} be a set of functional dependencies (FDs). Infer at least five new FDs by using Armstrong’s axioms and their derived inference rules. All rules in your answer should be different.

2

Closure)                                                          [37 points]

[10 points] Consider the relation schema R(A,B,C,D,E,F) with the functional dependencies F =

{AB,ABC,BCDE,ACE,DEF} and G={ABC,BCDE,CE,DBCE,E

D}.

  • [5 points] Determine if the two sets F and G are equivalent or not. Explain your answer in detail.
  • [5 points] Determine if AB is a candidate key of R with respect to F.
  • [6 points] Consider the relation schema R(A,B,C,D,E) with the functional dependencies F={AC,BD,BDE,C E}. Which of the following sets of attributes functionally determine CD? Show each step.
    • BC
    • BD
    • AE
  • [6 points] Consider the relation schema R(A,B,C,D) with the functional dependencies F ={ABC,CD,BC}. We state that the FD CB cannot be logically implied by the given F.
    • [3 points] Prove why CB cannot be logically implied.
    • [3 points] Provide an example for your answer. (For the example, you can provide a table that has tuples with some values in it.)
  • [6 points] Let R(A,B,C,D,E,F) be a relation schema, and let F={ABD,CEF,ACDE,BDCF} be a set of functional dependencies (FDs). Which of the following attribute sets is a candidate key?
    • BD
    • AC
    • AB
  • [4 points] Consider the relation schema R(A,B,C,D,E,F) with the functional dependencies F={AB,CDE,BD,CA}. By using the algorithm for calculating attribute closures provided in the lecture slides, calculate the closure of the following attribute set. Show each step.
  • CE
  • [5 points] Let R(A,B,C) be a relation schema, and let F={AB} be a set of functional dependencies (FDs). Write down all the functional dependencies of the closure F+ of F and count them. Use the exponential algorithm from the lecture for calculating the closure of functional dependencies.

3

Minimal Cover)                                              [32 points]

[10 points] Find a minimal cover for the relation schema R(A,B,C,D,E,F) with the set F ={AB,ABC,BCDE,ACE,DEF} of functional dependencies. Show each step.

  • [10 points] Find a minimal cover in a standard form for the relation schema R(A,B,C,D,E) with the set F ={ABC,BCDE,C E,ADBCE,E D} of functional dependencies. Show each step.
  • [12 points] Find a minimal cover for the relation schema R(A,B,C,D,E,F,G) with the set F={ABC,CA,BCD,ACDB,DEG,BEC,CGBD,CEG} of functional dependencies.

Show each step.

4

Candidate Keys)                                             [15 points]

[9 points] Consider the relation schema R(A,B,C,D,E,F,G,H) with the set F = {B CE,E FH,BCH,CDA,ADG,H BCE,H G} of functional dependencies. List all candidate keys of R in a systematic manner (do not use Armstrong’s axioms) and explain how you determine them. Show each step.

(b) [6 points] Consider the relation schema R(A,B,C,D,E,F) with the set F ={ABC,CDF,FA,CED} of functional dependencies. List all candidate keys of R in a systematic manner (do not use Armstrong’s axioms) and explain how you determine them. Show each step.

5

  • CIS_4301_Spring_2023_Homework4-iaeomb.docx