Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
769 views
in Programming by (101k points)
closed by

Consider the relation R(P, Q, S, T, X, Y, Z, W) with the following functional dependencies.

PQ → X; P → YX; Q → Y; Y → ZW

Consider the decomposition of the relation R into the constituent relations according to the following two decomposition schemes.

D1 : R = [(P, Q, S, T); (P, T, X); (Q, Y); (Y, Z, W)]

D2 : R = [(P, Q, S); (T, X); (Q, Y); (Y, Z, W)]

Which one of the following options is correct?


1.

D1 is a lossy decomposition, but D2 is a lossless decomposition.


2. Both D1 and D2 are lossless decompositions.
3. Both D1 and D2 are lossy decompositions.
4. D1 is a lossless decomposition, but D2 is a lossy decomposition.

1 Answer

0 votes
by (102k points)
selected by
 
Best answer
Correct Answer - Option 4 : D1 is a lossless decomposition, but D2 is a lossy decomposition.

Answer: Option 4

Concept:

Lossless Decomposition:

for a Decomposition of two Relation, R1 and R2 to be lossless 2 condition needs to be satisfied that is

1. R1 ∩ R2 → R1 or R2 i.e. common attributes must be key to either of the relation.

2. attributes of R1 ∪ attributes of R2 ≡ attributes of R

Explanation:

D1 : R = [(P, Q, S, T); (P, T, X); (Q, Y); (Y, Z, W)]

lets first take 2 relations R1(P, Q, S, T )  R2(P, T, X) 

common attributes are PT and PT → TX ( according to augmentation property )

so relation becomes R1(P, Q, S, T, X) R2(Q, Y) 

The common attribute is Q and Q→ Y is key to R2 Hence (P, Q, S, T, X, Y)

 So now relation becomes R1(P, Q, S, T, X, Y) R2(Y, Z, W)

 The common attribute is Y and Y is key to R2.

Hence all attributes get combined into one relation and hence this Decomposition is lossless.

D2 : R = [(P, Q, S); (T, X); (Q, Y); (Y, Z, W)]

If you observe relation (T, X); Its attributes not common to any other relations.

even if we combined all other attributes R1(P, Q, S, Y, Z, W)  R2(T, X) 

still no common attributes Hence this decomposition is lossy

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...