Академический Документы
Профессиональный Документы
Культура Документы
Minimization of Boolean
expressions
Example
Example
f(a,b,c,d) = m(3,7,11,12,13,14,15)
=a`b`cd + a`bcd + ab`cd + abc`d`+ abc`d + abcd` +
abcd
=cd(a`b` + a`b + ab`) + ab(c`d` + c`d + cd` +
cd )
=cd(a`[b` + b] + ab`) + ab(c`[d` + d] + c[d` + d])
=cd(a`[1] + ab`) + ab(c`[1] + c[1])
=ab+ab`cd + a`cd
=ab+cd(ab` + a`)
=ab+ cd(a + a`)(a`+b`)
= ab + a`cd + b`cd
= ab +cd(a` + b`)
Example
f(a,b,c,d) = M(0,1,2,4,5,6,8,9,10)
=m(3,7,11,12,13,14,15)
=[(a+b+c+d)(a+b+c+d`)
(a+b`+c`+d`)
(a`+b+c`+d`)(a`+b`+c+ d)
(a`+b`+c+ d`) (a`+b`+c`+d)
(a`+b`+c`+d`)]
Examples
B 0
1
A 0
1
1
0
1
f(A,B,C) =
m(0,3,5)=
A`B`C`+A`BC+AB
`C
C`
0
C
1
A`B` A`B
0 0 0 1
A B
1 1
A B`
1 0
1
A`B`C`
A`BC
AB`C
Maxterm example
(A+B) (A+B`) (A`+B`) (A`+B)
A`B` A`B AB
AB`
C
C`
C` C
f(A,B,C) = M(1,2,4,6,7)
=(A+B+C`)(A+B`+C)(A`+B+C) )(A`+B`+C) (A`+B`+C`)
Note that the complements are (0,3,5) which are the
minterms of the previous example
Example
Simplify f= A`BC`+ A B C`+ A B C using;
(a) Sum of minterms. (b) Maxterms.
f(A,B,C) = AB + BC
b-
F = B(A+C`)
f(A,B,C) = B(A + C)
Example
Simplify
f(A,B,C,D) = m(2,3,4,5,7,8,10,13,15)
A
A B
C D
00
0
01
00
1
13
1
2
10
11
14
10
13
15
1
14
(b )
A B
01
00
1
11
15
11
14
C
1
13
10
10
8
11
10
11
12
01
01
4
00
10
13
00
0
C D
10
8
01
12
A B
11
10
B
A
00
(a )
11
C D
10
10
8
11
11
12
01
15
01
4
00
00
11
C D
10
12
01
11
A B
15
11
14
10
(c)
(d )
AB
CD
00
0
01
00
1
13
11
2
11
14
C
1
10
13
11
14
C
1
13
15
11
14
10
(a )
(b )
(c)
10
10
8
11
10
11
12
01
01
4
00
15
00
0
CD
10
8
11
10
11
12
AB
01
01
4
00
15
00
0
CD
10
8
10
12
01
11
AB
f(A,B,C,D) = m(0,5,7,8,10,12,14,15)
A
A B
C D
00
0
00
01
00
13
15
1
2
11
00
01
11
12
13
14
00
00
01
14
10
C
1
10
8
1
5
11
10
12
13
15
11
1
3
11
1
1
11
A
0
15
10
C D
10
01
1
2
1
2
11
11
A B
1
3
15
(b )
1
1
(a )
01
B
A
00
13
10
B
A B
0
10
10
8
11
14
11
12
1
1
10
C D
01
4
01
11
1
3
00
1
5
C D
10
12
01
11
A B
1
2
14
10
10
(c)
(d )
Example
Example
Example
f(A,B,C,D) = m(1,2,4,6,9)
S te p 2
A B
C D
00
0
01
11
00
10
12
13
01
15
11
14
10
11
C
10
S te p 1
S te p 3
1
B
A B
C
00
0
01
6
1
1
00
01
11
10
1
1
1
1
0
5
1
B
10
C
AB
11
BC
00
01
11
10
1
1
Dont-care condition
Minterms that may produce either 0 or 1 for the function.
They are marked with an in the K-map.
This happens, for example, when we dont input certain
minterms to the Boolean function.
These dont-care conditions can be used to provide further
simplification of the algebraic expression.
(Example) F = A`B`C`+A`BC` + ABC`
d=A`B`C +A`BC + AB`C
F=A`+BC`
Five
variable K-maps
1
a` f
1
6
f(a,b,c,d,e) = m(0,5,7,13,15,16,21,23,29,31)
3
4
5
a`=0 map
a=1 map
6
7
8
1
0
1
1
1
1
1
8
1
9
2
0
1
1
1
1
1
1
1
2
1
2
2
2
3
1
2
1
3
1
7
2
4
2
a`=0 map
a=1 map
1
1
1
1
1
F1=a`b`c`d`e` + a`ce,
f(a,b,c,d,e) = f1+f2
F=(a+a`)ce +
(a+a`)b`c`d`e`
1
1
1
1
F2=ace + ab`c`d`e`