Operations on Sets – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Operations on Sets Reading: Kolman, Section 1.2.

Slides:



Advertisements
Similar presentations
Set Operations. When sets are equal A equals B iff for all x, x is in A iff x is in B or … and this is what we do to prove sets equal.
Advertisements

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,
 Union  Intersection  Relative Complement  Absolute Complement Likened to Logical Or and Logical And Likened to logical Negation.
Discrete Mathematics Lecture 5 Alexander Bukharovich New York University.
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
Week 21 Basic Set Theory A set is a collection of elements. Use capital letters, A, B, C to denotes sets and small letters a 1, a 2, … to denote the elements.
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.
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.
Operations on Sets Union Intersection: Two sets are disjoint if their intersection is the null set. Difference A - B. Complement of a set A.
Discrete Structures Chapter 3 Set Theory Nurul Amelina Nasharuddin Multimedia Department.
Lecture 3 Operations on Sets CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Mathematics.
Discrete Maths Objective to re-introduce basic set ideas, set operations, set identities , Semester 2, Set Basics 1.
Survey of Mathematical Ideas Math 100 Chapter 2
Copyright © 2014, 2010, 2007 Pearson Education, Inc. Section 2.3, Slide 1 Set Theory 2 Using Mathematics to Classify Objects.
2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples.
Chapter 3 – Set Theory  .
CS 103 Discrete Structures Lecture 10 Basic Structures: Sets (1)
1 ENM 503 Block 1 Algebraic Systems Lesson 2 – The Algebra of Sets The Essence of Sets What are they?
CS201: Data Structures and Discrete Mathematics I
Discrete Mathematics R. Johnsonbaugh
CompSci 102 Discrete Math for Computer Science
SECTION 2-3 Set Operations and Cartesian Products Slide
ELEMENTARY SET THEORY.
Copyright © 2006 Brooks/Cole, a division of Thomson Learning, Inc. Sets and Counting6 Sets and Set Operations The Number of Elements in a Finite Set The.
Discrete Mathematical Structures 4 th Edition Kolman, Busby, Ross © 2000 by Prentice-Hall, Inc. ISBN
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.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 11 Basic Structure : Sets, Functions, Sequences, and Sums Sets Operations.
Basic Principles (continuation) 1. A Quantitative Measure of Information As we already have realized, when a statistical experiment has n eqiuprobable.
CSNB143 – Discrete Structure Topic 1 - Set. Topic 1 - Sets Learning Outcomes – Student should be able to identify sets and its important components. –
Chapter 2 With Question/Answer Animations. Section 2.1.
Introduction to Set theory. Ways of Describing Sets.
Ch. 2 Basic Structures Section 1 Sets. Principles of Inclusion and Exclusion | A  B | = | A | + | B | – | A  B| | A  B  C | = | A | + | B | + | C.
Discrete Mathematics CS 2610 January 27, part 2.
ITD1111 Discrete Mathematics & Statistics STDTLP
Discrete Mathematics Set.
Probability theory is the branch of mathematics concerned with analysis of random phenomena. (Encyclopedia Britannica) An experiment: is any action, process.
1 Section 1.2 Sets A set is a collection of things. If S is a set and x is a member or element of S we write x  S. Othewise we write x  S. The set with.
Module #3 - Sets 3/2/2016(c) , Michael P. Frank 2. Sets and Set Operations.
Set Operations Section 2.2.
1 Set Theory Second Part. 2 Disjoint Set let A and B be a set. the two sets are called disjoint if their intersection is an empty set. Intersection of.
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,
Notions & Notations (2) - 1ICOM 4075 (Spring 2010) UPRM Department of Electrical and Computer Engineering University of Puerto Rico at Mayagüez Spring.
 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.
Basic Probability. Introduction Our formal study of probability will base on Set theory Axiomatic approach (base for all our further studies of probability)
Thinking Mathematically Venn Diagrams and Set Operations.
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.
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.
Set. Outline Universal Set Venn Diagram Operations on Sets.
Lecture 6 Set Theory.
Dr. Ameria Eldosoky Discrete mathematics
Discrete Structures – CNS 2300
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…
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 2 Sets Slides are adopted from “Discrete.
CS100: Discrete structures
Chapter 2 The Basic Concepts of Set Theory
Set Operations Section 2.2.
Discrete Mathematics R. Johnsonbaugh
Sets & Set Operations.
CSC102 - Discrete Structures (Discrete Mathematics) Set Operations
Set – collection of objects
Sets, Unions, Intersections, and Complements
Presentation transcript:

