Database Assignment 2
Database Assignment 2
1 Solution of Exercise 5
Question 3: Add A → E to F and then determine the closure of {A, B}
under the new set F: New F = {AB → CD, CD → E, BE → A, A → E}.
3. Test BE → A:
• Test E: B + = {B}, A ⊈ B + , so E is not auxiliary.
After completing the reduction algorithm, we obtained the following left-
reduced cover: G = F .
Step 3: Check if the dependency AB → CDE is included in the obtained
left-reduced cover.
Question 2: We find that the dependency AB → CDE is included in the
left-reduced cover, as it was not eliminated during the application of the
reduction algorithm.
3 Solution of Exercise 8
Let F = {ABC → DEF, F EG → A, DE → C} be a set of functional
dependencies on the relational schema R(A, B, C, D, E, F, G).
Question 1: Apply the left-reduction algorithm to F to obtain a left-
reduced cover.
Step 1: Set G := F .
Step 2: For each functional dependency in G, we execute the reduction
algorithm.
2. Test FEG → A:
3. Test DE → C: