Solved Problems
Problem
Given:
Tasks:
- Find A⁺
- Prove whether A → E
- Check if A is a candidate key
Solution:
Step 1: Start closure
Step 2: Apply A → BC
Step 3: Apply B → D
Step 4: Apply CD → E
Step 5: Apply E → A (already included)
Final:
Answers:
- A → E ✅ (since E ∈ A⁺)
- A is a candidate key ✅
Problem
Given:
Tasks:
- Find (AB)⁺
- Check if AB → E
- Find all attributes determined by AB
Solution:
Start:
Apply:
- AB → C → {A, B, C}
- C → D → {A, B, C, D}
- D → E → {A, B, C, D, E}
- E → B (already present)
Final:
Answers:
- AB → E ✅
- AB determines all attributes
Problem 3
Given:
❓ Tasks:
- Find A⁺
- Is AC → F valid?
- Is A → D valid?
✅ Solution:
Step 1: A⁺
Step 2: Use AC → D
Since A⁺ contains C:
Now:
Step 3: D → E → F
✔ Answers:
- A⁺ = all attributes
- AC → F ✅
- A → D ✅ (important inference!)
Problem
Given:
Tasks:
Check if:
❌ Solution:
- No rule allows combining unrelated FDs like this directly
✔ Answer:
Problem
Given:
Tasks:
- Find A⁺
- Find candidate keys
Solution:
Step 1: A⁺
✔ A⁺:
✔ Candidate Key:
Problem
Given:
Tasks:
- Find (AB)⁺
- Find (BC)⁺
- Identify candidate keys
Solution:
(AB)⁺:
(BC)⁺:
✔ Candidate Keys:
Problem
Given:
Tasks:
- Find A⁺
- Prove A → G
- Check if A → E
Solution:
Cannot apply:
✔ Final:
✔ Answers:
- A → G ❌
- A → E ❌
Problem
Given:
Tasks:
- Find A⁺
- Is A → E valid?
Comments
Post a Comment