1 ENM 503 Block 1 Algebraic Systems Lesson 2 – The Algebra of Sets The Essence of Sets What are they?

Slides:



Advertisements
Similar presentations
 Union  Intersection  Relative Complement  Absolute Complement Likened to Logical Or and Logical And Likened to logical Negation.
Advertisements

Sets Lecture 11: Oct 24 AB C. This Lecture We will first introduce some basic set theory before we do counting. Basic Definitions Operations on Sets Set.
Discrete Mathematics Lecture 5 Alexander Bukharovich New York University.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Instructor: Hayk Melikya
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.
Basic Probability Sets, Subsets Sample Space Event, E Probability of an Event, P(E) How Probabilities are assigned Properties of Probabilities.
Chris Morgan, MATH G160 January 9, 2012 Lecture 1 Chapter 4.1, 4.2, & 4.3: Set Theory, Introduction to Probability.
Denoting the beginning
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.
Discrete Structures Chapter 3 Set Theory Nurul Amelina Nasharuddin Multimedia Department.
Sets 1.
Sets 1.
Set Theory.
1 Set Theory. Notation S={a, b, c} refers to the set whose elements are a, b and c. a  S means “a is an element of set S”. d  S means “d is not an element.
Mathematics.
Survey of Mathematical Ideas Math 100 Chapter 2
Operations on Sets – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Operations on Sets Reading: Kolman, Section 1.2.
Chapter 2 The Basic Concepts of Set Theory © 2008 Pearson Addison-Wesley. All rights reserved.
Set Notation.
This section will discuss the symbolism and concepts of set theory
Course Outline Book: Discrete Mathematics by K. P. Bogart Topics:
Definition and Representation A set is a well-defined collection of objects; The objects are called elements or members of the set; A set can be represented.
Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,
Chapter 7 Logic, Sets, and Counting Section 2 Sets.
Set Theory Dr. Ahmed Elmoasry. Contents Ch I: Experiments, Models, and Probabilities. Ch II: Discrete Random Variables Ch III: Discrete Random Variables.
Week 11 What is Probability? Quantification of uncertainty. Mathematical model for things that occur randomly. Random – not haphazard, don’t know what.
CS201: Data Structures and Discrete Mathematics I
CompSci 102 Discrete Math for Computer Science
Copyright © Cengage Learning. All rights reserved.
Chapter 2 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Section 2.1. Section Summary Definition of sets Describing Sets Roster Method Set-Builder Notation Some Important Sets in Mathematics Empty Set and Universal.
ELEMENTARY SET THEORY.
Basic Principles (continuation) 1. A Quantitative Measure of Information As we already have realized, when a statistical experiment has n eqiuprobable.
Sixth lecture Concepts of Probabilities. Random Experiment Can be repeated (theoretically) an infinite number of times Has a well-defined set of possible.
Chapter 6 Lesson 6.1 Probability 6.1: Chance Experiments and Events.
Chapter 2 With Question/Answer Animations. Section 2.1.
(CSC 102) Lecture 13 Discrete Structures. Previous Lectures Summary  Direct Proof  Indirect Proof  Proof by Contradiction  Proof by Contra positive.
Discrete Mathematics Set.
Probability theory is the branch of mathematics concerned with analysis of random phenomena. (Encyclopedia Britannica) An experiment: is any action, process.
Basic probability Sep. 16, Introduction Our formal study of probability will base on Set theory Axiomatic approach (base for all our further studies.
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.
Basic Probability. Introduction Our formal study of probability will base on Set theory Axiomatic approach (base for all our further studies of probability)
Virtual University of Pakistan Lecture No. 16 Statistics and Probability Miss Saleha Naghmi Habibullah.
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.
CPCS 222 Discrete Structures I
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.
Dr. Ameria Eldosoky Discrete mathematics
The set of whole numbers less than 7 is {1, 2, 3, 4, 5, 6}
Chapter two Theory of sets
The Language of Sets If S is a set, then
CSNB 143 Discrete Mathematical Structures
Lecture 04 Set Theory Profs. Koike and Yukita
Set, Combinatorics, Probability & Number Theory
Sets Section 2.1.
What is Probability? Quantification of uncertainty.
The Basic Concepts of Set Theory
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 2 Sets Slides are adopted from “Discrete.
Exercises Show that (P  Q)  (P)  (Q)
CS100: Discrete structures
Set Operations Section 2.2.
Chapter 7 Logic, Sets, and Counting
Sets & Set Operations.
AND.
Presentation transcript:

1 ENM 503 Block 1 Algebraic Systems Lesson 2 – The Algebra of Sets The Essence of Sets What are they?

2 Set Theory Theory: A formal mathematical system consisting of a set of axioms and the rules of logic for deriving theorems from those axioms. Set theory – a branch of abstract mathematics set – a concept so basic that it is an undefined term consider a set a well-defined collection of objects that are called the elements of the set

3 What is a set? A set is a collection of things Each entry in a set is known as an element. Sets are written using brackets { } with their elements listed in between For example the English alphabet could be written as: {a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z} even numbers could be {0,2,4,6,8,10,...} (Note: the dots at the end indicating that the set goes on infinitely)

4 Set Equality Definition (Equality of sets): Two sets are equal if and only if they have the same elements. More formally, for any sets A and B, A = B if and only if  x  x  A, then x  B. Thus for example {1, 2, 3} = {3, 2, 1}, that is the order of elements does not matter, and {1, 2, 3} = {3, 2, 1, 1}, that is duplications do not make any difference for sets. (note:  reads “for all” and  reads “such that”)

5 Subsets Definition (Subset): A set A is a subset of a set B if and only if everything in A is also in B. More formally, for any sets A and B, A is a subset of B, and denoted by A  B, if and only if  x  A, then x  B If A  B, and A  B, then A is said to be a proper subset of B and it is denoted by A  B. For example {1, 2}  {3, 2, 1}. Also {1, 2}  {3, 2, 1}. If A  B and B  C, then A  C

6 More to do with subsets If even one element of one set is not contained within the other then they are not subsets. If A were defined as {1,2,3,4,5} and B as {3,4,5,6} then B would not be a subset of A since 6  B but 6  A. The symbol for “not a subset” is . We would write B  A.

7 Some Examples b  {a, b, c, d} e  {a, b, c, d} {1, 2, 4, 5} = {2, 1, 5, 4} {1, 2, 3}  {1, 2, 3} {1, 2, 3}  {1, 2, 3, 4} {1, 2, 3}  {1, 2, 3, 4} {1, 2, 3,..., 1000} is a finite set. {1, 2, 3,...} is an infinite set.

8 Two sets of note: The set containing no elements is the “empty” or “null” set and is denoted by { } or  All sets under consideration are regarded as subsets of a fixed set known as the Universal set and denoted by U

9 Venn Diagrams Venn Diagrams were first developed by John Venn in the 1880s. They are useful for illustrating the relationships among elements in a set. For example if we want to represent the set of all counting numbers, and illustrate how even numbers and multiples of 3 are related, we could draw the following picture: The Universe

10 Boolean Algebra A Boolean algebra is an algebra in which binary operations are chosen to model mathematical or logical operations in Set Theory. Specifically, for any sets A and B, it deals with the set operations of intersections and unions or the logic operations of “AND” and “OR” Also includes negation or the complement - the logic operation of “NOT.”

11 Union A union of two or more sets is another set that contains everything contained in the previous sets. Union is designated by the symbol . If A and B are sets then A  B represents the union of A and B The union of A and B is the set of all elements that are either in A or B (or both), therefore A  B = {x | x  A or x  B}. “OR” logic “such that”

12 Examples of the union of two sets Example 1: A={1,2,3,4,5}; B={5,7,9,11,13} A  B = {1,2,3,4,5,7,9,11,13} Example 2: A={all the books written by Charles Dickens} B={all the books written by Mark Twain} A  B = {all books written by either Charles Dickens or Mark Twain}

13 Intersection The intersection of two (or more) sets is those elements that they have in common. Intersection is designated by the symbol . So if A and B are sets then the intersection is denoted by A  B. The intersection of A and B is the set of all elements that are common to A and B, therefore A  B = {x | x  A and x  B} “And” logic

14 Examples of the intersection of two sets Example 1 A={1,3,5,7,9}; B={2,3,4,5,6} The elements they have in common are 3 and 5 A  B = {3,5} Example 2 A={The English alphabet} B={vowels} So A  B = {vowels} Example 3 A={1,2,3,4,5} B={6,7,8,9,10} In this case A and B have nothing in common. A  B =  is called the “empty or null set.”  = { }

15 Negation or Complement Given the set A, then the set A' is the complement of A consisting of all elements not in A; i.e. A’ = {x| x  A} A A’ Let U = universal set (the set of all objects under discussion) Then A  A’ = U and A  A’ =  (they are mutually exclusive) Sometimes the complement of a set A is written as A c U

16 Mutual Exclusive Sets Two sets are mutually exclusive (also called disjoint) if they do not have any elements in common; they need not together comprise the universal set. The following Venn diagram represents mutually exclusive (disjoint) sets. A  B = 

17 A Partition A partition of a set S is a subdivision of S into subsets which are disjoint and whose union is S. That is, each x  S belongs to one and only one of the subsets If A 1, A 2, …, A n form a partition, then A 1  A 2  …  A n = S, and for any A i and A j i  j, A i  A j =  Often the set S = U

18 The four disjoint regions of two intersecting sets forming a partition The four regions in which two circles divide the universal set can be identified as intersections of the two subsets and their complements as labeled in the following Venn diagram. U = (A’  B’)  (A  B’)  (A  B)  (A’  B)

19 Three intersecting sets

20 SET THEOREMS If A  B then A  B = A and A  B = B Quick student exercise: Create an example to illustrate each theorem. Did you know: (A  B)  A  (A  B) ?

21 Examples Let S be the set of all integers, and let A = {2, 4, 6, 8} B = {5, 6, 7, 8} C = {positive even integers} D = {1, 2, 3}. Then A  B = {2, 4, 5, 6, 7, 8} A  B = {6, 8} A  C = A C ' = {0, 1, - 1, - 2, 3, - 3, - 4, 5, - 5,...} A  (B  C) = A

22 Closure If A and B are any two sets then A  B is a set A  B is a set A’ is a set I get it. The algebra of sets is closed under the operations of union, intersection, and complements.

23 The Laws of the Algebra of Sets De Morgan's Laws: (A  B)' = A'  B‘ (A  B)' = A'  B‘ Idempotent Laws: (A  A) = A (A  A) = A Associative Laws: (A  B)  C = A  (B  C) (A  B)  C = A  (B  C) Commutative Laws: (A  B)= (B  A) (A  B) = (B  A) Distributive Laws: A  (B  C) = (A  B)  C) A  (B  C) = (A  B)  C) Identity Laws (A   ) = A (A  U) = U (A   ) =  (A  U) = A Complement Laws (A  A’) = U (A’)’ = A (A  A’) =  U’ = ,  ’ = U These are very good laws. Quick student exercise: Prove using Venn diagrams

Set Algebra – some examples 24 

25 Cartesian Product The Cartesian product of two sets, A and B, is the set of all ordered pairs (a, b) with a  A and b  B. A x B = { (a, b) | a  A and b  B }. A x B is the set of all ordered pairs whose first component is in A and whose second component is in B.

26 Cartesian Product - examples 1. If A = {a, b} and B = {1, 2, 3}, then A x B = { (a, 1), (a, 2), (a, 3), (b, 1), (b, 2), (b, 3) }. 2. Let S = {H, T}. (H stands for Heads, T stands for Tails) S x S = { (H,H), (H,T), (T,H), T,T) }. If S is the set of outcomes of tossing a coin once, then S is the set of outcomes of tossing a coin twice.

27 Yet another example S = {1, 2, 3, 4, 5, 6} The set of outcomes of rolling a die S x S = {(1, 1),(1, 2),(1, 3),(1, 4),(1, 5),(1, 6), (2, 1),(2, 2),(2, 3),(2, 4),(2, 5),(2, 6),(3, 1),(3, 2),(3, 3),(3, 4),(3, 5),(3, 6),(4, 1),(4, 2),(4, 3),(4, 4),(4, 5),(4, 6),(5, 1),(5, 2),(5, 3),(5, 4),(5, 5),(5, 6),(6, 1),(6, 2),(6, 3),(6, 4),(6, 5),(6, 6)}

28 A Cartesian Product Theorem If A, B, and C are any sets, then (A  B) x C = (A x C)  (B x C) Quick student exercise: Demonstrate the truth of this theorem by creating an example. That is, show both sets have the same ordered pairs. I get it. It is a type of distributive law for the Cartesian product. Another quick student exercise: Demonstrate that A x (B  C) = (A x B)  (A x C) is true or not true.

29 Is there any more of this stuff? I can see where we can form new sets from unions, intersections, complements, and cross products of other sets. Are there any other ways of generating new sets? An engineering management student on the job.

30 Power Sets Let U be the universal set. Then the set whose elements are all the subsets in U is called the power set of U and is denoted by P U. There are 2 n elements in the set P U where n is the number of elements in U Gosh. This cries out for an example.

31 The Mandatory Example Let U = {a,b,c,d} Then P U = { , {a}, {b}, {c}, {d}, {a,b}, {a,c}, {a,d}, {b,c}, {b,d}, {c,d}, (a,b,c} {a,b,d}, {a,c,d}, {b,c,d}, {a,b,c,d} } Count them, there are 2 4 = 16!

32 This concludes The Essence of Sets Tune in next time for more sets - why do we care? Fine print: The over-achieving student will now work the problem exercises.