This is an individual assignment. **All work must be your own. **
You should not look at any other student's work (in whole or in part, on paper
or on screen), nor allow anyone else to look at yours, during the course of this assignment.

You may email a plain text, MS Word or PDF document to the instructor with subject line "cs4250,hw3" (by 5pm), or turn in a typed hardcopy (typed, during class time on 4/14).

Consider a relation R with attributes ABCDE. You are given the following dependencies E -> CD, B -> D, A -> B.

- Attribute closure of A?
- Attribute closure of B?
- Attribute closure of E?
- Attribute closure of AE?
- Attribute closure of BE?
- Identify which, if any, of the above are candidate keys.

Consider a relation R with attributes ABCDE. You are given the following dependencies CD -> A, CD -> B, CD -> E, E -> D.

- List all (candidate) keys for R.
- Is R in 3NF? Why or why not?
- Is R in BCNF? Why or why not?

- List all (candidate) keys for R.
Consider a relation R with attributes ABCDE. You are given the following dependencies B -> C, AE -> D, C -> E.

- List all (candidate) keys for R.
- Is R in 3NF? Why or why not?
- Is R in BCNF? Why or why not?

- List all (candidate) keys for R.
- Suppose that we have the following three tuples in a legal
instance of a relation schema S with three attributes A, B and C:

*attribute names*| primary_key A B C *tuple 1*| 1 4 1 4 *tuple 2*| 2 8 1 4 *tuple 3*| 3 6 2 5

- For each of the following dependencies, can you infer whether or
*not*it holds over schema S? Why or why not?- A -> C
- C -> A

- A -> C
- Can you identify any functional dependencies that hold over S? If so, please name one.

- For each of the following dependencies, can you infer whether or
- Suppose you are given a relation R(A, B, C, D).
For each of the following sets of FDs, assume they are the only dependencies that
hold for R. Do the following: a) identify the candidate key(s) for R. b) State
whether or not the proposed decomposition of R into smaller relations is a good
decomposition and briefly explain why or why not.
- A -> B, C -> D; decompose into ABC and CD.
- Candidate keys:
- Analysis:
- AB -> C, D -> C, C -> A; decompose into CD and ABC.
- Candidate keys:
- Analysis:
- A -> B, B -> C; decompose into AC and BD.
- Candidate keys:
- Analysis:
- AB -> C, B -> D; decompose into ABC and BD.
- Candidate keys:
- Analysis: