Lecture 2.2: Set Theory CS 250, Discrete Structures, Fall 2015 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.

Slides:



Advertisements
Similar presentations
Prof. Johnnie Baker Module Basic Structures: Sets
Advertisements

Discrete Structures & Algorithms Basics of Set Theory EECE 320 — UBC.
(CSC 102) Discrete Structures Lecture 14.
Lecture 2.3: Set Theory, and Functions* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
1 Set Operations CS/APMA 202, Spring 2005 Rosen, section 1.7 Aaron Bloomfield.
Rosen 1.6. Approaches to Proofs Membership tables (similar to truth tables) Convert to a problem in propositional logic, prove, then convert back Use.
Lecture 4.5: POSets and Hasse Diagrams CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
Sets Set Operations Functions. 1. Sets 1.1 Introduction and Notation 1.2 Cardinality 1.3 Power Set 1.4 Cartesian Products.
9/8/2011Lecture Functions1 Lecture 2.4: Functions CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda.
Lecture 3.1: Mathematical Induction CS 250, Discrete Structures, Fall 2014 Nitesh Saxena Adopted from previous lectures by Cinda Heeren, Zeph Grunschlag.
CS 250, Discrete Structures, Fall 2011 Nitesh Saxena
Lecture 3.4: Recursive Algorithms CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Zeph Grunschlag.
Lecture 1.2: Equivalences, and Predicate Logic* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren, Zeph.
Lecture 2.2: Set Theory* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
Lecture 4.4: Equivalence Classes and Partially Ordered Sets CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda.
Lecture 4.3: Closures and Equivalence Relations CS 250, Discrete Structures, Fall 2013 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.
Lecture 2.1: Sets and Set Operations CS 250, Discrete Structures, Fall 2014 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.
Lecture 1.3: Predicate Logic CS 250, Discrete Structures, Fall 2012 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.
Lecture # 12 Set Identities
Lecture 4.1: Relations Basics CS 250, Discrete Structures, Fall 2012 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.
Lecture 4.2: Relations Basics CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren, Zeph Grunschlag.
Properties of Sets Lecture 26 Section 5.2 Tue, Mar 6, 2007.
Discrete Mathematics. Set Theory - Definitions and notation A set is an unordered collection of elements. Some examples: {1, 2, 3} is the set containing.
Lecture 2.3: Set Theory, and Functions*
Discrete Mathematics CS 2610 January 27, part 2.
Lecture 4.2: Relations CS 250, Discrete Structures, Fall 2013 Nitesh Saxena Adopted from previous lectures by Cinda Heeren, Zeph Grunschlag.
Lecture 1.2: Equivalences, and Predicate Logic CS 250, Discrete Structures, Fall 2015 Nitesh Saxena Adopted from previous lectures by Cinda Heeren, Zeph.
Lecture 1.4: Rules of Inference, and Proof Techniques* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
9/13/2011Lecture Sequences1 Lecture 2.5: Sequences* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Zeph.
Lecture 4.4: Equivalence Classes and Partially Ordered Sets CS 250, Discrete Structures, Fall 2012 Nitesh Saxena Adopted from previous lectures by Cinda.
Lecture 1.3: Predicate Logic, and Rules of Inference* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
Lecture 1.5: Proof Techniques CS 250, Discrete Structures, Fall 2012 Nitesh Saxena Adopted from previous lectures by Cinda Heeren 1.
Lecture 4.1: Relations Basics CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
9/29/2011Lecture Strong Induction1 Lecture 3.2: Strong Induction CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures.
9/27/2011 Lecture Mathematical Induction1 Lecture 3.1: Mathematical Induction* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from.
Lecture 1.5: Proof Techniques
Discrete Mathematical The Set Theory
Lecture 1.2: Equivalences, and Predicate Logic
Lecture 4.1: Relations Basics
Lecture 1.5: Proof Techniques
Lecture 4.3: Closures and Equivalence Relations
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 2 Sets Slides are adopted from “Discrete.
Lecture 3.2: Induction and Strong Induction (contd.)
Set Operations Section 2.2.
Propositional Equivalences
Lecture 4.1: Relations Basics
Lecture 3.2: Induction, and Strong Induction
Lecture 3.2: Induction and Strong Induction (contd.)
CS 250, Discrete Structures, Fall 2014
Lecture 3.2: Induction, and Strong Induction
CS 250, Discrete Structures, Fall 2014
CS 250, Discrete Structures, Fall 2015
CS 250, Discrete Structures, Fall 2015
Lecture 4.3: Closures and Equivalence Relations
Lecture 3.2: Induction, and Strong Induction
Lecture 1.6: Proof Techniques (contd)
Lecture 1.3: Predicate Logic
Lecture 2.1: Sets and Set Operations*
CS 250, Discrete Structures, Fall 2013
Lecture 2.3: Set Theory, and Functions
CS 250, Discrete Structures, Fall 2013
Lecture 3.1: Mathematical Induction
CS 250, Discrete Structures, Fall 2014 Nitesh Saxena
Lecture 1.6: Proof Techniques (contd)
CS 250, Discrete Structures, Fall 2014 Nitesh Saxena
Lecture 2.3: Set Theory, and Functions
CSC102 - Discrete Structures (Discrete Mathematics) Set Operations
Lecture 3.1: Mathematical Induction
CS 250, Discrete Structures, Fall 2015 Nitesh Saxena
Lecture 1.3: Predicate Logic
Presentation transcript:

