Boolean Algebra
Boolean Algebra
Lecture: 18, 19
Boolean Algebra
George Boole lived in England during the time
Abraham Lincoln was getting involved in
politics in the United States. Boole was a
mathematician who developed ways of
expressing logical processes using algebraic
symbols, thus creating a branch of
mathematics known as symbolic logic, or
Boolean algebra. Today, all our computers use
Boole's logic system - using microchips that
contain thousands of tiny electronic switches
arranged into logical gates.
Boolean Algebra
Boolean algebra is an algebra for the
manipulation of objects that can take on only
two values, typically true and false, although it
can be any pair of values.
Because computers are built as collections of
switches that are either on or off, Boolean
algebra is a very natural way to represent
digital information.
Boolean Addition
Sum of literals
A B A B
A BC
Boolean Multiplication
Product of literals
A.B
A.B
A.B.C
Commutative Law
Commutative Law for Addition
A+B=B+A
A
B
A+B
A+B
A
B
A.B
A.B
A
Associative Law
Associative Law for Addition
A + (B + C) = (A + B) + C
A+(B+C)
A
A+B
B
B
B+C
C
(A+B)+C
C
Associative Law
Associative Law for Multiplication
A.(B.C) = (A.B).C
A.(B.C)
A
A.B
B
B
B.C
C
(A.B).C
C
Distributive Law
A.(B + C) = A.B + A.C
A.(B+C)
A
A.B
B
B
B+C
A.B+A.C
A
A.C
C
C
7. A A A
8. A A 0
9. A A
10. A AB A
11. A A B A B
12.( A B)( A C ) A BC
Demorgans Theorems
First Theorem
A.B A B
A
A
A.B
A B
Second Theorem
A B A.B
B
A B
A.B
Demorgans Theorems
Any number of variables
X.Y.Z X Y Z
X Y Z X.Y.Z
Combination of variables
( A B.C).( A.C B) ( A B.C) ( A.C B)
Simplified Circuit
A
AB+A(B+C)+B(B+C)
B
C
B
A
C
B+AC
Simplify C+ BC
C+BC
= C+( B + C )
= ( C+ C )+ B
= 1+B
= 1
A( A+B)+(B + AA)(A + B )
= AA + AB +(B+ A) (A+B)
= AB + BA + BB +AA+AB
= AB + BA+ A+AB
=B(A+A) +A(1+B)
= B+A
AB ABC AC
Product-of-Sums form
( A B)( A B C)
( A B C)(C D E)(B C D)
( A B)( A B C)( A C)
A
D
B
A
C
B+AC+AD
A
B
B
C
D
A
C
(A+B)(B+C+D)(A+C)
( A B)(B C D) AB AC AD B BC BD
AC AD B
( A B) C ( A B)C ( A B)C A C BC