Boolean Algebra-New
Boolean Algebra-New
• Boolean Value
A value representing the state of a variable. It
can be either True (1) or False (0).
• Literal
A variable or the complement of the variable
in Boolean Algebra is called the Literal.
• Logic Gate
A logic gate is a digital circuit that can perform
a specific logical operation. There are 7 main
logic gates used in digital electronics, they are
AND gate, OR gate, NOT gate, NOR gate, NAND
gate, XOR gate, and XNOR gate.
Boolean Function or Expression
• It is a logical expression that consists of
Boolean variables and logical operators
• The value for a logical function can either be 0
or 1.
• The Boolean function may be represented as
An algebraic expression or
A truth table
Operator Precedence
• Expression is scanned from left to right.
• First, expressions enclosed within parantheses
are evaluated.
• Second, all complement (NOT) operations are
performed.
• Third, (AND) operations are performed.
• Lastly; OR operations are performed.
Operator Precedence
• For example; when having a Boolean
expression below, precedence would be;
Representation as an Algebraic
Expression
• A logical function can be represented as
W X Y Z
1 1 0 0 1 0 0
1 0 0 1 0 1 1
0 1 1 0 0 1 1
0 0 1 1 0 1 1
Generally;
A1 A2 A3 ... An A1 A2 A3 ... An
Proof by truth table
P Q P’ Q’ P+Q (P+Q)’ P’.Q’
1 1 0 0 1 0 0
1 0 0 1 1 0 0
0 1 1 0 1 0 0
0 0 1 1 0 1 1
Solution
a )( A B ) C ( A B )C ( A B )C
b)( A B ) CD ( A B )CD ( A B )(C D ) A B (C D )
c )( A B )C D E F (( A B )C D ( E F ) ( A B C D ) E F
Examples
Qn2. Simplify A + A’ . B.
Solution:
Using Distributive Law
A + A’ . B = (A + A’) . (A + B)
Using Complement law
= (1) . (A + B)
Using AND law
=A+B
Example: Using Boolean algebra techniques, simplify this
expression:
AB + A(B + C) + B(B + C)
Solution
The following is not necessarily the only approach.
AB + A(B + C) + B(B + C)
=AB + AB + AC + BB + BC (by distributive law )
=AB + AB + AC + B + BC(from (BB = B) )
=AB + AC + B + BC (from (AB + AB = AB) )
=AB + AC + B (from(B + BC = B) )
=B + AC (from (AB + B = B) )
3. Simplify (A + B) . (A + B’) + (B . B’).
Solution:
(A + B) . (A + B’) + (B . B’) = (A + B) . (A + B’) + (0)
= A + (B . B’)
= A + (0)
=A
Simplify the following Boolean expression:
(X + Y).(X’ + Y).
Solution:
(X + Y).(X’ + Y) = XX’ + XY + X’Y + YY (Distributive law)
= 0 + XY + X’Y + Y (Complement and idempotent law)
= XY + X’Y + Y (Identity law)
= (X + X’) .Y + Y (Distributive law)
= 1.Y + Y (Complement law)
=Y+Y (Identity law)
=Y (Idempotent law)
Thus, the simplified Boolean expression is (X + Y).(X’ + Y) = Y.
Qn4: Simplify the following Boolean algebra
p q r p qr pq
' ' ' ' '
Solution:
Solution:
p ' q ' r ' p ' qr pq ' p ' (q ' r ' qr ) pq '
p (1) pq
' '
p ' pq '
( p ' p ).( p ' q ' )
(1).( p ' q ' )
p q ' '
Review Questions
Simplify the following Boolean functions
i)(A B) . (A B’ ) (B . B’ ).
ii)AB A(B C) B(B C)
iii)x x y
iv ) x ( x y )
v) x y z x y z x y
vi ) x y x z y z
vii )( x y ) ( x z ) ( y z )
viii)A B + A (B + C) + B(B + C)