Lecture 2.2: Set Theory CS 250, Discrete Structures, Fall 2015 Nitesh Saxena Adopted from previous lectures by Cinda Heeren

1/6/2016Lecture Set Theory2 Course Admin HW1 Was just due We will start to grade it We will provide a solution set soon Word Equation editor; Open Office Travel next week Attending and presenting at a conference in Vienna: No class next week (Tuesday and Thursday) Would not affect our coverage Please utilize this time to review the previous lectures

1/6/2016Lecture Set Theory3 Outline Set Theory, Operations and Laws

1/6/2016Lecture Set Theory4 Set Theory - Operators The symmetric difference, A  B, is: A  B = { x : (x  A  x  B) v (x  B  x  A)} = (A - B) U (B - A) like “exclusive or” A U B

1/6/2016Lecture Set Theory5 Set Theory - Operators A  B = { x : (x  A  x  B) v (x  B  x  A)} = (A - B) U (B - A) Proof:{ x : (x  A  x  B) v (x  B  x  A)} = { x : (x  A - B) v (x  B - A)} = { x : x  ((A - B) U (B - A))} = (A - B) U (B - A)

1/6/2016Lecture Set Theory6 Set Theory - Famous Laws Two pages of (almost) obvious. One page of HS algebra. One page of new. Don’t memorize them, understand them! They’re in Rosen, p. 130

1/6/2016Lecture Set Theory7 Set Theory - Famous Laws Identity Domination Idempotent A  U = A A U  = A A U U = U A   =  A U A = A A  A = A

1/6/2016Lecture Set Theory8 Set Theory - Famous Laws Excluded Middle Uniqueness Double complement A U A = U A  A =  A = A

1/6/2016Lecture Set Theory9 Set Theory – Famous Laws Commutativity Associativity Distributivity A U B = (A U B) U C = A  B = B U A B  A (A  B)  C = A U (B U C) A  (B  C) A U (B  C) = A  (B U C) = (A U B)  (A U C) (A  B) U (A  C)

1/6/2016Lecture Set Theory10 Set Theory – Famous Laws DeMorgan’s I DeMorgan’s II pq Venn Diagrams are good for intuition, but we aim for a more formal proof. (A U B) = A  B (A  B) = A U B

1/6/2016Lecture Set Theory11 3 Ways to prove Laws or set equalities Show that A  B and that A  B. Use a membership table. Use logical equivalences to prove equivalent set definitions. New & importantLike truth tablesNot hard, a little tedious

1/6/2016Lecture Set Theory12 Example – the first way Prove that 1. (  ) (x  A U B)  (x  A U B)  (x  A and x  B)  (x  A  B) 2. (  ) (x  A  B)  (x  A and x  B)  (x  A U B)  (x  A U B) (A U B) = A  B

1/6/2016Lecture Set Theory13 Example – the second way Prove that using a membership table. 0 : x is not in the specified set 1 : otherwise (A U B) = A  B ABABA  BAUB

1/6/2016Lecture Set Theory14 Example – the third way Prove that using logically equivalent set definitions. (A U B) = A  B (A U B) = {x :  (x  A v x  B)} = {x :  (x  A)   (x  B)} = A  B = {x : (x  A)  (x  B)}

1/6/2016Lecture Set Theory15 Another example: applying the laws X  (Y - Z) = (X  Y) - (X  Z). True or False? Prove your response. = (X  Y)  (X’ U Z’) = (X  Y  X’) U (X  Y  Z’) =  U (X  Y  Z’) = (X  Y  Z’) = X  (Y - Z) (X  Y) - (X  Z) = (X  Y)  (X  Z)’

1/6/2016Lecture Set Theory16 Suppose to the contrary, that A  B  , and that x  A  B. A Proof (direct and indirect) Pv that if (A - B) U (B - A) = (A U B) then Then x cannot be in A-B and x cannot be in B-A. But x is in A U B since (A  B)  (A U B). A  B =  Thus, A  B = . Then x is not in (A - B) U (B - A).

1/6/2016Lecture Set Theory17 Today’s Reading Rosen 2.1 and 2.2