Docsity

INFS 614 Homework Assignment 5 Part I - Attribute Closure and Candidate Key Computation - , Assignments of Introduction to Database Management Systems

Toggle sidebar
bg1
INFS 614 – Prof. Jessica Lin, George Mason University
Homework Assignment 5 Part I (due 12/2 in class)
Note 1: You will only get credit if you show
your work.
Note 2: Part II , which will be given next
week, is also due on the same day. So plan your
time wisely.
Problem 1. Given a relation R with four attributes ABCD and a set of FDs {A B, BC
D, AD C}, compute F+ by
(a) first computing all attribute closures. A+ is completed for you.
Attribute closure
A+ AB
B+
C+
D+
AB+
AC+
AD+
BC+
BD+
CD+
ABC+
ABD+
ACD+
BCD+
ABCD+
(b) adding a to the table entry if (the column) is in (the row)+. The first row is
completed for you.
A B C D A
B
A
C
A
D
B
C
B
D
C
D
AB
C
AB
D
AC
D
BC
D
ABC
D
A
B
C
D
AB
AC
AD
pf2

Partial preview of the text

Download INFS 614 Homework Assignment 5 Part I - Attribute Closure and Candidate Key Computation - and more Assignments Introduction to Database Management Systems in PDF only on Docsity!

INFS 614 – Prof. Jessica Lin, George Mason University

Homework Assignment 5 Part I (due 12/2 in class)

Note 1: You will only get credit if you show

your work.

Note 2: Part II , which will be given next

week, is also due on the same day. So plan your

time wisely.

Problem 1. Given a relation R with four attributes ABCD and a set of FDs {A  B, BC  D, AD  C}, compute F+ by (a) first computing all attribute closures. A+ is completed for you. Attribute closure A+ AB B+ C+ D+ AB+ AC+ AD+ BC+ BD+ CD+ ABC+ ABD+ ACD+ BCD+ ABCD+ (b) adding a  to the table entry if (the column) is in (the row)+. The first row is completed for you. A B C D A B

A

C

A

D

B

C

B

D

C

D

AB

C

AB

D

AC

D

BC

D

ABC

D

A ^ ^ 

B

C

D

AB

AC

AD

BC

BD

CD

ABC

ABD

ACD

BCD

ABC

D

(c) What are the candidate key(s) for R?