Operations on Sets Union Intersection: Two sets are disjoint if their intersection is the null set. Difference A - B. Complement of a set A.

Slides:



Advertisements
Similar presentations
Learning Objectives for Section 7.2 Sets
Advertisements

Sets of Real Numbers The language of set notation.
Set Operations and Venn Diagrams 2.2 – 2.3. The intersection of sets A and B, denoted by, is the set of all elements that are common to both. That is,.
1. Number of Elements in A 2. Inclusion-Exclusion Principle 3. Venn Diagram 4. De Morgan's Laws 1.
Instructor: Hayk Melikya
Chapter 2 The Basic Concepts of Set Theory
Chapter 2 Chapter The sample space of an experiment, denoted S , is the set of all possible outcomes of that experiment. An event is any collection.
Set Theory.
Lecture 3 Operations on Sets CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
1 Learning Objectives for Section 7.2 Sets After today’s lesson, you should be able to Identify and use set properties and set notation. Perform set operations.
Mathematics.
Operations on Sets – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Operations on Sets Reading: Kolman, Section 1.2.
Set Notation.
This section will discuss the symbolism and concepts of set theory
Venn Diagrams/Set Theory   Venn Diagram- A picture that illustrates the relationships between two or more sets { } are often used to denote members of.
2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples.
Copyright © 2014 Curt Hill Set Operations Now it gets fun.
Inclusion-Exclusion Selected Exercises Powerpoint Presentation taken from Peter Cappello’s webpage
Chapter 7 Logic, Sets, and Counting Section 2 Sets.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Chapter 7 Review Important Terms, Symbols, Concepts 7.1. Logic A proposition is a statement (not a question.
Sets Digital Lesson. Copyright © by Houghton Mifflin Company, Inc. All rights reserved. 2 Definition of Set A set is a collection of objects called elements.
ELEMENTARY SET THEORY.
Discrete Mathematical Structures 4 th Edition Kolman, Busby, Ross © 2000 by Prentice-Hall, Inc. ISBN
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?
2.2 Set Operations. The Union DEFINITION 1 Let A and B be sets. The union of the sets A and B, denoted by A U B, is the set that contains those elements.
UNIT VOCABULARY Functions. Closed Form of a Sequence (This is also known as the explicit form of a sequence.) For an arithmetic sequence, use a n = a.
CSNB143 – Discrete Structure Topic 1 - Set. Topic 1 - Sets Learning Outcomes – Student should be able to identify sets and its important components. –
Real Numbers Natural Numbers – {1,2,3,4,5,6….}
Sets Definition: A set is an unordered collection of objects, called elements or members of the set. A set is said to contain its elements. We write a.
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.
UNIT 3. OUTLINE: Sets and Subsets Set Operations the Laws of Set Theory Counting and Venn Diagrams. A First Word on Probability. The Axioms of Probability.
Module #3 - Sets 3/2/2016(c) , Michael P. Frank 2. Sets and Set Operations.
Set Operations Section 2.2.
Sets and Basic Operations on Sets Notation A set will usually be denoted by a capital letter, such as, A,B,X, Y,..., whereas lower-case letters, a, b,
 Union Symbol ∪ If A and B are sets, their union is equal to all elements in both A & B A = {1,2,3,4} B = {2,4,5,6,7,8} A ∪ B = {1,2,3,4,5,6,7,8}
Section 1.2 – 1.3 Outline Intersection  Disjoint Sets (A  B=  ) AND Union  OR Universe The set of items that are possible for membership Venn Diagrams.
MATH 2311 Section 2.2. Sets and Venn Diagrams A set is a collection of objects. Two sets are equal if they contain the same elements. Set A is a subset.
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.
Unions and Intersections of Sets Chapter 3 Section 8.
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.
6.1 Sets and Set Operations Day 2 Turn to page 276 and look at example 6.
A Π B = all elements in both sets A and B
Venn Diagrams.
Sets and Operations TSWBAT apply Venn diagrams in problem solving; use roster and set-builder notation; find the complement of a set; apply the set operations.
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 Page 746.
Chapter two Theory of sets
Sets Finite 7-1.
CHAPTER 3 SETS, BOOLEAN ALGEBRA & LOGIC CIRCUITS
CSNB 143 Discrete Mathematical Structures
Lecture 04 Set Theory Profs. Koike and Yukita
Sets Section 2.1.
Counting and Probability Section 12.1: Sets and Counting IBTWW…
Algebra 1 Section 1.1.
Operations with Sets A = { 1, 2, 3 ,4, 5} B = { 2, 4, 6, 8, 10}
Session – 2 SETS & Operations of SETS
Copyright © Cengage Learning. All rights reserved.
15.1 Venn Diagrams.
Chapter Sets &Venn Diagrams.
SETS Sets are denoted by Capital letters Sets use “curly” brackets
Lesson 1.2 Set Operations pp. 6-8.
2.1 – Symbols and Terminology
Sets, Unions, Intersections, and Complements
Presentation transcript:

Operations on Sets Union Intersection: Two sets are disjoint if their intersection is the null set. Difference A - B. Complement of a set A.

Union If A and B are sets, their union can be defined as the set that consists of all elements of A or B. It is denoted by A U B. A U B = {x | x Є A or x Є B} A B A U B Venn Diagram

Union: Examples Example 1: A = {1, 2, 5, 6,7} and B = {3,4, 5, 6, 8, 9} A U B = {1, 2, 3,4, 5, 6, 7, 8, 9} Example 2: A = {1, 2, 3, 4} A U A = {1, 2, 3, 4} Example 3: A = {1, 2, 3, 4} A U Ø = {1, 2, 3, 4} or A U { } = {1, 2, 3, 4}

Intersection If A and B are sets, their intersection can be defined as the set that consists of all elements that belong to both A and B. It is denoted by A ∩ B. A ∩ B = {x | x Є A and x Є B} A ∩ B Venn Diagram A B

Intersection: Examples Example 1: A = {1, 2, 5, 6,7} and B = {3,4, 5, 6, 8, 9} A ∩ B = {5, 6} Example 2: A = {1, 2, 3, 4} A ∩ A = {1, 2, 3, 4} Example 3: A = {1, 2, 3, 4} A ∩ Ø = Ø or A ∩ { } = { }

Disjoint Sets Two sets that have no common elements are called disjoint sets. Example: A = {1, 3, 5, 7, 9} and B = {2, 4, 6, 10, 12} A ∩ B = { } AB Venn Diagram A ∩ B = { }

Complement If A and B are two sets, the complement of B with respect to A is defined as the set of all elements that belong to A but not to B. It is denoted by A – B. A – B ={x | x Є A and x Є B B – A ={x | x Є B and x Є A A B B - A A B A - B

Complement If U is a universal set containing A, then U – A is called the complement of A. It is denoted by Ā. Ā = {x | x Є A} Example: A = {x | x is an integer and x ≤ 8} and U = Z (Z ->set of all integers). Ā = {x | x is an integer and x > 8}

Properties of Complement Ā = A A U Ā = U A ∩ Ā = Ø Ø = U U = { } A U B = Ā ∩ B A ∩ B = Ā U B

Symmetric difference If A and B are two sets, their symmetric difference can be defined as the set of all elements that belong to A or to B, but not to both A and B. It is denoted by A O B. A O B ={x | (x Є A and x Є B) or (x Є B and x Є A)} A O B = (A – B) U (B – A) A B B - A

Symmetric Difference: Example Example1: A = {1, 2, 3, 4} and B = {3, 4, 5, 6, 7} A O B = {1, 2, 5, 6} Example 2: A = {a, c, f} and B = {f, h, k} A O B = {a, c, h, k} Example 3: A = {2, 4, 5, 9} and C ={x| x is a positive integer and x 2 ≤ 16} A O B = {5, 9, 3, 1}

1.2 Exercises Identify the following as true or false.  y Є A ∩ B x Є B U C  w Є B ∩ C u Є C w y v x z u U A B C

The Addition Principle |A U B U C| = |A| + |B| + |C| - |A ∩ B| - |B ∩ C| - |A ∩ C| + |A ∩ B ∩ C| A B C |A ∩ B| |B ∩ C| |A ∩ C| |A ∩ B ∩ C| Inclusion-exclusion principle:

1.2 Exercises A survey of 500 television watchers produced the following information: 285 watch football games, 195 watch hockey games, 115 watch basketball games, 45 watch football and basketball games, 70 watch football and hockey games, 50 watch hockey and basketball games, and 50 do not watch any of the three kinds of games. a) How many people in the survey watch all three kinds of games? b) How many people watch exactly one of the sports?

1.2 Exercises |F U H U B| = |F| + |H| + |B| - |F ∩ H| - |H ∩ B| - |F ∩ B| + |F ∩ H ∩ B| F H B |F ∩ H| |H ∩ B| |F ∩ B| |F ∩ H ∩ B|

1.2 Exercises Given: |F| = 285, |H| = 195, |B| = 115, |F ∩ H| = 70, |H ∩ B| = 50, |F ∩ B| = 45, |F U H U B| = 500 – 50 = 450 |F U H U B| = |F| + |H| + |B| - |F ∩ H| - |H ∩ B| - |F ∩ B| + |F ∩ H ∩ B| F H B |F ∩ H| |H ∩ B| |F ∩ B| |F ∩ H ∩ B|

1.2 Exercises Given: |F| = 285, |H| = 195, |B| = 115, |F ∩ H| = 70, |H ∩ B| = 50, |F ∩ B| = 45, |F U H U B| = 500 – 50 = 450 |F U H U B| = |F| + |H| + |B| - |F ∩ H| - |H ∩ B| - |F ∩ B| + |F ∩ H ∩ B| or, 450 = – 50 – 45 + |F ∩ H ∩ B| or, |F ∩ H ∩ B| = 20 F H B |F ∩ H|= 70 |H ∩ B|= 50 |F ∩ B| = 45 |F ∩ H ∩ B|= 20 Ans. for 24(a)

1.2 Exercises Given: |F| = 285, |H| = 195, |B| = 115, |F ∩ H| = 70, |H ∩ B| = 50, |F ∩ B| = 45, |F U H U B| = 500 – 50 = 450 From 24(a): |F ∩ H ∩ B| = 20 No. of people watching only Football = 285 – 70 – = 190 No. of people watching only Hockey= 195 – 70 – = 95 No. of people watching only Basketball = 115 – 45 – = 40. Total no. of people watching exactly one of the sports = = 325 F H B |F ∩ H|= 70 |H ∩ B| = 50 |F ∩ B| = 45 |F ∩ H ∩ B| Ans. for 24(b)