CS127 Homework #4: Functional Dependencies and Normalization, Assignments of Database Management Systems (DBMS)

Fall 2009 cs127 homework assignment #4 for a database systems course. The assignment focuses on functional dependencies and normalization, including suggesting candidate keys, normalizing relations to bcnf, and calculating closures and canonical covers. Students are also asked to determine if certain decompositions are dependency preserving and allow lossless joins.

Typology: Assignments

Pre 2010

Uploaded on 02/24/2010

koofers-user-ijl
koofers-user-ijl 🇺🇸

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Fall 2009 CS127 Homework #4 Due October 26, 2009
Problem 1
Suppose you are given a relation R(A, B, C, D). For each of the following sets
of FD’s that hold over R, do the following:
(i) Suggest a candidate key for R.
(ii) Suggest a normalization to BCNF, and whether or not it is Dependency
Preserving.
1.{AB, B C, A D}.
2.{BC A, D A}.
3.{BC, D A, AC D}.
Problem 2
Suppose we have a relation R(A, B, Y, V ) and the set of FD’s F={B
Y, V A Y, Y A V, B Y V}. Note that when calculating closures of in the
problems that follow, you don’t need to include trivial functional dependencies.
(i) Calculate F+.
(ii) Calculate B+.
(iii) Calculate a canonical cover for R.
Problem 3
Given the following relation R(A, B, C, D, E, F ) and the set of FD’s {A
CD, C B E , F A}state whether the following decomp ositions. . .
(i) . . . are Dependency Preserving
(ii) . . . allow Lossless Joins
1.F AC and CB DE.
2.F ACD and C BE.
3.F ACB and C DEF .
Problem 4
Give informal arguments, using the definition of functional dependencies, that
each of Armstrong’s Axioms are true.
1
pf2

Partial preview of the text

Download CS127 Homework #4: Functional Dependencies and Normalization and more Assignments Database Management Systems (DBMS) in PDF only on Docsity!

Fall 2009 CS127 Homework #4 Due October 26, 2009

Problem 1

Suppose you are given a relation R(A, B, C, D). For each of the following sets of FD’s that hold over R, do the following: (i) Suggest a candidate key for R. (ii) Suggest a normalization to BCNF, and whether or not it is Dependency Preserving.

  1. {A → B, B → C, A → D}.
  2. {BC → A, D → A}.
  3. {B → C, D → A, AC → D}.

Problem 2

Suppose we have a relation R(A, B, Y, V ) and the set of FD’s F = {B → Y, V A → Y, Y A → V, BY → V }. Note that when calculating closures of in the problems that follow, you don’t need to include trivial functional dependencies.

(i) Calculate F +. (ii) Calculate B+. (iii) Calculate a canonical cover for R.

Problem 3

Given the following relation R(A, B, C, D, E, F ) and the set of FD’s {A → CD, CB → E, F → A} state whether the following decompositions... (i)... are Dependency Preserving (ii)... allow Lossless Joins

  1. F AC and CBDE.
  2. F ACD and CBE.
  3. F ACB and CDEF.

Problem 4

Give informal arguments, using the definition of functional dependencies, that each of Armstrong’s Axioms are true.

Fall 2009 CS127 Homework #4 Due October 26, 2009

Problem 5

Consider the following proposed rule for functional dependencies: If α → β and γ → β, then α → γ. Prove that this rule is not true by showing a relation R that satisfies α → β, γ → β, α does not imply γ.

Problem 6

Concisely (3 or 4 lines) give an example of when you may want to use a non- normalized database.