Boolean Algebra Manju
Boolean Algebra Manju
Boolean Algebra Manju
Table of Contents
1. Introduction to Boolean Algebra
2. Standard Forms : SOP and POS
3. K-Maps : 2-variable, 3-variable, 4-variable
Boolean Algebra
3
Introduction
Boolean Algebra provides the operations and rules for working with the set {0, 1}. The three
operations in Boolean Algebra that we will use most are Complementation, the Boolean sum and
Boolean product.
Boolean Algebra
4
Boolean Algebra
5
Boolean Algebra
6
Table of Contents
1. Introduction to Boolean Algebra
2. Standard Forms : SOP and POS
3. K-Maps : 2-variable, 3-variable, 4-variable
Boolean Algebra
12
Standard Forms
Canonical forms are basic forms obtained from the truth table of the function. These
forms are usually not used to represent the function as they are cumbersome to write
and it is preferable to represent the function in the least number of literals possible.
There are two types of standard forms:
1. Sum of Products (SOP) A boolean expression involving AND terms with one
or more literals each, OR’ed together.
2. Product of Sums (POS) A boolean expression involving OR terms with one or
more literals each, AND’ed together.
Boolean Algebra
13
2. We write the product terms for each input 2. We write the sum terms for each input
combination that gives high (1) output. combination that gives low (0) output.
3. We take the input variables if the value is 3. We take the input variables if the value is
1 and write the complement of the 0 and write the complement of the
variable if the value is 0 when writing the variable if the value is 1 when writing the
min terms. max terms.
4. Final expression is obtained by adding the 4. Final expression is obtained by
relevant product terms. multiplying the relevant sum terms.
Boolean Algebra
14
A B Y Y = A’B + AB
0 0 0 Y = B (A + A‘)
0 1 1 Y=B
1 0 0
1 1 1
Boolean Algebra
16
Y (A, B) = m(0, 2, 3) A B Y
Y= + + 0 0 1
Y = A’B’ + AB’ + AB
Y = B’ (A + A‘) + AB 0 1 0
Y = B’ + AB 1 0 1
Y = A + B’ Distributive Law 1 1 1
Boolean Algebra
17
or
1 0 0 1
F= + + + +
1 0 1 1
or
1 1 0 1
F= m(2, 4, 5, 6, 7)
1 1 1 1
Boolean Algebra
18
A B Y
Y = (A+B’) . (A’+B’)
0 0 1
Y = B’+A A‘
0 1 0 Y = B’
1 0 1 or
1 1 0 Y= ( , )
or
Y= M (1, 3)
Boolean Algebra
19
Table of Contents
1. Introduction to Boolean Algebra
2. Standard Forms : SOP and POS
3. K-Maps : 2-variable, 3-variable, 4-variable
Boolean Algebra
23
K-Maps
The Karnaugh map (K-map) is a method of simplifying Boolean algebra expressions.
K-Maps
Example 2
Now we will make a K-map for the expression: A’B’ + AB
Boolean Algebra
25
Wrong grouping
Boolean Algebra
26
Wrong grouping
Boolean Algebra
27
Proper grouping
Boolean Algebra
29
Rule 6 − Groups may overlap but there should be as few groups as possible.
Proper grouping
Rule 7 − The leftmost cell/cells can be grouped with the rightmost cell/cells and the topmost cell/cells
can be grouped with the bottommost cell/cells.
Proper grouping
Boolean Algebra
30
2 variable K-maps
There are 4 cells in the 2-variable k-map. It will look like:
The following table shows the positions of all the
possible outputs of 2-variable Boolean function on a
K-map.
A general representation of a 2
variable K-map plot is shown
below.
Boolean Algebra
31
2 variable K-maps
Boolean Algebra
32
3 variable K-maps
For a 3-variable Boolean function, there is a possibility of 8 output min terms. The general
representation of all the min terms using 3-variables is shown below:
3 variable K-maps
Boolean Algebra
35
4 variable K-maps
There are 16 possible min terms in case of a 4-variable Boolean function. The general
representation of minterms using 4 variables is shown below:
4 variable K-maps
Boolean Algebra
38