Operations on Sets – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Operations on Sets Reading: Kolman, Section 1.2

Operations on Sets – Page 2CSCI 1900 – Discrete Structures Operation on Sets An operation on a set is where two sets are combined to produce a third

Operations on Sets – Page 3CSCI 1900 – Discrete Structures Union A  B = {x | x  A or x  B} Example: Let A = {a, b, c, e, f} and B = {b, d, r, s} A  B = {a, b, c, d, e, f, r, s} Venn diagram

Operations on Sets – Page 4CSCI 1900 – Discrete Structures Intersection A  B = {x | x  A and x  B} Example: Let A = {a, b, c, e, f}, B = {b, e, f, r, s}, and C = {a, t, u, v}. A  B = {b, e, f} A  C = {a} B  C = { } Venn diagram

Operations on Sets – Page 5CSCI 1900 – Discrete Structures Disjoint Sets Disjoint sets are sets where the intersection results in the empty set Not disjointDisjoint

Operations on Sets – Page 6CSCI 1900 – Discrete Structures Unions and Intersections Across Multiple Sets Both intersection and union can be performed on multiple sets –A  B  C = {x | x  A or x  B or x  C} –A  B  C = {x | x  A and x  B and x  C} –Example: A = {1, 2, 3, 4, 5, 7}, B = {1, 3, 8, 9}, and C = {1, 3, 6, 8}. A  B  C = {1, 2, 3, 4, 5, 6, 7, 8, 9} A  B  C = {1, 3}

Operations on Sets – Page 7CSCI 1900 – Discrete Structures Complement The complement of A (with respect to the universal set U) – all elements of the universal set U that are not a member of A. Denoted A Example: If A = {x | x is an integer and x 4} Venn diagram

Operations on Sets – Page 8CSCI 1900 – Discrete Structures Complement “With Respect to…” The complement of B with respect to A – all elements belonging to A, but not to B. It’s as if U is in the complement is replaced with A. Denoted A – B = {x | x  A and x  B} Example: Assume A = {a, b, c} and B = {b, c, d, e} A – B = {a} B – A = {d, e} Venn diagram B – AA – B

Operations on Sets – Page 9CSCI 1900 – Discrete Structures Symmetric difference Symmetric difference – If A and B are two sets, the symmetric difference is the set of elements belonging to A or B, but not both A and B. Denoted A  B = {x | (x  A and x  B) or (x  B and x  A)} A  B = (A – B)  (B – A) Venn diagram

Operations on Sets – Page 10CSCI 1900 – Discrete Structures Algebraic Properties of Set Operations Commutative properties A  B = B  A A  B = B  A Associative properties A  (B  C) = (A  B)  C A  (B  C) = (A  B)  C Distributive properties A  (B  C) = (A  B)  (A  C) A  (B  C) = (A  B)  (A  C)

Operations on Sets – Page 11CSCI 1900 – Discrete Structures More Algebraic Properties of Set Operations Idempotent properties A  A = A A  A = A Properties of the complement (A) = A A  A = U A  A =   = U U =  A  B = A  B -- De Morgan’s law A  B = A  B -- De Morgan’s law

Operations on Sets – Page 12CSCI 1900 – Discrete Structures More Algebraic Properties of Set Operations Properties of a Universal Set A  U = U A  U = A Properties of the Empty Set A   = A or A  { } = A A   =  or A  { } = { }

Operations on Sets – Page 13CSCI 1900 – Discrete Structures The Addition Principle The Addition Principle associates the cardinality of sets with the cardinality of their union If A and B are finite sets, then |A  B| = |A| + |B| – |A  B| Let’s use a Venn diagram to prove this: The Roman Numerals indicate how many times each segment is included for the expression |A| + |B| Therefore, we need to remove one |A  B| since it is counted twice. 112 A  B

Operations on Sets – Page 14CSCI 1900 – Discrete Structures Addition Principle Example Let A = {a, b, c, d, e} and B = {c, e, f, h, k, m} |A| = 5, |B| = 6, and |A  B| = |{c, e}| = 2 |A  B| = |{a, b, c, d, e, f, h, k, m}| |A  B| = 9 = – 2 If A  B = , i.e., A and B are disjoint sets, then the |A  B| term drops out leaving |A| + |B|