Question

1):- (a)Given F = { a → b, {b, c} → d, {c, d} → e,...

1):- (a)Given F = { a → b, {b, c} → d, {c, d} → e, {a, b} → d }. What is {a}+ (i.e. the closure of a)? Show your steps to achieve the answer for full credit.

(b) Given F = { a → b, b → c, {a, b} → d , {b, c} → a }. What is {b}+ (i.e. the closure of b)? Show your steps to achieve the answer for full credit.
2)(a) given F = { a → b, c → d, b → c, {a, b} → e }. What is {a}+ (i.e. the closure of a)? Show your steps to achieve the answer.


(b) Given R(a, b, c, d, e) with two keys, (a,b) and c, and given the following set of functional dependencies F = { {a, b} → {c, d, e}, c → {a, b, d} }.

Is R in 1NF? Justify your answer.


Is R in 2NF? Justify your answer.


Is R in 3NF? Justify your answer.


0 0
Add a comment Improve this question Transcribed image text
Answer #1

1)a)answer) {a}+={a,b,d}

{a}+={a,b (since a->b)

={a,b,d (since a,b->d)

{a}+={a,b,d}

1)b)answer){b}+={b,c,a,d}

{b}+={b,c since b->c

={b,c,a since {b,c}->a

={b,c,a,d since {a,b}->d

={b,c,a,d}

2)a){a}+={a,b,c,d,e}

{a}+={a,b since a->b

={a,b,e since a,b->e

={a,b,e,c since c->b

={a,b,e,c,d since c->d

={a,b,e,c,d}

2)b)answer)

keys are (a,b) and c

1nf:this is always in 1nf because atomic values present in each cell of relation

2NF: nO partial dependencies exist means part of candidate key should not determine anything.

here part of candidate key not determining anything.so it is in 2NF.

IS R in 3NF?

follow atleast one condition in below.

X->Y then

i)X is super key ii)Y is prime attribute

(a,b)->{c,d,e} here {a,b} is super key so it is in 3nf

c->{a,b,d} here c is super key so it is in 3nf

therefore the given relation R is in 3NF

Add a comment
Know the answer?
Add Answer to:
1):- (a)Given F = { a → b, {b, c} → d, {c, d} → e,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • (30 pts) Given R(a, b, c, d, e) with a key (a,b) and given the following...

    (30 pts) Given R(a, b, c, d, e) with a key (a,b) and given the following set of functional dependencies F = { {a, b} → {c, d, e}, b → {d, e} }. Is R in 1NF? Justify your answer. Is R in 2NF? Justify your answer. Is R in 3NF? Justify your answer.

  • MySQL: Consider the following abstract relational schema: (A, B, C, D, E, F) Now assume the...

    MySQL: Consider the following abstract relational schema: (A, B, C, D, E, F) Now assume the following functional dependencies: A -> B, C, D, E, F C -> B Note: This implies that A is a key. Is this database in 1NF, 2NF, 3NF, or BCNF? Why?

  • Imagine a single poorly-designed table, r(R), with attributes A, B, C, D, E, F, G, H,...

    Imagine a single poorly-designed table, r(R), with attributes A, B, C, D, E, F, G, H, I, J, K, L, M. You’ve looked over the naughty designer’s work and come up with the following logical functional dependencies. A —> {B, D, F}? B —> {G, H, I}? {A, C} —> {E, J, K}? {J, K} —> {L, M} H is a composite attribute group with 3 attributes; H1, H2, H3. H3 is a multivalued attribute. L is a multivalued attribute....

  • Given a schema R (A, B, C, D, E, F)and a set Fof functional dependencies {A...

    Given a schema R (A, B, C, D, E, F)and a set Fof functional dependencies {A →B, A →D, CD →E, CD →F, C →F, C →E, BD →E}, find the closure of the set of functional dependencies ?+

  • Assume that R(A, B, C, D, E, F) has been decomposed into S(A, C, E, F)...

    Assume that R(A, B, C, D, E, F) has been decomposed into S(A, C, E, F) and other relations. If the dependencies for R are: AB rightarrow C, C rightarrow E, E rightarrow D, D rightarrow F, F rightarrow D. (a) Find ALL non-trivial functional dependencies that hold in S (b) Determine the keys and superkeys of S (c) For each one of your functional dependencies from part a) indicate if it is a BCNF violation, a 3NF violation or...

  • Consider the schema R = (A, B, C, D, E) and let the following set F...

    Consider the schema R = (A, B, C, D, E) and let the following set F of functional dependencies holdforR: F = {A -> BC, CD -> E, C -> A, B -> D,} 1) Prove or disprove ADE is in the closure of F. A proof can be made by using inference rules IR1 through IR3. A disproof should be done by showing a relational instance (counter example) that refutes the rule. 2) What are the candidate keys of...

  • Consider a relation R(A,B,C,D,E) with the following functional dependencies: 8. AB C BCD CDE DEA (a) Specify all candidate keys for R. (b) Which of the given functional dependencies are Boyce-Codd No...

    Consider a relation R(A,B,C,D,E) with the following functional dependencies: 8. AB C BCD CDE DEA (a) Specify all candidate keys for R. (b) Which of the given functional dependencies are Boyce-Codd Normal Form (BCNF) violations'? (c) Give a decomposition of R into BCNF based on the given functional dependencies. (d) Give a different decomposition of R into BCNF based on the given functional dependencies. (e) Give a decomposition of R into 3NF based on the given functional dependencies. Consider a...

  • Question 1: Functional Dependencies [7 marks Consider a relation R on attributes (A, B, C, D,...

    Question 1: Functional Dependencies [7 marks Consider a relation R on attributes (A, B, C, D, E, F,G, H) and the following functional dependen- cies. B →G C →D DE →GC → EF DEF → H (a) What is the closure of [F, G, Hy? (b) List all of the candidate keys of R under the dependencies above. (c) List all of the FDs above that are 3NF violations (d) List all of the FDs above that are BCNF violations....

  • Consider the relational schemas given below and the respective sets of functional dependencies va...

    Write the complete proof. Consider the relational schemas given below and the respective sets of functional dependencies valid in the schemas For each one of the relational schemas, determine the highest normal form, which is valid for a schema. Justify your answer If a schema is not in BCNF, then decompose it into a minimum number of schemas so that each one of them is in BCNF. Justify your answers. Justification must include the derivations of minimal keys from the...

  • Consider a relation R(A,B,C,D,E) with the following functional dependencies: 8. AB C BCD CDE DEA (a)...

    Consider a relation R(A,B,C,D,E) with the following functional dependencies: 8. AB C BCD CDE DEA (a) Specify all candidate keys for R. (b) Which of the given functional dependencies are Boyce-Codd Normal Form (BCNF) violations'? (c) Give a decomposition of R into BCNF based on the given functional dependencies. (d) Give a different decomposition of R into BCNF based on the given functional dependencies. (e) Give a decomposition of R into 3NF based on the given functional dependencies.

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT