CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative Commons Attribution- NonCommercial-ShareAlike 4.0 International License. Based on a work at Permissions beyond the scope of this license may be available at LeeCreative Commons Attribution- NonCommercial-ShareAlike 4.0 International Licensehttp://peerinstruction4cs.org
Today’s Topics: 1. Set Theory: Venn Diagrams 2. Set Theory: Proving two sets are equal 3. Set Theory: Power Set and Cross Product 2
Set notations Union: A B = {x:x A x B} Intersection: A B = {x:x A x B} Complement:A’=A c = {x:x A} Difference:A-B = {x:x A x B} Empty set: 3
1. Venn Diagrams 4
We will prove this using Venn Diagram method First, we need to draw a generic Venn Diagram: 5 U B A C
6 U B A C
7 U B A C
8 U B A C
9
2. Proving two sets are equal 10
Set equality 11
Set equality Another take: one way to prove that X=Y is to prove that both X Y Y X 12
Set equality Can also prove directly Claim: (A’)’=A Proof: A’={x: x A} (A’)’ = {x: x A’} = {x: x A} 13
3. Power Set and Cross Product 14
Power Sets 15
Cross Product 16