Boolean Algebra and Venn Diagrams
Boolean Algebra and Venn Diagrams
UNIVERSITY
EGR 2400
Instructor: Steven Louis
This presentation includes physical representation of:
? 1. Gates, practice
2. Basic Boolean algebra notation
3. Boolean axioms and theorems from text
4. Venn diagram introduction
5. Axioms
6. Theorems
EGR 2400
Instructor: Steven Louis
✓
This presentation includes physical representation of:
1. Gates, practice
? 2. Basic Boolean algebra notation
3. Boolean axioms and theorems from text
4. Venn diagram introduction
5. Axioms
6. Theorems
X Y NAND
X 0 0 1
~(X & Y)
Y 0 1 1
NAND 1 0 1
1 1 0
X Y NOR
0 0 1
X ~(X|Y)
0 1 0
Y
1 0 0
NOR
1 1 0
Boolean Algebra and Venn Diagrams 8
XOR Boolean notation
X XOR Boolean notation
X^Y (Verilog)
Y XOR
X⊕Y (textbook)
X Y XOR X$Y (ABEL)
0 0 0 X@Y
0 1 1 xor(Z,X,Y) (Verilog)
1 0 1
1 1 0
X Y XNOR
0 0 1
X ~(X^Y) 0 1 0
Y 1 0 0
XNOR 1 1 1
For example,
Second question,
EGR 2400
Instructor: Steven Louis
✓
This presentation includes physical representation of:
1. Gates, practice
✓ 2. Basic Boolean algebra notation
? 3. Boolean axioms and theorems from text
4. Venn diagram introduction
5. Axioms
6. Theorems
EGR 2400
Instructor: Steven Louis
✓
This presentation includes physical representation of:
1. Gates, practice
✓
2. Basic Boolean algebra notation
✓
3. Boolean axioms and theorems from text
? 4. Venn diagram introduction
5. Axioms
6. Theorems
Greek = Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο Π Ρ Σ Τ Υ Φ Χ Ψ Ω
Greek = Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο Π Ρ Σ Τ Υ Φ Χ Ψ Ω
Greek English
ΑΒΕ
ΖΗΙ CDFGJL
ΓΔΘΛΞΠ ΣΦ
ΚΜΝ QRSUV
ΨΩ
ΟΡΤ W
ΥΧ
English
Greek
ΖΙ DFGJLQ
ΔΘΛΞΣΨΩ ΚΝΥ RSUVW
ΑΒΕ
ΗΜΟ
ΡΤΧ
Γ ΦΠ С
English&Russian&~Greek = C
Greek&Russian&~English = Γ Φ Π
БДЁЖЗИЙКЛУЦЧ
Greek&Russian&English = Α Β Ε Η Μ Ο Ρ Τ Χ ШЩЪЫЬЭЮЯ
X Y F=X
Legend:
With color means
“true” or “1”
No color means
“False” or “0”
X Y F=X
X Y F=X
Legend:
With color means
“true” or “1”
No color means
“False” or “0”
X Y F = ~X
X Y F=Y
X Y F = ~Y
X Y F = X|Y
X Y F = ~(X|Y)
X Y F = X&Y
X Y F = ~(X&Y)
X Y
F = ~X
Next slide:
X Y F=X&~Y
F=Y
F=~X&~Y
F=~(X&Y)
X Y
F = ~X&Y = (~X)&Y
X Y
F = X&~Y
Next slide:
F = ~X&~Y
X Y F=1
(This one looks a
lot like F=~(X|Y) ! ) F=0
X Y
F = ~(X&Y)
X Y
F=1
F=0
X Y
EGR 2400
Instructor: Steven Louis
✓
This presentation includes physical representation of:
1. Gates, practice
✓
2. Basic Boolean algebra notation
✓
3. Boolean axioms and theorems from text
✓
4. Venn diagram introduction
? 5. Axioms
6. Theorems
F
NOT
NOT F
~ X Y
= X Y
0 1
1 0
~0 = 1
~1 = 0
~ X Y
= X Y
&
0&0=0
=
0&1=0
1&0=0
1&1=1
Boolean Algebra and Venn Diagrams 30
Axioms #2
&
0&0=0
=
0&1=0
1&0=0
1&1=1
Boolean Algebra and Venn Diagrams 31
Axioms #2
&
0&0=0
=
0&1=0
1&0=0
1&1=1
Boolean Algebra and Venn Diagrams 32
Axioms #3
0|0=0
=
0|1=1
1|0=1
1|1=1
Boolean Algebra and Venn Diagrams 33
Axioms #3
0|0=0
=
0|1=1
1|0=1
1|1=1
Boolean Algebra and Venn Diagrams 34
Axioms #3
0|0=0
=
0|1=1
1|0=1
1|1=1
Boolean Algebra and Venn Diagrams 35
OAKLAND
UNIVERSITY
EGR 2400
Instructor: Steven Louis
✓
This presentation includes physical representation of:
1. Gates, practice
✓
2. Basic Boolean algebra notation
✓
3. Boolean axioms and theorems from text
✓
4. Venn diagram introduction
?
✓
5. Axioms
6. Theorems
X X|0 = X
Y
OR
X Y OR X Y | X Y = X Y
0 0 0
0 1 1
1 0 1
1 1 1
Boolean Algebra and Venn Diagrams 37
Theorem: Identity element
X&Y
X
Y
AND X Y & X Y = X Y
X Y AND
0 0 0
0 1 0
1 0 0 X&0 = 0
1 1 1
X|1 = 1
X
Y
OR
X Y OR X Y | X Y = X Y
0 0 0
0 1 1
1 0 1
1 1 1
Boolean Algebra and Venn Diagrams 38
Theorem: Double negation
~X
X
NOT
X NOT
0 1
1 0
~(~X)=X
~ X Y = X Y 1st Negation
~ X Y = X Y 2nd Negation
X X|Y = Y|X
Y
OR
X Y OR
0 0 0 X Y
0 1 1
1 0 1
1 1 1
Boolean Algebra and Venn Diagrams 40
Theorem: Complement rule
X&Y
X
Y
AND X Y & X Y = X Y
X Y AND
0 0 0
0 1 0
1 0 0 X&~X = 0
1 1 1
X|~X = 1
X
Y
OR
X Y OR X Y | X Y = X Y
0 0 0
0 1 1
1 0 1
1 1 1
Boolean Algebra and Venn Diagrams 41
Theorem: Idempotency
X&Y
X
Y
AND X Y & X Y = X Y
X Y AND
0 0 0
0 1 0
1 0 0 X&X = X
1 1 1
X|X = X
X
Y
OR
X Y OR X Y | X Y = X Y
0 0 0
0 1 1
1 0 1
1 1 1
Boolean Algebra and Venn Diagrams 42
Theorem: Associative rule
X&Y
X
Y X Y
AND
X Y AND Z
0 0 0
0 1 0
1 0 0 X&(Y&Z) = (X&Y)&Z
1 1 1
X|(Y|Z) = (X|Y)|Z
X
Y
OR
X Y
X Y OR
0 0 0
0 1 1 Z
1 0 1
1 1 1
Boolean Algebra and Venn Diagrams 43
Theorem: Distributive rule (slide 1)
X&Y
X
X Y X Y X Y
Y
AND & =
Z Z Z
X Y AND
0 0 0
0 1 0
X (Y|Z)
1 0 0
1 1 1 X Y X Y X Y
| =
X Z Z Z
Y
OR X&Y X&Z
X Y OR Distributive rule: Alternate notation:
0 0 0
0 1 1 X&(Y|Z) = X&Y | X&Z X(Y+Z) = XY + XZ
1 0 1
1 1 1 X|(Y&Z) = (X|Y)&(X|Z) X+YZ = (X+Y)(X+Z)
Boolean Algebra and Venn Diagrams 44
Theorem: Distributive rule (slide 2)
X&Y
X
X Y X Y X Y
Y
AND | =
Z Z Z
X Y AND
0 0 0
0 1 0
X (Y&Z)
1 0 0
1 1 1 X Y X Y X Y
& =
X Z Z Z
Y
OR X|Y X|Z
X Y OR Distributive rule: Alternate notation:
0 0 0
0 1 1 X&(Y|Z) = X&Y | X&Z X(Y+Z) = XY + XZ
1 0 1
1 1 1 X|(Y&Z) = (X|Y)&(X|Z) X+YZ = (X+Y)(X+Z)
Boolean Algebra and Venn Diagrams 45
Theorem: Absorption
X&Y
X
Y
AND X Y & X Y = X Y
X Y AND
0 0 0
0 1 0
1 0 0 X&(X|Y) = X&X|X&Y = X|X&Y = X&(1|Y) = X&1 = X
1 1 1
X|(X&Y) = X&(1|Y) = X&1 = X
X
Y
OR
X Y OR X Y | X Y = X Y
0 0 0
0 1 1
1 0 1
1 1 1
Boolean Algebra and Venn Diagrams 46
Theorem: Adjacency
X&Y
X
Y
AND X Y | X Y = X Y
X Y AND
0 0 0
0 1 0 X&Y | X&~Y = X
1 0 0
1 1 1
X
(X|Y)&(X|~Y)=X
Y
OR
X Y OR X Y & X Y = X Y
0 0 0
0 1 1
1 0 1
1 1 1
Boolean Algebra and Venn Diagrams 47
Theorem: Simplification
X&Y
X
Y
AND X Y & X Y = X Y
X Y AND
0 0 0
0 1 0
1 0 0
1 1 1 X&(~X|Y) = X&Y
X
Y
X | ~X&Y = X|Y
OR
X Y OR X Y | X Y = X Y
0 0 0
0 1 1
1 0 1
1 1 1
Boolean Algebra and Venn Diagrams 48
Theorem: De Morgan
X&Y
X
Y
AND Let’s take these one at a time…
X Y AND
0 0 0
0 1 0
1 0 0
1 1 1 ~(X&Y&Z&…) = ~X | ~Y | ~Z | ~…
X Y X Y X Y X Y
Z Z Z Z
X&Y&Z ~X ~Y ~Z
X Y
~(X&Y&Z) ~X | ~Y | ~Z
Z
X Y X Y X Y X Y
Z Z Z Z
X|Y|Z ~X ~Y ~Z
X Y
~(X|Y|Z) ~X & ~Y & ~Z
Z
EGR 2400
Instructor: Steven Louis
✓
This presentation includes physical representation of:
1. Gates, practice
✓2. Basic Boolean algebra notation
✓3. Boolean axioms and theorems from text
✓4. Venn diagram introduction
✓5. Axioms
✓6. Theorems