Discrete Mathematics Lecture # 10 Venn Diagram. Union  Let A and B be subsets of a universal set U. The union of sets A and B is the set of all elements.

Slides:



Advertisements
Similar presentations
Union Definition: The union of sets A and B, denoted by A B, contains those elements that are in A or B or both: Example: { 1, 2, 3} {3, 4, 5} = { 1,
Advertisements

Introduction to Set Theory
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Instructor: Hayk Melikya
(CSC 102) Discrete Structures Lecture 14.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Denoting the beginning
1 Section 1.7 Set Operations. 2 Union The union of 2 sets A and B is the set containing elements found either in A, or in B, or in both The denotation.
Analytical Methods in CS (CIS 505)
Sets Definition of a Set: NAME = {list of elements or description of elements} i.e. B = {1,2,3} or C = {x  Z + | -4 < x < 4} Axiom of Extension: A set.
SET.   A set is a collection of elements.   Sets are usually denoted by capital letters A, B, Ω, etc.   Elements are usually denoted by lower case.
Discrete Structures Chapter 3 Set Theory Nurul Amelina Nasharuddin Multimedia Department.
Sets 1.
Sets 1.
Unit 10 – Logic and Venn Diagrams
Rosen 1.6. Approaches to Proofs Membership tables (similar to truth tables) Convert to a problem in propositional logic, prove, then convert back Use.
Intro to Set Theory. Sets and Their Elements A set A is a collection of elements. If x is an element of A, we write x  A; if not: x  A. Say: “x is a.
Operations on Sets – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Operations on Sets Reading: Kolman, Section 1.2.
2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples.
Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,
Copyright © 2014 Curt Hill Set Operations Now it gets fun.
CS 103 Discrete Structures Lecture 10 Basic Structures: Sets (1)
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Chapter 7 Review Important Terms, Symbols, Concepts 7.1. Logic A proposition is a statement (not a question.
Set Theory Dr. Ahmed Elmoasry. Contents Ch I: Experiments, Models, and Probabilities. Ch II: Discrete Random Variables Ch III: Discrete Random Variables.
Discrete Structure Sets. 2 Set Theory Set: Collection of objects (“elements”) a  A “a is an element of A” “a is a member of A” a  A “a is not an element.
Sets and Sentences Open Sentences Foundations of Real Analysis.
CompSci 102 Discrete Math for Computer Science
Chapter SETS DEFINITION OF SET METHODS FOR SPECIFYING SET SUBSETS VENN DIAGRAM SET IDENTITIES SET OPERATIONS.
Set Operations Chapter 2 Sec 3. Union What does the word mean to you? What does it mean in mathematics?
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 11 Basic Structure : Sets, Functions, Sequences, and Sums Sets Operations.
Chapter 2 With Question/Answer Animations. Section 2.1.
Rosen 1.6, 1.7. Basic Definitions Set - Collection of objects, usually denoted by capital letter Member, element - Object in a set, usually denoted by.
Discrete Mathematics Lecture # 10. Set Theory  A well defined collection of {distinct} objects is called a set.  The objects are called the elements.
Set identities.
Lecture # 12 Set Identities
Basic Definitions of Set Theory Lecture 23 Section 5.1 Wed, Mar 8, 2006.
ITD1111 Discrete Mathematics & Statistics STDTLP
Discrete Mathematics Set.
Warning: All the Venn Diagram construction and pictures will be done during class and are not included in this presentation. If you missed class you.
Basic Definitions of Set Theory Lecture 23 Section 5.1 Mon, Feb 21, 2005.
Set Operations Section 2.2.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 2.3 Venn Diagrams and Set Operations.
Chapter 7 Sets and Probability Section 7.1 Sets What is a Set? A set is a well-defined collection of objects in which it is possible to determine whether.
Thinking Mathematically Venn Diagrams and Subsets.
Set Theorem By Derek Mok, Alex Yau, Henry Tsang and Tommy Lee.
Discrete Mathematics CS 2610 August 31, Agenda Set Theory Set Builder Notation Universal Set Power Set and Cardinality Set Operations Set Identities.
Thinking Mathematically Venn Diagrams and Set Operations.
The Basic Concepts of Set Theory. Chapter 1 Set Operations and Cartesian Products.
Union and Intersection of Sets. Definition - intersection The intersection of two sets A and B is the set containing those elements which are and elements.
Chapter 2 1. Chapter Summary Sets (This Slide) The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions.
Discrete Mathematics Lecture # 17 Function. Relations and Functions  A function F from a set X to a set Y is a relation from X to Y that satisfies the.
Introduction to Set Theory (§1.6) A set is a new type of structure, representing an unordered collection (group, plurality) of zero or more distinct (different)
Section 6.1 Set and Set Operations. Set: A set is a collection of objects/elements. Ex. A = {w, a, r, d} Sets are often named with capital letters. Order.
Dr. Ameria Eldosoky Discrete mathematics
The set of whole numbers less than 7 is {1, 2, 3, 4, 5, 6}
Sets Finite 7-1.
Set Definition: A set is unordered collection of objects.
CHAPTER 3 SETS, BOOLEAN ALGEBRA & LOGIC CIRCUITS
Discrete Mathematical The Set Theory
CSNB 143 Discrete Mathematical Structures
Set, Combinatorics, Probability & Number Theory
Sets Section 2.1.
Chapter 1 Logic and Proofs Homework 2 Given the statement “A valid password is necessary for you to log on to the campus server.” Express the statement.
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 2 Sets Slides are adopted from “Discrete.
Set Operations Section 2.2.
SETS Sets are denoted by Capital letters Sets use “curly” brackets
Discrete Mathematics CS 2610
The aim of education is to teach students how to think rather than what to think. Sets The set is the fundamental discrete structure on which all other.
Lecture Sets 2.2 Set Operations.
Presentation transcript:

Discrete Mathematics Lecture # 10 Venn Diagram

Union  Let A and B be subsets of a universal set U. The union of sets A and B is the set of all elements in U that belong to A or to B or to both, and is denoted A  B.  Symbolically: A  B = {x  U | x  A or x  B}

Union  EXAMPLE:  Let U = {a, b, c, d, e, f, g}  A = {a, c, e, g},B = {d, e, f, g}  Then A  B = {x  U | x  A or x  B}  ={a, c, d, e, f, g}  VENN DIAGRAM FOR UNION:

Union  A  B = B  A that is union is commutative you can prove this very easily only by using definition.  A  A  B and B  A  B  The above remark of subset is easily seen by the definition of union.

Membership Table for Union  This membership table is similar to the truth table for logical connective, disjunction (  ). AB A  B

Intersection  Let A and B subsets of a universal set U. The intersection of sets  A and B is the set of all elements in U that belong to both A and B and is denoted A  B.  Symbolically: A  B = {x  U | x  A and x  B}

Intersection  EXMAPLE:  LetU = {a, b, c, d, e, f, g}  A = {a, c, e, g},B = {d, e, f, g}  Then A  B= {e, g}  VENN DIAGRAM FOR INTERSECTION:

Intersection 1. A  B = B  A 2. A  B  Aand A  B  B 3. If A  B = ,then A & B are called disjoint sets.

Membership Table for Intersection This membership table is similar to the truth table for logical connective, conjunction (  ). AB A  B

Difference  Let A and B be subsets of a universal set U. The difference of “A and B” (or relative complement of B in A) is the set of all elements in U that belong to A but not to B, and is denoted A – B or A \ B.  Symbolically: A – B = {x  U | x  A and x  B}  EXAMPLE:  LetU = {a, b, c, d, e, f, g}  A = {a, c, e, g},B = {d, e, f, g}  ThenA – B = {a, c}

Venn Diagram for Set Difference

Difference 1. A – B  B – A that is set difference is not commutative. 2. A – B  A 3. A – B, A  B and B – A are mutually disjoint sets.

Membership Table for Difference The membership table is similar to the truth table for ~ (p  q). ABA – B

Complement  Let A be a subset of universal set U. The complement of A is the set of all element in U that do not belong to A, and is denoted A , A or A c  Symbolically:  A c = {x  U | x  A}  EXAMPLE:  Let U = {a, b, c, d, e, f, g]  A = {a, c, e, g}  Then A c = {b, d, f}

Complement 1. A c = U – A 2. A  A c =  3. A  A c = U

Venn Diagram for Complement

Member Ship Table for Complement This membership table is similar to the truth table for logical connective negation (~) AAcAc 10 01

Exercise Let U = {1, 2, 3, …, 10},X = {1, 2, 3, 4, 5} Y = {y | y = 2 x, x  X},Z = {z | z 2 – 9 z + 14 = 0} Enumerate: (1)X  Y(2) Y  Z(3) X – Z (4)Y c (5) X c – Z c (6) (X – Z) c Firstly we enumerate the given sets. Given U = {1, 2, 3, …, 10}, X = {1, 2, 3, 4, 5} Y = {y | y = 2 x, x  X} = {2, 4, 6, 8, 10} Z = {z | z 2 – 9 z + 14 = 0} = {2, 7}

Solution  (1)X  Y = {1, 2, 3, 4, 5}  {2, 4, 6, 8, 10}  = {2, 4}  (2)Y  Z = {2, 4, 6, 8, 10}  {2, 7}  = {2, 4, 6, 7, 8, 10}  (3)X – Z = {1, 2, 3, 4, 5} – {2, 7}  = {1, 3, 4, 5}  (4)Y c = U – Y = {1, 2, 3, …, 10} – {2, 4, 6, 8, 10}  = {1, 3, 5, 7, 9  (5)X c – Z c = {6, 7, 8, 9, 10} – {1, 3, 4, 5, 6, 8, 9, 10}  = {7}  (6)(X – Z) c = U – (X – Z)  = {1, 2, 3, …, 10} – {1, 3, 4, 5}  = {2, 6, 7, 8, 9, 10}

Note (X – Z) c  X c – Z c

Exercise Given the following universal set U and its two subsets P and Q, where  U = {x | x  Z, 0  x  10}  P = {x | x is a prime number}  Q = {x | x 2 < 70}  Draw a Venn diagram for the above  List the elements in Pc  Q

Solution- In Tabular Form  First we write the sets in Tabular form.  U = {x | x  Z, 0  x  10}  Since it is the set of integers that are greater then or equal 0 and less or equal to 10. So we have  U= {0, 1, 2, 3, …, 10}  P = {x | x is a prime number}  It is the set of prime numbers between 0 and 10. Remember Prime numbers are those numbers which have only two distinct divisors.  P = {2, 3, 5, 7}  Q = {x | x 2 < 70}  The set Q contains the elements between 0 and 10 which has their square less or equal to 70.  Q= {0, 1, 2, 3, 4, 5, 6, 7, 8}

Solution-Venn Diagram P c = U – P = {0, 1, 2, 3, …, 10}- {2, 3, 5, 7} = {0, 1, 4, 6, 8, 9, 10}  and  P c  Q = {0, 1, 4, 6, 8, 9, 10}  {0, 1, 2, 3, 4, 5, 6, 7, 8}  = {0, 1, 4, 6, 8}

Exercise  Let  U = {1, 2, 3, 4, 5},C = {1, 3}  and A and B are non empty sets. Find A in each of the following: 1. A  B = U,A  B =  andB = {1} 2. A  Band A  B = {4, 5} 3. A  B = {3}, A  B = {2, 3, 4}and B  C = {1,2,3} 4. A and B are disjoint, B and C are disjoint, and the union of A and B is the set {1, 2}.

Solution 1. A  B = U,A  B =  andB = {1} SOLUTION Since A  B = U = {1, 2, 3, 4, 5} and A  B = , Therefore A = B c = {1} c = {2, 3, 4, 5}

Solution 2. A  Band A  B = {4, 5} alsoC = {1, 3} SOLUTION When A  B, then A  B = B = {4, 5} Also A being a proper subset of B implies A = {4} or A = {5}

(iii)A  B = {3}, A  B = {2, 3, 4} and B  C = {1,2,3} Also C = {1, 3}

Solution A and B are disjoint, B and C are disjoint, and the union of A and B is the set {1, 2}.

Exercise  Use a Venn diagram to represent the following: where A, B and C are overlapping.  (A  B)  C c  A c  (B  C)  (A – B)  C  (A  B c )  C c

Proving Set Identities By Venn Diagram  Prove the following using Venn Diagrams: 1. A – (A – B) = A  B 2. (A  B) c = A c  B c 3. A – B = A  B c

A - (A – B) = A  B

(A  B) c = A c  B c

A – B = A  B c Do it by Your own.

Proving Identities via Member Ship Table  Prove the following using Membership Table: 1. A – (A – B) = A  B 2. (A  B) c = A c  B c 3. A – B = A  B c

A – (A – B) = A  B

(A  B) c = A c  B c

A – B = A  B c Do it by your own.