[SOLVED] CIS560- Homework 5

30.99 $

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

Description

5/5 - (1 vote)

Part 1

For the first three questions, use the below relation and known functional dependencies. Relation

Route(ArrivalTime, DepartureTime, Location, Bus) Functional Dependencies

{DepartureTime, Location} -+ {Bus} {ArrivalTime} {DepartureTime} {Bus, ArrivalTime} —> {Location}

Question 1

 – Compute the closure of all sets of attributes.

Question 2

– Using the closures from Question 1, identify the keys for the relation Route. Remember we want minimal keys, not just any superkey.

Question 3

 – Using the closures from Question 1, list all non-trivial functional dependencies for the relation Route.

Part 2

For the below relation and known dependencies to answer Questions 4 and 5.

Relation

Shuttle(DepartureTime, Route, Driver, Bus, Capacity)

Functional Dependencies

{Bus, DepartureTime} {Driver} {Bus} -+ {Capacity}

{Route, DepartureTime} -+ {Bus}

Question 4

For each of the three provided functional dependencies above, X —> Y, compute X. Once you have the closures computed, identify the key(s) for the relation Shuttle.

Question 5

 – From Question 4, we can see that Bus —> Capacity is a violation of Boyce-Codd Normal Form (BCNF). Decompose the relation Shuttle into BCNF relations, starting with this dependency violation.

  • Show each iteration in your work, and make clear which relations are your resulting BCNF relations.
  • Identify the key in each of the resulting BCNF relations.
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.