CS FundamentalsVery hardProduct company interview · GATE level
The set F = { A → B, BC → D, AC → D, D → E, CE → A } holds on R(A, B, C, D, E). Which of the following dependencies is redundant, i.e. can be removed from F without changing its closure?
- A. AC → D
- B. BC → D
- C. D → E
- D. CE → A
Correct answer: A. AC → D
An FD X → Y is redundant if Y is in the closure of X computed from the other FDs. Without AC → D: {A, C}+ gains B (A → B) and then D (BC → D), so AC → D is still implied and can be dropped. Without BC → D: {B, C}+ = {B, C} only. Without D → E: {D}+ = {D}. Without CE → A: {C, E}+ = {C, E}. So only AC → D is redundant; the others each carry information nothing else supplies.
More DBMS and SQL questions
- R(A, B, C, D) with functional dependencies A → B, B → C and C → D is decomposed into R1(A, B), R2(B, C) and R3(A, D). Which statement…
- R(A, B, C, D, E) has functional dependencies A → B, BC → D, D → AE and E → C. How many of the following dependencies are logically…
- A relation r(A, B, C, D) currently holds exactly these five tuples: (1, 2, 3, 4) (1, 2, 5, 6) (2, 2, 3, 4) (3, 4, 5, 4) (3, 4, 3, 6) How…
- Consider the schedule R2(A); R3(B); W1(A); R2(C); W1(C); W2(B); R4(A); W4(C). Which statement is correct?
- Consider the schedule R1(A); W2(A); W2(B); W1(A); W1(B); W3(A); W3(B). Which statement is correct?
- T1 executes R1(A); W1(A); R1(B) and T2 executes R2(B); W2(B); R2(A). Of the 20 possible interleavings of these two transactions (including…