Question

In: Computer Science

Let the schema R = (A,B,C) and the set F = {A → B,C → B}...

Let the schema R = (A,B,C) and the set F = {A → B,C → B} of FDs be given. Is R in 3NF? Why or why not?

Solutions

Expert Solution

Solution :

From the given functional dependencies, we can say that candidate key of R is AC. As the closure of AC is {A,B,C}, i.e all attributes of R.
Given relation R is not in 3NF as it is not in 2NF because of two partial dependencies A->B and C->B.

Checking for 2NF :

A->B and C->B both are partial dependencies. Hence the relation R is not in 2NF.
Converting to 2NF : To convert R in 2NF decompose relation R into two relations as given below :
R1(A,B) with functional dependency A->B and candidate key A.
R2(C,B) with functional dependency C->B and candidate key C.
Both relations R1 and R2 are in 2NF.

Checking for 3NF :
Decomposed relations dont have transitive dependency. Hence both are in 3NF.


Hence R is not in 3NF but by decomposing it as given above R can be converted to 3NF.
if you have any doubts then you can ask in comment section if you find the solution helpful then upvote the answer. Thank you.


Related Solutions

Let A ⊆ R, let f : A → R be a function, and let c...
Let A ⊆ R, let f : A → R be a function, and let c be a limit point of A. Suppose that a student copied down the following definition of the limit of f at c: “we say that limx→c f(x) = L provided that, for all ε > 0, there exists a δ ≥ 0 such that if 0 < |x − c| < δ and x ∈ A, then |f(x) − L| < ε”. What was...
Let f : [a, b] → R be a monotone function. Show that the discontinuity set...
Let f : [a, b] → R be a monotone function. Show that the discontinuity set Disc(f) is countable.
Let a < c < b, and let f be defined on [a,b]. Show that f...
Let a < c < b, and let f be defined on [a,b]. Show that f ∈ R[a,b] if and only if f ∈ R[a, c] and f ∈ R[c, b]. Moreover, Integral a,b f = integral a,c f + integral c,b f .
Consider the relation R= {A, B, C, D, E, F, G, H} and the set of...
Consider the relation R= {A, B, C, D, E, F, G, H} and the set of functional dependencies: FD= {{B}—> {A}, {G}—> {D, H}, {C, H}—> {E}, {B, D}—> {F}, {D}—>{C}, {C}—> {G}} 1) Draw FD using the diagrammatic notation. 2) What are all candidate keys for R? 3) If delete {C}—>{G} and change {C, H}—> {E} to {C, H}—> {E, G}, what are all candidate keys for R
5). Let f : [a,b] to R be bounded and f(x) > a > 0, for...
5). Let f : [a,b] to R be bounded and f(x) > a > 0, for all x in [a,b]. Show that if f is Riemann integrable on [a,b] then 1/f : [a,b] to R, (1/f) (x) = 1/f(x) is also Riemann integrable on [a,b].
c) Let R be any ring and let ??(?) be the set of all n by...
c) Let R be any ring and let ??(?) be the set of all n by n matrices. Show that ??(?) is a ring with identity under standard rules for adding and multiplying matrices. Under what conditions is ??(?) commutative?
let R be a ring; X a non-empty set and (F(X, R), +, *) the ring...
let R be a ring; X a non-empty set and (F(X, R), +, *) the ring of the functions from X to R. Show directly the associativity of the multiplication of F(X, R). Assume that R is unital and commutative. show that F(X, R) is also unital and commutative.
Integral Let f:[a,b]→R and g:[a,b]→R be two bounded functions. Suppose f≤g on [a,b]. Use the information...
Integral Let f:[a,b]→R and g:[a,b]→R be two bounded functions. Suppose f≤g on [a,b]. Use the information to prove thatL(f)≤L(g)andU(f)≤U(g). Information: g : [0, 1] —> R be defined by if x=0, g(x)=1; if x=m/n (m and n are positive integer with no common factor), g(x)=1/n; if x doesn't belong to rational number, g(x)=0 g is discontinuous at every rational number in[0,1]. g is Riemann integrable on [0,1] based on the fact that Suppose h:[a,b]→R is continuous everywhere except at a...
Define the greatest lower bound for a set A ⊂ R. Let A and B be...
Define the greatest lower bound for a set A ⊂ R. Let A and B be two non-empty subsets of R which are bounded below. Show glb(A ∪ B) = min{glb(A), glb(B)}.
Let R be the relation on Z+× Z+ such that (a, b) R (c, d) if...
Let R be the relation on Z+× Z+ such that (a, b) R (c, d) if and only if ad=bc. (a) Show that R is an equivalence relation. (b) What is the equivalence class of (1,2)? List out at least five elements of the equivalence class. (c) Give an interpretation of the equivalence classes for R. [Here, an interpretation is a description of the equivalence classes that is more meaningful than a mere repetition of the definition of R. Hint:...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT