(DATABASE QUESTION)
Which of the following is in 3NF?
(A) R(VWXYZ) FD's: V → WX; Z → VY; W → Z
(B) R(VWXYZ) FD's: V → WZ; X → V; W → XY; Z → Y
(C) R(VWXYZ) FD's: XY → Z; W → XY; Z → VW; X → V
(D) R(VWXY) FD's: XY → W; XY → V; V → X
Option (A) R(VWXYZ) FD's: V → WX; Z → VY; W → Z is in 3NF
A relation schema R is in 3NF if, whenever a FD X -> A holds
in R, either
(a) X is a superkey of R, or
(b) A is a prime attribute of R.
A Superkey is the union of all candidate keys. All members of superkey are prime attributes
To find 3NF:
Now consider R(VWXYZ) FD's: V → WX; Z → VY; W → Z
1. Find the closure of RHS:
V+ = {V, W, X, Y, Z}
Z+ = {V, W, X, Y, Z}
W+ = {V, W, X, Y, Z}
2. Determine the candidate keys:
candidate keys = {V,Z,W}
superkey = VZW
prime attributes = {V, Z, W}
3. For all FD's, check either RHS is a subset of superkey or LHS is a prime attribute:
Since all the FD's satisfies the 3NF condition, the relation is in 3NF
Alternatively for all other options, some FD's does not satisfy the 3NF condition
(DATABASE QUESTION) Which of the following is in 3NF? (A) R(VWXYZ) FD's: V → WX; Z...
Are the following relations in BCNF? 3NF? (if R is not in BCNF, decompose it to BCNF; if R is not in 3NF, decompose it to 3NF) R(X,Y, Z,T,V): XY->Z, Y->T, Z->V R(X,Y,Z,T): X->Y, Y->Z, Z->T R(A,B,C): AB->C, B->A, C->B R(ABCD): BD->C, AB->D, AC->B, BD->A R(ABCD): AD->C, CD->B, BD->C R(ABCD): A->C, B->A, A->D, AD->C R(ABCD): A->D, C->A, D->B, AC->B R(XYZT): XYT->Z, ZT->X, XZ->Y, XZ->T R(XYZT): XY->Z, XYT->Z, XYZ->T, XZ->T R(XYZT): YT->Z, XY->T, XZ->Y, YT->X R(XYZT): YZ->X, XT->Z, ZT->Y, YT->Z
4. (40 points) Identify the following relations that are in Third normal form (3NF)? If it is in 3NF, is it in BCNF? You must explain your answer to receive points. Also, for each question, pick one FD not in BCNF and decompose R into tables if it is not in BCNF (1) R(ABCD) FD's: ACD B;AC D D C;ACB (2) R(ABCD) FD's: AB C; ABD C;ABC D;ACD (3) R(ABCD) FD's: AB; B A;A D D B (4) R(ABCD) FD's:...
4. (40 points) Identify the following relations that are in Third normal form (3NF)? If it is in 3NF, is it in BCNF? You must explain your answer to receive points. Also, for each question, pick one FD not in BCNF and decompose R into tables if it is not in BCNF. (2) R(ABCD) FD's: AB-»C; ABD->C; ABC-> D; AC-ID (4) R(ABCD) FD's: C- B;A->B; CD -»A; BCD (5) R(ABCD) FD's: AD C;D-A;A-C;ABC A D, 4. (40 points) Identify the...
4. (4 points) Prove the truth or falsity of the following statements. To prove a statement true, give a formal argument (in cases involving implications among FD's, use Armstrong's Axiom System). To prove falsity, give a counterexample. 1. {A + B, DB → C} F{A+C} 2. {X+W, WZ+Y} F{XZ → WY} 3. {A D, B7C, F + B, CD + E|| F{AF → E} 4. Suppose R is a relation scheme and F a set of functional dependencies applicable to...
4.let U= {q,r,s,t,u,v,w,x,y,z}; A= {q,s,u,w,y};and C={v,w,x,y,z,}; list the members of the indicated set , using set braces A'u B A.{Q,R,S,T,V,X,Y,Z} B.{S,U,W} C.{R,S,T,U,V,W,X,Z} D.{Q,S,T,U,V,W,X,Y}
Question 2 Let U = {q, r, s, t, u, v, w, x, y, z} C = {v, w, x, y, z}. List the elements in the set. CU
Use Karnaugh maps to simplify the following Boolean functions ex minterms 1. a) fx,y,z)-ml +m2+ m5+m6+ m7 xy b) f(w, x y,z) -2(0,2,4,5,6,7,12,13) c) f(w, x, y, z) Σ(3, 4, 5, 6, 7, 9, 12, 13, 14, 15) wx
Question 3 In the figure &, - 3.57 V, z = 1.48 V, R; -4.66, R2 - 2.40 2. R3 - 3.13 , and both batteries are ideal. What is the rate at which energy is dissipated in (a) R, (b) Ry, and (c) Ry? What is the power of (d) battery 1 and (e) battery 2? w w R R (a) Number Units (b) Number Units > > (c) Number Units (d) Number Units (e) Number Units
Which of the following defines an inner product on R^3 <(x,y,z),(a,b,c)>= xa+2xb+3xc <(x,y,z),(a,b,c)>= xy+za+bc <(x,y,z),(a,b,c)>= xa-yb+zC <(x,y,z),(a,b,c)>= (x+z)(a+c)+(2x+2y)(2a+2b)+(3x+z)(3a+c)
This is for a computer database class, thank you! Prove or disprove the following inference rules for functional dependencies. A proof can be made either by a proof argument or by using inference rules IR1 through IR3. A disproof should be done by demonstrating a relation instance that satisfies the conditions and functional dependencies in the left hand side of the inference rule but do not satisfy the conditions or dependencies in the right hand side. {W rightarrow Y, X...