Skip to content Skip to navigation

Connexions

You are here: Home » Content » Exercise 5: Normalize Algorithms

Navigation

Lenses

What is a lens?

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

This content is ...

Affiliated with (What does "Affiliated with" mean?)

This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
  • VOCW

    This module is included inLens: Vietnam OpenCourseWare's Lens
    By: Vietnam OpenCourseWare

    Click the "VOCW" link to see all content affiliated with them.

Recently Viewed

This feature requires Javascript to be enabled.
 

Exercise 5: Normalize Algorithms

Module by: Nguyen Kim Anh. E-mail the author

Exercise 1

Consider the relation schema R(A,B,C,D,E) and the set of functional dependencies F with respect to R. F = { A → B, BC → E, ED → A }

  • List all the candidate keys for R.
  • Is R in third normal form (3NF)?
  • Is R in BCNF?

Exercise 2

Consider the relation schema R = {A, B, C, D, E, F, G, H, I ,J} and the set of functional dependencies F = {AB→C, A→DE, B→F, F→GH, D→IJ}

  • Apply the algorithm specified in the lecture to find one candidate key of R
  • Apply the algorithm specified in lecture to decompose R into 3NF schemas with Dependency Preserving and Lossless Join

Exercise 3

Consider the relation schema R = {A, B, C, D, E} and the set of functional dependencies F = {AB→C, CD→E, DE→B}

  • Apply the algorithm specified in the lecture to find one candidate key of R
  • Apply the algorithm specified in lecture to decompose R into 3NF schemas with Dependency Preserving and Lossless Join

Exercise 4

(Based on exercise 11.30 of textbook Fundamentals of Database Systems)

Consider the relation REFRIG(M, Y, P, MP, C) and the set of functional dependencies F= {M→MP, MY→P,MP→C}

  • Evaluate each of the following set of attributes as a candidate key for REFRIG, giving reasons why it can or cannot be a key: M, MY, MC
  • Based on the above key determination, state whether the relation REFRIG is in 3NF and in BCNF, giving proper reasons
  • Consider the decomposition of REFRIG into D = {R1(M,Y,P), R2(M,MP,C)}.Is this decomposition lossless? Show why?

Content actions

Download module as:

PDF | EPUB (?)

What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

Downloading to a reading device

For detailed instructions on how to download this content's EPUB to your specific device, click the "(?)" link.

| More downloads ...

Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks