# (CSC 102) Lecture 14 Discrete Structures. Previous Lectures Summary Why study set Theory Sets Operations on sets Memberships Notations Venn

• View
215

1

Embed Size (px)

### Text of (CSC 102) Lecture 14 Discrete Structures. Previous Lectures Summary Why study set Theory Sets ...

• Slide 1
• (CSC 102) Lecture 14 Discrete Structures
• Slide 2
• Previous Lectures Summary Why study set Theory Sets Operations on sets Memberships Notations Venn diagrams
• Slide 3
• Introductions to Set Theory II
• Slide 4
• Today's Lecture Procedural Versions Properties of Sets Empty Set Properties Difference Properties Set Identities Boolean Algebra and Set theory Puzzles
• Slide 5
• Procedural Versions of Set Definitions Let X and Y be subsets of a universal set U and suppose x and y are elements of U. 1. x X Y x X or x Y 2. x X Y x X and x Y 3. x X Y x X and x Y 4. x X x X 5. (x, y) X Y x X and y Y
• Slide 6
• Properties of Sets Theorem: 1. Inclusion of Intersection: For all sets A and B, A B A and (b) A B B. 2. Inclusion in Union: For all sets A and B, A A B and (b) B A B. 3. Transitive Property of Subsets: For all sets A, B, and C, if A B and B C, then A C.
• Slide 7
• Proof 1.(For all sets A and B), A B A. Suppose x is an element in A B and then you show that x is in A. To say that x is in A B means that x is in A and x is in B. This allows you to complete the proof by deducing that, in particular, x is in A, as was to be shown. Note that this deduction is just a special case of the valid argument form p q p. Similarly we will done with others..
• Slide 8
• Set Identities Let all sets referred to below be subsets of a universal set U. 1. Commutative Laws: For all sets A and B, (a) A B = B A and (b) A B = B A. 2. Associative Laws: For all sets A, B, and C, (a) (A B) C = A (B C) and (b) (A B) C = A (B C). 3. Distributive Laws: For all sets, A, B, and C, (a) A (B C) = (A B) (A C) and
• Slide 9
• Cont. (b) A (B C) = (A B) (A C). 4. Identity Laws: For all sets A, (a)A = A, (b) A U = A. 5. Complement Laws: (a) A A = U, (b) A A = . 6. Double Complement Law: For all sets A, (A) = A. 7. Idempotent Laws: For all sets A, (a) A A = A, (b) A A = A. 8. Universal Bound Laws: For all sets A, (a)A U = U, (b) A = .
• Slide 10
• 9. De Morgans Laws: For all sets A and B, (a)(A B) = A B (b) (b) (A B) = A B. 10. Absorption Laws: For all sets A and B, (a)A (A B) = A, (b) A (A B) = A. 11. Complements of U and : (a)U = (b) = U. 12. Set Difference Law: For all sets A and B, A B = A B. Cont.
• Slide 11
• A Distributive Law for Sets For all sets A, B, and C, A (B C) = (A B) (A C). Proof: Suppose A and B are sets. We have to show A (B C) (A B) (A C). Suppose x A (B C). By definition of union, x A or x B C. Case 1 (x A): Since x A, then x A B by definition of union and also x A C by definition of union. Hence x (A B) (A C) by definition of intersection. Case 2 (x B C): Since x B C, then x B and x C by definition of intersection. Since x B, x A B and since x C, x A C, both by definition of union. Hence x (A B) (A C) by definition of intersection. In both cases, x (A B) (A C). Hence A (B C) (A B) (A C) (1)
• Slide 12
• Now we have to show (A B) (A C) A (B C) Suppose x (A B) (A C). By definition of intersection, x A B and x A C. Consider the two cases x A and x A. Case 1 (x A): Since x A, we can immediately conclude that x A (B C) by definition of union. Case 2 (x A): Since x A B, x is in at least one of A or B. But x is not in A; hence x is in B. Similarly, since x A C, x is in at least one of A or C. But x is not in A; hence x is in C. We have shown that both x B and x C, and so by definition of intersection, x B C. It follows by definition of union that x A (B C). In both cases x A (B C). Therefore, (A B) (A C) A (B C) .(2) Hence A (B C) = (A B) (A C). Cont.
• Slide 13
• Proof of De Morgans Law for Sets Prove that for all sets A and B, (A B) = A B. Proof: Suppose x (A B). That is x A B. But to say that x A B means that it is false that (x is in A or x is in B). By De Morgans laws of logic, this implies that x is not in A and x is not in B, which can be written x A and x B. Hence x A and x B by definition of complement. It follows, by definition of intersection, that x A B. So (A B) A B by definition of subset.
• Slide 14
• Cont Suppose x A B. intersection, x A and x B, and by definition of complement, x A and x B. In other words, x is not in A and x is not in B. By De Morgans laws of logic this implies that it is false that (x is in A or x is in B),which can be written x A B by definition of union. Hence, by definition of complement, x (A B).It follows that A B (A B) by definition of subset.
• Slide 15
• The Empty Set Theorem: If E is a set with no elements and A is any set, then E A. Proof: Suppose not. Suppose there exists a set E with no elements and a set A such that E A. Then there would be an element of E that is not an element of A But there can be no such element since E has no elements. This is a contradiction. [Hence the supposition that there are sets E and A, where E has no elements and E A, is false, and so the theorem is true.]
• Slide 16
• Uniqueness of the Empty Set There is only one set with no elements. Proof: Suppose E1 and E2 are both sets with no elements. E1 E2. since E1 has no elements. Also E2 E1 since E2 has no elements. Thus E1 = E2 by definition of set equality. A Set with No Elements Is a Subset of Every Set. Proof: If E is a set with no elements and A is any set, then E A. Suppose there exists a set E with no elements and a set A such that E A. Then there would be an element of E that is not an element of A.But there can be no such element since E has no elements. This is a contradiction.
• Slide 17
• Prove that for all sets A, B, and C, if A B and B C, then A C = . Proof: Suppose A, B, and C are any sets such that A B and B C. We must show that A C = . Suppose not. That is, suppose there is an element x in A C. By definition of intersection, x A and x C. Then, since A B, x B by definition of subset. Also, since B C, then x C by definition of subset again. It follows by definition of complement that x C. Thus x C and x C, which is a contradiction. So the supposition that there is an element x in A C is false, and thus A C = [as was to be shown]. A Proof for a Conditional Statement
• Slide 18
• Finding a Counterexample for identities For all sets A, B, and C, (A B) (B C) = A C. Counterexample 1: Let A = {1, 2, 4, 5}, B = {2, 3, 5, 6}, and C = {4, 5, 6, 7}. Then A B = {1, 4}, B C = {2, 3}, and A C = {1, 2}. Hence (A B) (B C) = {1, 4} {2, 3} = {1, 2, 3, 4}, whereas A C = {1, 2}. Since {1, 2, 3, 4} {1, 2}, we have that (A B) (B C) A C. Counterexample 2: Let A = , B = {3}, and C = . Then A B = , B C = {3}, and A C = . Hence (A B) (B C) = {3} = {3}, whereas A C = . Since {3} , we have that (A B) (B C) A C.
• Slide 19
• Construct an algebraic proof that for all sets A, B, and C, (A B) C = (A C) (B C). Proof: Let A, B, and C be any sets. Then (A B) C = (A B) C by the set difference law = C (A B) by the commutative law for = (C A) (C B) by the distributive law = (A C) (B C) by the commutative law for = (A C) (B C) by the set difference law. Deriving a Set Difference Property
• Slide 20
• Cont Construct an algebraic proof that for all sets A and B, A (A B) = A B. Proof: Suppose A and B are any sets. Then A (A B) = A (A B) by the set difference law = A (A B) by De Morgans laws = (A A) (A B) by the distributive law = (A B) by the complement law = (A B) by the commutative law for = A B by the identity law for = A B by the set difference law.
• Slide 21
• Boolean Algebra and Set Theory
• Slide 22
• Cont.
• Slide 23
• Barber puzzle In a certain town there is a male barber who shaves all those men, and only those men, who do not shave themselves. Question: Does the barber shave himself? Solution: Neither yes nor no. If the barber shaves himself, he is a member of the class of men who shave themselves. But no member of this class is shaved by the barber, and so the barber does not shave himself. On the other hand, if the barber does not shave himself, he belongs to the class of men who do not shave themselves. But the barber shaves every man in this class, so the barber does shave himself.
• Slide 24
• Lecture Summary Procedural Versions Properties of Sets Empty Set Properties Difference Properties Set Identities Boolean Algebra and Set theory Paradoxes ##### On the perimeter of excursion sets of shot noise random fields hbierme/Recherche/... · PDF file 2015-05-06 · ON THE PERIMETER OF EXCURSION SETS 3 use the framework and notations
Documents ##### Unit Guide ... Identify number sets in complex domain. 2. Use set notations to describe numbers. 3. Use interval notations to represent number sets. 4. Use real number line to express
Documents ##### Web view 2015-09-24 · Unit 1 Sets. Definitions. (Day 1). Sets: A collection of numbers or objects.. Element: Every number or object in set is called an element.. Notations ∈ =means
Documents ##### Sets and Languages - Indian Institute of Technology debdeep/teaching/FOCS/slides/SetsnLanguages.pdf · PDF file Basic notations for sets • For sets, we’ll use variables S, T,
Documents ##### Unit 6: Computer Software - Bangladesh Open · PDF fileUnit 6: Computer Software ... flowcharting and coding, instruction sets, procedures, and the like. ... notations. Assembly Language
Documents ##### SAILING MEMBERSHIPS NON-SAILING MEMBERSHIPS · PDF file SAILING MEMBERSHIPS NON -SAILING MEMBERSHIPS SAILING MEMBERSHIPS CONTINUED SENIOR MEMBERSHIP Full use of all Club facilities
Documents ##### Analytic Number Theory - Department forster/v/ann/annth_all.pdf · PDF file O. Forster: Analytic Number Theory 0. Notations and Conventions Standard notations for sets Z ring of all
Documents ##### Discrete Mathematics yi/Courses/DiscreteMath... · PDF file 2009. 10. 9. · Discrete Math The Theory of Sets (§2.1-§2.2, 2 hours) §2.1 Sets Basic Notations for Sets For sets,
Documents ##### SWE 621 FALL 2020 NOTATIONS FOR DESIGN tlatoza/teaching/swe621s20/ LaToza GMU SWE 621 Fall 2020 NOTATIONS SUPPORTING DESIGN VS NOTATIONS FOR COMMUNICATION Design notations sometimes
Documents ##### Manage Roster Instructions Add Memberships · PDF file 2017-09-05 · Add Memberships Page 3 of 7 OPTIONS FOR ADDING MEMBERSHIPS There are six ways to add memberships to your roster
Documents ##### Chapter 16 dialogue notations and design. Dialogue Notations and Design Dialogue Notations –Diagrammatic state transition networks, JSD diagrams, flow
Documents ##### Section 1.1 Objective: Sets of Numbers and Interval Notation The student will be able recognize basic definitions and notations used to express algebraic
Documents Documents