[SOLVED] COMP9311-Assignment 2

20.99 $

Programming resource
Digital learning resource
Category:
βœ“ Practical programming resource
βœ“ Suitable for guided study and reference
βœ“ Tutor guidance available when needed

Description

Rate this product

Question 1 Β 

Consider a relation 𝑅(𝐴, 𝐡, 𝐢, 𝐷, 𝐸, 𝐺, 𝐻, 𝐼, 𝐽) and its FD set 𝐹 = {𝐴𝐡 β†’ 𝐢𝐸, 𝐷 β†’ 𝐺𝐻, 𝐸 β†’ 𝐡𝐢𝐷, 𝐢 β†’ 𝐷𝐼, 𝐻 β†’ 𝐺, 𝐸𝐻 β†’ 𝐼}.

  • Check if 𝐢 β†’ 𝐽 ∈ F+. ()
  • List all the candidate keys for 𝑅. ()
  • Find a minimal cover πΉπ‘š for 𝐹. ()
  • Decompose into a set of 3NF relations if it is not in 3NF. Make sure your decomposition is dependency-preserving and lossless-join. Justify your answers. )

Question 2

Consider a relation 𝑅(𝐴, 𝐡, 𝐢, 𝐷, 𝐸, 𝐺, 𝐻, 𝐼, 𝐽) and its FD set 𝐹 = {𝐴𝐡 β†’ 𝐢𝐸, 𝐷 β†’ 𝐺𝐻, 𝐸 β†’ 𝐡𝐢𝐷, 𝐢 β†’ 𝐷𝐼, 𝐻 β†’ 𝐺, 𝐸𝐻 β†’ 𝐼}.

  • How many super keys can be found for R? Compute the total number of super keys and list 5 of them.
  • Determine the highest normal form of 𝑅 with respect to 𝐹. Justify your answer. ()
  • Regarding F, is the decomposition R1 = {𝐴𝐡𝐢𝐷𝐸}, R2 = {𝐸𝐺𝐻}, R3 = {𝐸𝐼𝐽} of 𝑅 dependency-preserving? Please justify your answer. )
  • Regarding F, is the decomposition R1 = {𝐴𝐡𝐢𝐷𝐸}, R2 = {𝐸𝐺𝐻}, R3 = {𝐸𝐼𝐽} of 𝑅 lossless-join? Please justify your answer. )
  • Decompose it into a collection of BCNF relations if it is not in BCNF. Make sure your decomposition is lossless-join and briefly justify your answers. )
Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.