Chapter-2: Boolean Algebra: (2m-1,3m-1,5m-1, Total 10m)
Chapter-2: Boolean Algebra: (2m-1,3m-1,5m-1, Total 10m)
[2m-1,3m-1,5m-1, total=10m]
• Boolean algebra is concept which deals with Boolean values (1 and 0) and
logical operators(NOT, OR and AND).
• It is also called “switching algebra”
• It is suitable for designing the electronic circuits
• Logical statement or truth function: A sentence which can determined to be
TRUE or FALSE is called logical statement or truth function
Ex: X OR Y AND Z
Y NOT X OR Z
Truth table: It is a table which represents all possible values for the logical variable
along with result for the different combinations of values
Ex:
X Y X+Y
0 0 0
0 1 1
1 0 1
1 1 1
Logical operators
1. NOT operator
2. OR operator
3. AND operator
1. NOT operator
• NOT operator operates on one variable only
• The operation performed by this operator is called “complementation”
• The symbol we use for this operator is bar(-).
• We represent NOT X as ̅ X (complement of X).
Truth table:
X ̅
X
0 1
1 0
Venn diagram:
X
𝑋̅
̅𝑥
2. OR operator
3. AND operator
Venn diagram
Evaluation Boolean expression using truth table
X Y XY X+XY
0 0 0 0
0 1 0 0
1 0 0 1
1 1 1 1
2. XYZ̅ +X̅ ̅
YZ
̅ (𝒁
3X𝒀 ̅ +Y𝒁
̅ )+ 𝒁
̅
̅]
̅ + 𝑪)+ 𝑪
3. A[ (𝑩
1. ̅
X̅ ̅Y
Y+X
X Y ̅
X ̅
Y ̅
X̅Y ̅
XY ̅
X̅ ̅Y
Y+X
0 0 1 1 1 0 1
0 1 1 0 0 1 1
1 0 0 1 0 0 0
1 1 0 0 0 0 0
2. XYZ̅ +X̅ ̅
YZ
X Y Z X̅ ̅
Y Z̅ XYZ̅ X̅ ̅
YZ XYZ̅
+X̅ ̅
Y
Z
0 0 0 1 1 1 0 0 0
0 0 1 1 1 0 0 1 1
0 1 0 1 0 1 0 0 0
0 1 1 1 0 0 0 0 0
1 0 0 0 1 1 0 0 0
1 0 1 0 1 0 0 0 0
1 1 0 0 0 1 1 0 1
1 1 1 0 0 0 0 0 0
̅ (𝒁
3. X 𝒀 ̅ +Y𝒁
̅ )+ 𝒁
̅
X Y Z ̅
Y Z̅ ̅
X𝒀 ̅
Y𝒁 ̅ +Y𝒁
𝒁 ̅ X𝒀̅ (𝒁
̅ X𝒀̅ (𝒁̅
+Y𝒁̅) +Y𝒁̅ )+ 𝒁
̅
0 0 0 1 1 0 0 1 0 1
0 0 1 1 0 0 0 0 0 0
0 1 0 0 1 0 1 1 0 1
0 1 1 0 0 0 0 0 0 0
1 0 0 1 1 1 0 1 1 1
1 0 1 1 0 1 0 0 0 0
1 1 0 0 1 0 1 1 0 1
1 1 1 0 0 0 0 0 0 0
̅]
̅ + 𝑪)+ 𝑪
4. A[ (𝑩
Logic gate
Gate: A gate is simply an electronic circuit which operates on one or more input
signals and produces an output signal.
X X̅
0 1
1 0
Standard symbol
2. OR gate
• Def: It is a gate which accepts two or more input signals and
produces one output signal. The output signal is the logical
addition of input signals.
• We represent X OR Y as X+Y.
Truth table:
X Y X+Y
0 0 0
0 1 1
1 0 1
1 1 1
Standard symbol:
3. AND gate
• Def: It is a gate which accepts two or more input signals and
produces one output signal. The output is the logical multiplication
of input signals.
• We represent X AND Y as X.Y
Truth table:
X Y X.Y
0 0 0
0 1 0
1 0 0
1 1 1
Standard symbol:
Basic postulates of Boolean algebra
Def: The fundamental laws of Boolean algebra are called basic postulates of
Boolean algebra
Principle of duality
It states that starting with a Boolean relation and another Boolean relation can be
derived by
Proof:
a)X+X=X
1.Using Proof by perfect induction
If X=0
LHS= X+X
=0+0
=0
=X=RHS
If X=1
LHS= X+X
=1+1
=1
=X=RHS
X+X=X
2. Using truth table
X X X+X
0 0 0
1 1 1
b)X.X=X
1. Using proof by perfect induction
If X=0
LHS=X.X
=0.0
=0
=X=RHS
If X=1
LHS=X.X
=1.1
=1
=X=RHS
X.X=X
X X X.X
0 0 0
1 1 1
Proof:
1. Using proof by perfect induction method
If X=0
𝑋̅ = 0̅=1
̿=1̅=0=X=RHS
X
If X=1
𝑋̅ = 1̅=0
LHS=X̿=0̅=1=X=RHS
2. Using truth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=0)
=0+0
=0
=RHS
Therefore ̅̅̅̅̅
X. Y ̅+Y
=X ̅
Note: “Break the line , change the sign to demorganise the Boolean expression”
Sol
̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
̅̅̅̅
=AB + A + AB
̅̅̅̅̅̅̅̅
(𝑋 + 𝑌=𝑋̅. 𝑌̅)
̿̿̿̿ .𝐴
=𝐴𝐵 ̅̅̅̅̅̅̅̅̅̅
+ 𝐴𝐵
=AB.(𝐴̅. ̅̅̅̅
𝐴𝐵)
= A. 𝐴̅.B+ A. 𝐴̅.B. 𝐵̅
=0.B+0.0=0+0
=0
Ex: A, B’ and X
• A Boolean expression contains two important terms. They
are
1. Minterm 2. Maxterm
X Y Z F MINTERMS
0 0 0 0
0 0 1 1 X’Y’Z
0 1 0 1 X’YZ’
0 1 1 0
1 0 0 1 XY’Z’
1 0 1 0
1 1 0 0
1 1 1 1 XYZ
2. Product Of Sums(POS)
Def: When a Boolean is purely expressed as product of maxterms, it is
said to be in canonical SOP form.
Ex: (X+Y).(X’+Y)
1. Convert (A+C).(C+D) into canonical POS form
Sol: (A+C).(C+D)
Add (missing
̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
variable).( 𝑚𝑖𝑠𝑠𝑖𝑛𝑔 𝑣𝑎𝑟𝑎𝑖𝑏𝑙𝑒)
=(A+C+D. 𝐷̅ ).(C+D+A. 𝐴̅)
(x+yz=(x+y).(x+z))
(A+C+D).(A+C+𝐷 ̅ ).(C+D+A).(C+D+𝐴̅
)
Remove duplicate terms
=(A+C+D) .(A+C+𝐷 ̅ ) (𝐴̅+C+D)
(000 001 100)
= M0.M1.M4
=π(0,1,4)
2. Convert (X+Y)(Y+Z)(Z+X) into canonical product of sums form
3. Express the Product of sums from the boolean function F and truth
table is given below
X Y Z F Maxterms
0 0 0 1
0 0 1 0 X+Y+Z’
0 1 0 1
0 1 1 0 X+Y’+Z’
1 0 0 1
1 0 1 0 X’+Y+Z’
1 1 0 1
1 1 1 1
Multiply all the maxterms i.e
(X+Y+Z’).(X+Y’+Z’).(X’+Y+Z’)
1. Algebraic method
2. Karnaugh map method
1. Algebraic method
1. simplify A𝐵̅C𝐷
̅ +A𝐵̅𝐶𝐷+ABC𝐷̅ +ABCD algebraically
= A𝐵̅C𝐷̅ +A𝐵̅𝐶𝐷+ABC𝐷 ̅ +ABCD
= A𝐵̅C (𝐷
̅ +D)+ABC(𝐷
̅ +D)
= A𝐵̅C(1)+ABC(1) (𝐷 ̅ +D=1)
= A𝐵̅C+ABC
=AC(𝐵̅+B)
=AC(1)
=AC
2. Reduce the expression ̅̅̅̅
𝑋𝑌+𝑋̅+XY Using algebraic method
X
̅
0𝑿 ̅𝐘
𝑿 ̅ ̅Y
𝑿
m0 m1
0 1
̅
X𝐘 XY
1 X m3
m2
2 3
3 variable K-map
YZ ̅ 𝐙̅
00 𝐘 ̅Z
01𝐘 11 YZ 10 Y𝐙̅
X
̅
0𝑿 0 1 3 2
1 X
4 5 7 6
4 Variables K-map
0 1 3 2
4 5 7 6
WX
W’X’ 00
12 13 15 14
W’X 01 8 9 11 10
WX 11
WX’ 10
Groups in K-map
Map rolling: Map rolling is defines as its left edges are touching the right edges or
• It is very important property of K-map and all opposite edges squares and
corner squares are to be brought together to form a group
Overlapping group: It is a group in which the same 1 is encircled with other group
Redundant group: It is a group in which all 1’s are encircled with other groups (pair,
quad and octet)
cd 𝑐̅ 𝑑̅ 00 𝑐̅d 01 c d 11 c 𝑑̅ 10
ab
0 1 1 1
𝑎̅ 𝑏 ̅ 00
0 1 3 2
1 1 1 0
𝑎̅b 01
4 5 7 6
1 1 1 0
a b 11
12 13 15 14
0 1 1 0
a 𝑏̅ 10
8 9 11 10
Groups:
Pair: m2+m3
=𝑎̅b𝑐̅(𝑑̅+d)+ a b𝑐̅(𝑑̅+d)
=𝑎̅b𝑐̅(1)+ a b𝑐̅(1)
=𝑎̅b𝑐̅+ a b𝑐̅
= b𝑐̅(𝑎̅+a)
= b𝑐̅ (1)
= b𝑐̅
Pair: m2+m3
=𝑎
̅𝑏 ̅ c 𝑑̅+𝑎̅ 𝑏 ̅ c d
=𝑎̅ 𝑏 ̅ c( 𝑑̅+d)
=𝑎̅ 𝑏 ̅ c(1)
=𝑎̅ 𝑏 ̅ c
d+ b𝑐̅+𝑎̅ 𝑏 ̅c
1
0 3 2
a’b 01 0 0 1 0
4 5 7 6
0 0 1 0
ab 11
13 15
12 14
1 0 0 1
ab’ 10
8
9 11 10
WX
1 0 0 0
W’X’00
0 1 3 2
0 0 0
W’X 01 1
5 7
4 6
1 1 0
WX 11 1
12 13 15 14
1 1 1 1
WX’ 10
8 9 11 10
Redundant group
Groups:
Quad1: m0+m4+m12+m8 (Y’Z’)
Quad2:m13+m15+m9+m11 (WZ)
̅
0 𝑿 0 1 3 2
1 X
4 5 7 6
5. Draw the K-map for the following expression and reduce the expression
m2+m3+m5+m7+m9+m11+m13
CD C+D 00 ̅ 01
C+𝐷 𝐶̅ +𝐷
̅ 11 𝐶̅ +D 10
AB
A+B 00 0 1 1 0
0 1 3 2
0
A+ 𝐵̅ 01 1 1 1
4 5 7 6
1 1 0
𝐴̅ + 𝐵̅ 11 1
12 13 15 14
1 1 0
0
𝐴̅ +B 10
8 9 11 10
Redundant group