ch. 2 basic structures section 1 sets. principles of inclusion and exclusion | a b | = | a | + | b...
TRANSCRIPT
![Page 1: Ch. 2 Basic Structures Section 1 Sets. Principles of Inclusion and Exclusion | A B | = | A | + | B | – | A B| | A B C | = | A | + | B | + | C](https://reader036.vdocuments.us/reader036/viewer/2022083009/5697bfeb1a28abf838cb7de7/html5/thumbnails/1.jpg)
Ch. 2 Basic Structures
Ch. 2 Basic Structures
Section 1
Sets
![Page 2: Ch. 2 Basic Structures Section 1 Sets. Principles of Inclusion and Exclusion | A B | = | A | + | B | – | A B| | A B C | = | A | + | B | + | C](https://reader036.vdocuments.us/reader036/viewer/2022083009/5697bfeb1a28abf838cb7de7/html5/thumbnails/2.jpg)
Principles of Inclusion and ExclusionPrinciples of Inclusion and Exclusion
| A B | = | A | + | B | – | A B|
| A B C |
= | A | + | B | + | C | – | A B| – | A C |
– | B C | + | A B C |
| Ac | = | U | – | A |
![Page 3: Ch. 2 Basic Structures Section 1 Sets. Principles of Inclusion and Exclusion | A B | = | A | + | B | – | A B| | A B C | = | A | + | B | + | C](https://reader036.vdocuments.us/reader036/viewer/2022083009/5697bfeb1a28abf838cb7de7/html5/thumbnails/3.jpg)
Disjoint setsDisjoint sets
A & B are disjoint sets iff A B =
Example: A = {1, 2, 3} B = { 4, 5, 6}
![Page 4: Ch. 2 Basic Structures Section 1 Sets. Principles of Inclusion and Exclusion | A B | = | A | + | B | – | A B| | A B C | = | A | + | B | + | C](https://reader036.vdocuments.us/reader036/viewer/2022083009/5697bfeb1a28abf838cb7de7/html5/thumbnails/4.jpg)
Power SetPower Set
P(A) = The power set of a set A = the set of all subsets of A.
A P(S) iff A S | P( {{a, {b}}, a, {b} } ) | = 23
There is no set A s.t. |P(A)| = 0 There is a set A s.t. |P(A)| = 1 There is no set A s.t. |P(A)| = 3
![Page 5: Ch. 2 Basic Structures Section 1 Sets. Principles of Inclusion and Exclusion | A B | = | A | + | B | – | A B| | A B C | = | A | + | B | + | C](https://reader036.vdocuments.us/reader036/viewer/2022083009/5697bfeb1a28abf838cb7de7/html5/thumbnails/5.jpg)
Power SetPower Set
A = B iff P(A) = P(B)
Proof
“” Suppose that A=B. Then P(A) = P(B)
“” If P(A) = P(B), then A P(A) = P(B) and so A B
Similarly, B P(B) = P(A) and so B A
Therefore A =B
![Page 6: Ch. 2 Basic Structures Section 1 Sets. Principles of Inclusion and Exclusion | A B | = | A | + | B | – | A B| | A B C | = | A | + | B | + | C](https://reader036.vdocuments.us/reader036/viewer/2022083009/5697bfeb1a28abf838cb7de7/html5/thumbnails/6.jpg)
Power SetPower Set
P( ? ) = {, {a}, {a, }}
Note that: {}, {}, {}, {}
{2}{2, {2}}, {2} {2, {2}}, 2 {2, {2}} {{2}} {2, {2}}, {2}{2} a {{a}, {a, {a}} }
![Page 7: Ch. 2 Basic Structures Section 1 Sets. Principles of Inclusion and Exclusion | A B | = | A | + | B | – | A B| | A B C | = | A | + | B | + | C](https://reader036.vdocuments.us/reader036/viewer/2022083009/5697bfeb1a28abf838cb7de7/html5/thumbnails/7.jpg)
Some factsSome facts
A B = A B A A – B = A A B = A – B = B – A A = B A = A – B (A B)
![Page 8: Ch. 2 Basic Structures Section 1 Sets. Principles of Inclusion and Exclusion | A B | = | A | + | B | – | A B| | A B C | = | A | + | B | + | C](https://reader036.vdocuments.us/reader036/viewer/2022083009/5697bfeb1a28abf838cb7de7/html5/thumbnails/8.jpg)
Ch. 2 Basic Structures
Ch. 2 Basic Structures
Section 2
Set Operations
![Page 9: Ch. 2 Basic Structures Section 1 Sets. Principles of Inclusion and Exclusion | A B | = | A | + | B | – | A B| | A B C | = | A | + | B | + | C](https://reader036.vdocuments.us/reader036/viewer/2022083009/5697bfeb1a28abf838cb7de7/html5/thumbnails/9.jpg)
Set OperationsSet Operations
1. Union A B
2. Intersection A B
3. Complement Ac = Ā = U – A
complement of A w.r.t. to U
4. Difference A – B = A Bc
5. Generalized operations n
i
n
i 11
&
![Page 10: Ch. 2 Basic Structures Section 1 Sets. Principles of Inclusion and Exclusion | A B | = | A | + | B | – | A B| | A B C | = | A | + | B | + | C](https://reader036.vdocuments.us/reader036/viewer/2022083009/5697bfeb1a28abf838cb7de7/html5/thumbnails/10.jpg)
ExampleExample
A = set of students who live 1 mile of school
B = set of students who walk to school
1. A B = set of students who live 1 mile of school OR walk to it.
2. A B = set of students who live 1 mile of school AND walk to it.
3. A – B = set of students who live 1 mile of school but not walk to it.
![Page 11: Ch. 2 Basic Structures Section 1 Sets. Principles of Inclusion and Exclusion | A B | = | A | + | B | – | A B| | A B C | = | A | + | B | + | C](https://reader036.vdocuments.us/reader036/viewer/2022083009/5697bfeb1a28abf838cb7de7/html5/thumbnails/11.jpg)
Set IdentitiesSet Identities
See Table 1 in page 124 Identity Laws:
A = A
A U = A Dominations Laws:
A U = U
A =
![Page 12: Ch. 2 Basic Structures Section 1 Sets. Principles of Inclusion and Exclusion | A B | = | A | + | B | – | A B| | A B C | = | A | + | B | + | C](https://reader036.vdocuments.us/reader036/viewer/2022083009/5697bfeb1a28abf838cb7de7/html5/thumbnails/12.jpg)
Set IdentitiesSet Identities
Idempotent Laws:
A A = A
A A = A Complementation Law:
(Ac)c = A Commutative Laws:
A B = B A
A B = B A
![Page 13: Ch. 2 Basic Structures Section 1 Sets. Principles of Inclusion and Exclusion | A B | = | A | + | B | – | A B| | A B C | = | A | + | B | + | C](https://reader036.vdocuments.us/reader036/viewer/2022083009/5697bfeb1a28abf838cb7de7/html5/thumbnails/13.jpg)
Set IdentitiesSet Identities
Associative Laws: A (B C) = (A B) C A (B C) = (A B) C Distributive Laws: A (B C) = (A B) (A C) A (B C) = (A B) (A C) De Morgan’s Laws: (A B)c = Bc Ac (A B)c = Bc Ac
![Page 14: Ch. 2 Basic Structures Section 1 Sets. Principles of Inclusion and Exclusion | A B | = | A | + | B | – | A B| | A B C | = | A | + | B | + | C](https://reader036.vdocuments.us/reader036/viewer/2022083009/5697bfeb1a28abf838cb7de7/html5/thumbnails/14.jpg)
Set IdentitiesSet Identities
Absorption Laws:
A (A B) = A
A (B C) = A Complement Laws:
A Ac = A Ac = U
![Page 15: Ch. 2 Basic Structures Section 1 Sets. Principles of Inclusion and Exclusion | A B | = | A | + | B | – | A B| | A B C | = | A | + | B | + | C](https://reader036.vdocuments.us/reader036/viewer/2022083009/5697bfeb1a28abf838cb7de7/html5/thumbnails/15.jpg)
Proof of A=BProof of A=B
Show that A B and B AShow that x (x A x B) Direct proof
![Page 16: Ch. 2 Basic Structures Section 1 Sets. Principles of Inclusion and Exclusion | A B | = | A | + | B | – | A B| | A B C | = | A | + | B | + | C](https://reader036.vdocuments.us/reader036/viewer/2022083009/5697bfeb1a28abf838cb7de7/html5/thumbnails/16.jpg)
ExamplesExamples
(A B)c = Bc Ac
Proof
(A B)c = { x U | x A B }
= { x U | (x A B) }
= { x U | x A x B }
= { x U | x A x B }
= { x U | x A } { x U | x B }
= Ac Bc
![Page 17: Ch. 2 Basic Structures Section 1 Sets. Principles of Inclusion and Exclusion | A B | = | A | + | B | – | A B| | A B C | = | A | + | B | + | C](https://reader036.vdocuments.us/reader036/viewer/2022083009/5697bfeb1a28abf838cb7de7/html5/thumbnails/17.jpg)
Another proof of (A B)c = Bc Ac Another proof of (A B)c = Bc Ac
x (A B)c x A B
x A or x B
x Ac or x Bc
x Ac Bc