DOC PREVIEW
SJSU CS 157A - Decomposition

This preview shows page 1-2-3-4-26-27-28-53-54-55-56 out of 56 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 56 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 56 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 56 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 56 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 56 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 56 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 56 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 56 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 56 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 56 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 56 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 56 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

LOSSLESS DECOMPOSITIONPowerPoint PresentationSlide 3Slide 4Slide 5Slide 6Slide 7Slide 8Slide 9Slide 10Slide 11Slide 12Slide 13Slide 14Slide 15Slide 16Slide 17Slide 18Slide 19Slide 20Slide 21Slide 22Slide 23Slide 24Slide 25Slide 26Slide 27Slide 28Slide 29Definition of DecompositionExample of DecompositionSlide 32Slide 33Slide 34Slide 35Slide 36Slide 37Slide 38Slide 39Slide 40Slide 41Slide 42Slide 43Slide 44Slide 45Slide 46Slide 47Slide 48Definition of Lossless DecompotionExampleSlide 51Slide 52Slide 53Slide 54Slide 55Slide 56LOSSLESS DECOMPOSITIONProf. Sin-Min LeeDepartment of Computer ScienceSan Jose State UniversityDefinition of DecompositionA decomposition of a relation R is a set of relations { R1, R2,…, Rn } such that each Ri is a subset of R and the union of all of the Ri is RExample of DecompositionFrom R( A B C ) we can have two subsets as:R1( A C ) and R2( B C )if we union R1 and R2 we will get RR = R1 U R2Definition of Lossless DecompotionA decomposition {R1, R2,…, Rn} of a relation R is called a lossless decomposition for R if the natural join of R1, R2,…, Rn produces exactly the relation R.ExampleR( A1, A2, A3, A4, A5 )R1( A1, A2, A3, A5 ); R2( A1, A3, A4 ); R3( A4, A5 ) are subsets of R.We have FD1: A1 --> A3 A5 FD2: A2 A3 --> A2 FD3: A5 --> A1 A4 FD4: A3 A4 --> A2A1 A2 A3 A4 A5a(1) a(2) a(3) b(1,4) a(5)a(1) b(2,2) a(3) a(4) b(2,5)b(3,1) b(3,2) b(3,3) a(4) a(5)By FD1: A1 --> A3 A5we have a new result tableA1 A2 A3 A4 A5a(1) a(2) a(3) b(1,4) a(5)a(1) b(2,2) a(3) a(4) a(5)b(3,1) b(3,2) b(3,3) a(4) a(5)By FD2: A2 A3 --> A4we don’t have a new result table because we don’t have any equally elements. Therefore, the result doesn’t change.By FD3: A5 --> A1 A4we have a new result tableA1 A2 A3 A4 A5a(1) a(2) a(3) a(4) a(5)a(1) b(2,2) a(3) a(4) a(5)b(3,1) b(3,2) b(3,3) a(4) a(5)By FD4: A3 A4 --> A2we get a new result tableA1 A2 A3 A4 A5a(1) a(2) a(3) a(4) a(5)a(1) a(2) a(3) a(4) a(5)b(3,1) b(3,2) b(3,3) a(4) a(5) tuple1 and tuple2 are lossless because they have all


View Full Document

SJSU CS 157A - Decomposition

Documents in this Course
SQL

SQL

18 pages

Lecture

Lecture

44 pages

Chapter 1

Chapter 1

56 pages

E-R Model

E-R Model

16 pages

Lecture

Lecture

48 pages

SQL

SQL

15 pages

SQL

SQL

26 pages

Lossless

Lossless

26 pages

SQL

SQL

16 pages

Final 3

Final 3

90 pages

Lecture 3

Lecture 3

22 pages

SQL

SQL

25 pages

Load more
Download Decomposition
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Decomposition and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Decomposition 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?