Professional Documents
Culture Documents
p and q (p ^ q) p or q (p v q)
p
p q
q
~p ~q ~r
~q ~r
3.
4. ~p
5.
6.
7. ~r
8.
3. [(not p or not r) or not q] and (not p and r)
~p
~r
~p r
~q
4. (p and q) or (p and r)
p q
p r
5. p and (q or r)
q
p
r
Sets – Collection of well-defined objects.
Example:
A={a,e,i,o,u}
Element/s or Member/s
Curly Bracket
Set Name
2 Kinds of Sets
Finite – can count until the last element.
Infinite – can count but not until the last element.
*Countably Infinite – neither finite or infinite.
Set Notation
Roster Method / Listing Method
A={1,2,3,4,5,…}
B={a,e,i,o,u}
C = { hearts , spades , diamonds , clubs }
D = { -1 , 0 , 1 , 2 , 3 , … }
E={0,1,2,3,4,…}
F = { blue , red , yellow }
G = { January , March , May , July , August , October , December }
H = { Monday , Tuesday , Wednesday , Thursday , Friday , Saturday , Sunday }
8. Power Set
n = cardinality
A={1,2,3}
2ⁿ = 2³ = 8
P(A) = { { 1 , 2 , 3 } , { 1 , 2 } , { 1 , 3 } , { 2 , 3 } , { 1 } , { 2 } , { 3 } , ∅ }
P(A) means “power set of A”
9. Universal Set
U = Union (operation) | U = Universal (set)
Operation on Sets
1. Union
2. Intersection
3. Disjoint or Joint Set
4. Complement
5. Product
6. Subtraction
Operation on Sets
Ex: Ac = { 2 , 4 , 6 , 8 , 10 }
A U Ac = U
Ec = { 4 , 5 , 6 , 7 , 8 , 9 , 10 }
E U Ec = U
Fc = { } or ∅
5. Product – distribution
ExF={{1,x},{1,y},{2,x},{2,y},{3,x},{3,y}}
FxE={{x,1},{x,2},{x,3},{y,1},{y,2},{y,3}}
6. Subtraction
Ex: C – E = { 4, 5 }
E – C = { } or ∅
B – D = { 2, 4 }
D – B = { 7, 9 }
D – F = { 6, 7 , 8 , 9 , 10 }
F–D={x,y}
U = { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 }
A={1,3,5,7,9}
B = { 2 , 4 , 6 , 8 , 10 }
C={1,2,3,4,5}
D = { 6 , 7 , 8 , 9 , 10 }
E={1,2,3}
F={ x,y}
G={3,1,2}