SlideShare une entreprise Scribd logo
1  sur  51
Boolean Algebra
Gagan Deep
Rozy Computech Services, 3rd Gate, K.U.,
Kurukshetra
Boolean Algebra
• BOOLEAN Algebra was developed by George
Boole (1815- 1864), an English mathematician
and logician.
• The credit for applying the laws of Boolean
algebra goes to Claude. E. Shannon, an electrical
engineer. Claude. E. Shannon in the year 1938,
suggested that Boolean algebra can be applied to
problems arising in telephone switching circuits
and for this reason Boolean algebra is also known
as Switching Algebra.
• The other noteworthy persons to realise the
significance of this algebra were August De-
Morgan, Alfred North -White Head and Beltrand
Russell..
• Perhaps no one at that time might have realised
that this abstract algebra was going to result in
development of modern high speed digital
computers, which have revolutionised the whole
world today.
• In fact Boolean algebra placed the theory of
switching circuits on firm mathematical footings,
which resulted in simplification of these circuits
by simple mathematical methods.
• Before discussing the Boolean algebra and its
applications to switching circuits, it is important
to have the knowledge of the logical statements
and various operations that can be performed on
these statements, because Boolean algebra deals
with these statements
Logical Statements
• A computer may be programmed to make
decisions based on certain statement.
• The truth and falsity of statement is know its
truth value.
• A statement is either true or false, but not
both.
• A statement having a truth value is called
Logical Statement.
• The truth-values of a logical statement
namely, True(T) or False(F) are called Logical
Constants.
• To understand, the meaning of a Logical
Statement. Let us explain it with the following
statements.
• a) Please, go to the school.
• b) May God fulfil your desires!
• c) What are you doing?
• d) 2+2=5e) 2+2=4
• f) Roses are red.
• g) Violets are blue.
• All the above stated statements are meaningful
as each one of these conveys a particular
meaning. However these statements differ in one
respect.
• For example, the statements a), b), c) can not be
classified as true or false that means we can not
say whether these statements are true or false.
• On the other hand the statements d) is false, and
e), f) & g) are true
• In other words, the statements d), e), f) and g)
have a truth value which may be true or false.
• Hence the statements d), e), f) and g) are logical
statements whereas the statements a), b) and c)
are not logical statements. Thus, a logical
statement may be defined as a meaningful
statement, which has truth value as TRUE or
FALSE.
• An exclamatory statement Is not a logical
statement, because such a statement has no
truth value.
Binary Valued Variables
• In mathematics, the quantities that take different values
during the process of manipulation are called variables.
• These variables in mathematics are usually denoted by
the letters a, b, c etc. and are capable of taking any
numerical values in the irrespective domains.
• However, the quantities those are capable of taking only
two values are called Binary Valued Variables or Binary
Variables.
• The two values taken by these variables are True (T) or
False (F).
• Let us consider the statement a given by a : Is
the door open? The variable a, which stands
for the logical statement namely, Is the door
open?, can have either of the two truth-values
namely Open(true) or not open (false). Some
more examples
• Is Mohan Sohan’s brother.
• Are you married?
• These statements are also binary valued both
have output either true or false.
Compound Logical Statement
• Compound Logical Statements are those statements
which are composed of sub-statements with the help
of logical operator or connectives. e.g.
a) Mohan is Sohan’s brother or Devender’s brother.
b) Roses are red and Violets are blue.
• Statement a) is a compound statement with
substatements “Mohan is Sohan’s brother” and “He is
Devender’s brother”. These statements are connected
with OR logical operator.
• Statement b) is a compound statement with
substatements “Roses are Red” and “Violets are blue”.
These statements are connected with AND logical
operator.
• Now What do you mean by Logical Operator?
Operators(Connectives)
• The Logical Operators, used to form compound logical
statements alongwith the symbols to represent these
are listed in the table below:
• We will discuss only three operators namely NOT, AND
and OR because these are the operators to be used in
the Boolean algebra.
Logical
Operators
Name Symbol
NOT Negation or
Complementation
' OR ~
AND Conjunction ^
OR Disjunction v
Implication or
Equivalence or
NOT Operator (Negation or Complement operation)
• If the letter x stands for a logical statement then
• The statement ~x or x' (pronounced as not x)
means negation of x.
• If the statement x is true, then the statement x’ is
false.
• Similarly, if the statement x is false, then x’ is a
true statement.
• We can say that the logical statements x and x’
are logically opposite of each other. e.g., if
• x : Mohan is a Doctor
• then, x’ : Mohan is not a Doctor
Truth Tables
• A truth table is a visual aid to represent the truth
values of a logical statement.
Truth Table NOT operator
Truth Tables of AND & OR Operators
AND Operator OR Operator
X X’
T F
F T
X Y X Y
F F F
F T F
T F F
T T T
X Y X Y
F F F
F T T
T F T
T T T
AND Operator(Conjunction Operation)
• If x and y are two logical statements, then
• The statement x AND y, symbolically denoted by x^y or x.y is called
Conjunction of x and y. e.g. if. x : Roses are red. and y : Violets are blue.
• Then the compound statement :
• x^y : Roses are red and Violets are blue.
• Here both the statement x and y are true, so x^y is also true.
• It must be noted that the statement x^y is a compound statement because it
involves a connective(^). Moreover the truth value of a compound statement
depends upon the truth values of its substatements (or constituent
statements),also called prime statements, namely x and y.
• If x : Roses are red. and y : Violets are green.
• Then the compound statement : x^y : Roses are red and Violets are green.
• The statement x is true and y is false. Therefore, x^y is false.
• If both the statements are false then x^y are false.
• Thus, it may be concluded from the table that the compound statement x^y is
true, if and only if both the substatements x and y are true.
OR Operator (Disjunction Operation)
• If x and y are two, logical statements, then the statement x OR y.
symbolically denoted by x y is called Disjunction of x and y.
• The statement x y is true if either of the sub statements x or y or both x
and y are true.
• In other words. the compound statement x y is false, if and only if both
the substatements x and y are false, in all other cases it is true.
• Now if, x : Roses are red. and y : Violets are green.
• Then the compound statement : x y : Roses are red OR Violets are green.
• The statement x is true and y is false.
• Therefore, x y is True.
• If x : Roses are red. and y : Violets are blue.
• Then the compound statement ; x y : Roses are red OR Violets are blue.
• Here both the statement x and y are true, so x y is also true.
• If both the statements are false than x y are false.
• It must be concluded from the above truth table that the compound
statements x y is false, if and only if (iff) both the substatements x and y
are false and it is true in all other cases.
Boolean Algebra – Switching Algebra
• It must be carefully noted that symbols l or 0
representing the truth-values of the Boolean variable,
have nothing to do with numeric 1 and 0 respectively.
In fact these symbols may be used to represent the
active and passive states of a component say a switch
or a transistor in an electric circuit.
• A closed switch or High or ON or YES is denoted by 1
and an open switch or LOW or OFF or NO by 0. Since,
initially Boolean algebra was applied to electric circuits
containing switches, it is also known as Switching
Algebra.
• Thus a Boolean variable is a logical statement which
must either be true or false but not both at the same
time. A Boolean variable is usually denoted by an
English alphabet (a -z or A-Z).
SWITCHING CIRCUITS
• A Switch (more correctly an electrical switch) is a device that
controls the flow of electric current in an electric circuit. The
electric switches in the domestic appliances or in household
electric circuit performs the same functions i.e. switching ON
and switching OFF of an electric current in the circuit.
• Consider a switch, which is either ‘closed’ or ‘open’. This is
similar to the situation in Logical Variable where a proposition
is either ‘true’ or ‘false’. In Fig. 1(a) we have two switches A
and B which are normally open. They are connected in series
with a battery and a bulb. The bulb will light only when both A
and B are closed. Notice the similarity between this and a
compound proposition in which an AND connective is used.
• Now consider the arrangement of switches shown in Fig. 1(b)
where two switches C and D are connected in parallel. The
bulb will light when either C or D, or both, are closed. We
recognize the similarity between this and the truth of a
compound proposition when the OR connective is used.
Fig 1 (a) Switches in series; (b) Switches in parallel.
• We can now see a one-to-one correspondence between ‘closed’
and ‘true’. Similarly ‘open’ corresponds to ‘false’. Because of this
analog, we call these switching circuits as logic circuits.
• Thus we have switches which can be only open or closed and
similarly propositions which are either of two values at one time i.e.
1 or 0.
• We have already observed a one-to-one correspondence between
series and parallel connections of switches on the one hand and the
connectives AND and OR and logical operator on the other. We can
consider these connectives as performing operations on Boolean
variables. Let us further represent AND by the symbol (.) , OR by
the symbol (+) and NOT by the symbol (BAR or ’) so that the
condition for lighting the bulb in Fig. 1(a) can be written as A.B, and
for Fig. 1(b) the condition can be expressed as C + D.
BOOLEAN EQUATION
Let, Y = A.B +C’D(E+F’)
• This whole is known as Boolean Equation.
We can also write this as
• Y(A,B,C,D,E,F) = A.B +C’D(E+F’)
or
• Y=f(A,B,C,D,E,F) = A.B +C’D(E+F’)
Let’s divide it in parts
Y=f(A,B,C,D,E,F)
This is read as Y is the Function of A, B, C, D, E, and F.
Because in the equation these all variables exists and
these variables are known as Boolean Variable.
A.B +C’D(E+F’) This is known as expression.
• + . ’ are Boolean operators.
POSTULATES
• A two state Boolean Algebra comprises of a set K={0,1}. On
which two binary operations namely logical addition called OR
operation denoted by the symbol (+), and logical
multiplication called AND operation denoted by the symbol
(.), alongwith unary operator called NOT operator denoted by
the symbol (’ or -) are defined and obeys the following
.
Postulates Primary Dual Name
1 a = 0 iff a 1 a = 1 iff a 0
2. c=a+b c=a.b Closure
3 a +0 = a a .1 = a Identity
4 a + b = b + a a . b = b . a Commutative
5 a+(b+c)=(a+b)+c a.(b.c)=(a.b).c Associative
6 a . (b + c) = a.b + a.c a + (b.c) = (a+b) . (a + c) Distributive
7 a + a’ = 1 a .a’ = 0 Inverse
Theorems
Theorem1 a + a = a a .a = a
Theorem2 a + 1 = 1 a .0.= 0
Theorem3 a + (a .b) = a a . (a + b) = a
Theorem4 (a’)’ = a
Theorem5 a + a’.b = a + b a . (a’ + b) = a.b
Theorem6 (a + b)’ = a’ . b’ (a . b)’ = a’ + b’
Demorgan’s First Theorem
It states that the complement of a sum equals to the product of the
complement i.e. (a+b+c+.........+z)’ = a’.b’.c’............z’ or (a+b)’=a’.b’
Demorgan’s Second Theorem
It states that the complement of a product equals to the sum of the
complement i.e. (a.b.c...........z)’ = a’+b’+c’+...........+z’ or (a.b)’=a’+b’
Duality Principle
• The dual of any statement in Boolean algebra, is the
statement obtained by interchanging the operation (+)
and (.), and interchanging the elements 0 and 1. e.g.
a.(b+c)=a.b + a.c and dual of the equation is
a+(b.c)=(a+b).(a+c)
• Also, the dual of the equation a+1=1, is a.0=0
• Observe that we have listed postulates in two parts.
One may be obtained from the other, if ‘+’ is
interchanged with ‘.’ and ‘0’ is interchanged with ‘1’.
This important property is known as duality principle.
• This principle ensures that if a theorem is proved using
the postulates, then a dual theorem obtained
interchanging ‘+’ with ‘.’ and ‘0’ with ‘1’ automatically
holds and need not be proved separately.
REPRESENTATION OF BOOLEAN EXRESSION
A boolean expression can be represented in either of the
following forms.
• Sum of Products (SOP)
• Product of Sums (POS)
SOP FORM OF A BOOLEAN EXPRESSION.
• A Boolean expression which consists of Sum–of-products of
various Boolean variables (x,v, z, a, b, c, etc.) either in direct
or complemented form, is called Sum-of-products or SOP
form of the expression. e.g., the following Boolean
expression is in Sum -of- Products form.a. b + b. c
• Here, both the terms a.b and b.c are product terms of
Boolean variables a, b and b,c respectively and are logically
added. Thus, the given expression is in S-O-P form.,
Similarly a. b. c + a'. b.c + a. b'. c + a. b. c'
POS form of a Boolean Expression
• A Boolean expression which consists of the product-of-
sums of various boolean variables, either in direct or
complemented form, is called Product-of-Sums (POS)
form of the expression. e.g., the following Boolean
expression are in Product-of- Sums form
(a + b). (b + c)
(a + b + c).(a' + b + c). (a + b ' + c). (a + b + c')
• The terms within the parentheses are called Factors of
the expression.
• Before discussing the canonical or normal forms of the
SOP and POS forms of a Boolean expression,
representing a boolean function, we must be familiar
with the Minterms & Maxterms
Minterm
• A binary variable may appear either in its normal form (x) or
in its complement form (x’). Now consider two binary
variables x and y combined with an AND operation is known
as minterm e.g. x’.y’, x’.y, x.y’, and x.y. If we have n variables
can be form 2n minterms.
Consider, the following Boolean function
f (x, y, z) = x. y.z. + x'. y. z + x. y. z + x. y. z
• The above stated function F (x, y, z) is a function of three
Boolean variables, exact term on the right hand side is the
product of all the three variables namely x, y, z either in direct
or complemented form. Moreover, each of these variables
appear only once in each of the product term. Hence, each
product term on the right hand side is a minterm. On the
other hand, the Boolean function or switching function
f(x, y) = x + x. y
is not represented by the minterms because the first term x is
not a minterm as it does not contain both the literals.
Maxterms
• Now consider two binary variables x and y combined with
an OR operation is known as maxterm e.g. x’+y’, x’+y, x+y’,
and x+y. If we have n variables can be form 2n maxterms.
Consider the following boolean function,
f(x, y, z) = (x + y + z). (x' + y + z). (x + y' + z). (x + y + z')
• The above stated function F (x, y, z) is a function of three
Boolean variables, Each factor on the right hand side
consists of the sum of all the three variables namely x, y, z
and these variables appear only once in each factor. Hence
each factor on the right hand side is a maxterm.
• On the other hand, the boolean function
f (x,y,z, w) = (x + y'). (x' + y' + z + w'). (x + y + ')
is represented by three factors, namely x + y', x' + y' + z + w'
and x + y + z' out of which only the factor x’ + y’ + z + w’,
represents a maxterm, other factors are not maxterms.
The following properties of maxterm and minterm must
be noted.
• A minterm can assume a value '1' for only one
combination of variables. It has been stated earlier that
a minterm in a SOP form of a Boolean expression is the
product of all the variables either in direct or
complemented form. The value of the minterm can be
'1' only if all the variables in this term assume a true
value represented by '1'. For all other values of these
variables or variables, this term will have a value '0'.
• A maxterm can assume a value '0’, for only one
combination of variables. A maxterm in POS form of a
Boolean expression is a sum of the variables either in
direct or complemented form. This term can have a
value '0' only if all the variables in this term assume a
false value represented by '0'. For all other values of
the variables this term will have a value '1 '.
Minterms and Maxterms for 2 variable
Variables Minterms Maxterms
X Y Term Designation Term Designation
0 0 X’.Y’ m0 X+Y M0
0 1 X’.Y m1 X+Y’ M1
1 0 X.Y’ m2 X’+Y M2
1 1 X.Y m3 X’+Y’ M3
Variables
Minterms Maxterms
X Y Z Term Designation Term Designation
0 0 0 X’.Y’Z’ m0 X+Y+Z M0
0 0 1 X’.Y’Z m1 X+Y+Z’ M1
0 1 0 X’.Y.Z’ m2 X+Y’+Z M2
0 1 1 X’.Y.Z m3 X+Y’+Z’ M3
1 0 0 X.Y’.Z’ m4 X’+Y+Z M4
1 0 1 X.Y’.Z m5 X’+Y+Z’ M5
1 1 0 X.Y.Z’ m6 X’+Y’+Z M6
1 1 1 X.Y.Z m7 X’+Y’+Z’ M7
Canonical (or Normal) Sum-of-Products form of a Boolean
Expression
• A Boolean expression comprising of the sum of minterms is
called a Canonical or Normal form of the Sum -of -Products
form of the Boolean expression.
• The following Boolean expressions are in canonical SOP forms.
(i) f (a,b) = a'.b + a.b
(ii) f(a,b,c) = a.b.c + a.b'.c
• The process of expressing a Boolean expression in canonical
SOP form, is called Maximization (expansion).
The following steps are followed to express a boolean function
in its sum-of-products form :
• Construct a truth table for the given boolean function.
• Form a minterm for each combination of the variable, which
produces a 1 in the function.
• The desired expression is the sum (OR) of all the minterms
obtained in step 2.
Example
• Obtain canonical sum-of-products form for the Boolean expression
A + B
Solution : The given expression is A+B
The truth table for this expression is shown below
• In this truth table the rows 2, 3 and 4 give an output 1. Hence the
minterms are to be obtained from these rows.
• The minterm from row 2, is obtairied by replacing the variable A by A
' (because A has value 0, therefore, A’ = 1) and taking its product (i.e.
ANDing) with B. Thus the minterm is A'.B The minteml from row 3, is
obtained by replacing the variable B by B ' (because B has value 0)
and taking its product with A. Thus the minterm is A.B'.
• The minterm from row 4, is obtained by taking the product of A with
B, because both , have values as 1. Thus the minterm is A.B.
• The required expression is obtained by adding (ORing) an the
minterms.
Thus the given expression can be written
in canonical SOP form as shown below.
A+B=A'.B+A.B'+A.B
A B A+B
0 0 0
0 1 1
1 0 1
1 1 1
Example Obtain the canonical POS forms of the following
expression a.b + a'.b’
Solution. The given expression is a.b + a'.b’
The truth table for the given expression is presented below.
• The maxterms are obtained from those rows for which the
output is zero i.e. the second and third rows give the
maxterms.
• In the second row, the input a has a value 0 and the input b
has a value 1. The maxterm is obtained by writing the input a
in direct form and the input b in the complemented form and
then adding these terms to obtain a+b'.
• Similarly the maxterm obtained from the third row is a' +b.
• The required canonical POS form of the given Boolean
expression is
• (a +b’). (a' +b)
a b ab+a’b’
0 0 1
0 1 0 (a+b’)
1 0 0 (a’+b)
1 1 1
SIMPLIFICATION OF BOOLEAN FUNCTIONS{MLNTMIZATION).
• The cost of fabricating a switching circuit depends
upon the number of components used in it. Sometimes
It is possible to design switching circuits which require
lesser number of components and hence are less
expensive compared to the equivalent switching
circuits.
• Switching circuits are generally represented by
Boolean expressions also known as switching
expressions or logical expressions. These expressions
are expressed in concise form by Boolean functions.
Each variable in a Boolean expression represents a
switch.
• The purpose of minimization of a Boolean function is
to reduce this function to such a form that it contains
minimum number of literals. This form of the Boolean
function containing minimum number of variables is
called the minima1 form, of the function.
Obviously, a Boolean function in a minimal form
when implemented in the form of a switching circuit
needs least number of components. Such a circuit is
the best one as it is least expensive compared to
equivalent switching circuits. A Boolean function in
SOP form or POS form is said to be in minimal form if
switching expression representing this function
possesses one or more of the following
characteristics.
• The expression contains the minimum number of
variables, a variable may be present in direct or
complemented form.
• The expression has the minimum number of terms.
• The expression requires least number of logical
units (logical Gates) in its circuit implementation.
• The last characteristic is the most important one
and has to be met within practice, as it decides
the cost of a switching circuit. While designing a
switching circuit, one has to consider the
constraints such as type of the logic function,
number of inputs and operation speed etc.
However, to start with the given function must be
reduced to the form which contains least number
of variables and also there must be few terms as
possible. Some of the methods to reduce a given
Boolean function to the minimal form are
• By Boolean Algebra
• By Karnaugh Maps
• By Quine’s Method
MINIMIZATION USING BOOLEAN ALGEBRA
Using Postulates Minimise equation
A’.B + A.B+A’.B’
Solution :
=B(A’+A)+A’B’ (a(b+c) = a.b +a.c)
=B.1+A’B’ (a+a’ = 1)
=B+A’B’ (a.1=1)
=B+B’A’ (a.b=b.a)
=B+A’ (a+a’b=a+b)
=B+A’
Using laws of Boolean algebra, prove
A.B + A’.C + B.C = A.B + A’.C
Solution.
L.H.S. = A.B + A’.C + B.C.1 (A .1 =A)
= A.B + A’.C + B.C.(A + A’) (A + A’ =1)
= A.B + A’.C + B.C.A + B.C.A’ (Distributlve law)
= A.B + A’.C + A.B.C + A’.B.C (Associatlve law)
= A.B + A.B.C + A’.C + A’.B.C (Commutatlve law)
= A.B. (1 + C) + A’.C (1 + B) (Distributlve law)
=A.B.l +A’.C. 1 (1 +B= 1. 1 +C= 1)
= A.B + A’.C = R.H.S. (A.1= A)
MINIMIZATION USING KARNAUGH
MAP(K-MAP) METHOD.
• A better and more elegant way to reduce a Boolean
function to the minimal form is with the help of a graphical
method called Karnaugh Map method.
• A Karnaugh map(K-Map) is a graphical representation of a
boolean function.
• Once a Boolean function is represented by a K-Map, then
this function can be reduced to the minimal form in a very
easy manner.
• Moreover, this map ensures that further minimzation of
the Boolean function is not possible.
• In short, a K-Map provides a systematic mathematical
method to reduce a Boolean function to the minimal form.
• A K-Map can be used to simplify Boolean functions having
any number of variables but this map becomes unsuitable
and cumbersome for the Boolean functions of more than
four variable
• The map is a diagram made up of squares also called
cells.
• The number of cells in this map depends upon the
number of variables in the switching function.
• A Karnaugh map for a Boolean function of n variables
consists of 2n squares or cells.
• Each square represents one minterms. Since any boolean
function can be expressed as a sum of minterms, it
follows that a boolean function is recognised graphically
in the map from the area enclosed by those squares
whose minterms are included in the function.
• By recognising various patterns, the user can derive
alternative algebraic expressions for the same function,
from which he can select the simplest one.
• We shall assume the simplest algebraic expression is any
one in a sum of products or products of sums that has a
minimum number of literals. (This expression is not
necessarily unique.)
Rules for drawing and Simplification of K-Map
Before drawing a K-map for the given function, the function must be
converted to canonical form, preferably to the SOP form.
• A K-map is to be drawn in such a manner that the adjacent cells remain
logical neighbours. Two cells are called adjacent or neighbouring cells,
if these have only one common side between them.
• When no. of variables in function are 2 then the number of cells in the
K-map are 2; when variables are 3, cells are 8 and when variables are 4,
cells are 16.
• It is permissible to interchange the variable along the horizontal and
vertical axis.
• Enter a 1 on the K-map for each fundamental product that corresponds
to 1 output in the truth table. Enter 0s elsewhere.
• Encircle the octets(A group of 8 adjacent 1s on a K-map), quads(A
group of 4 adjacent 1s on a K-map), and pairs(A group of 2 adjacent 1s
on a K-map, these 1s may be horizontally or vertically alligned).
Remember to roll and overlap to get the largest group possible. If any
1s remains, encircle them.
• Eliminate redundant groups (A group of 1s on a Kmap all of which are
overlapped by other groups) if they exist.
• Write the boolean equation by ORing the products corresponding to
the encircled groups.
Two Variable K-Map
• As we read earlier that if we have two variables then we have
22 minterms i.e. 4 minterms, hence the map consists of four
squares.
• Let take Variable A have two states A and A’ (i.e. 1 and 0) and
B also have two states B and B’. A have total One unit area and
B also have total one unit area as shown in figure
A B
For two states these will looks like
B’ B
A’
A
After superimposing these two we get four squares for different
minterms, as shown in figure.
Example : Draw a K-Map to minmise the following boolean function
1. f(A,B)=A’B’ +A.B’ +A’.B, or = (0,1,2), or = m0+m1+m2
2. f(A,B) = A’B’ +A.B, or = = (0,3), or = m0+m3
Example 1.With the help of above shown diagram, put 1 which
minterm is present
A’
B’ B
A’B’
00
A’B
01
A AB’
10
AB
11
A’
B’ B
m0 m1
A m2 m3
A’
B’ B
1 1
A 1 0
A’
B’ B
1 1
A 1 0
B’
A’
In Table(where groups are made), We made two groups. Put each groups
value and add them
Therefore, we get, =A’+B’
This is the minimisation of A’.B’+A’.B+A.B’ = A’+B’
We can also prove it by Boolean algebric expression or by Truth table method.
Example 2. With the help of above shown diagram, put 1 which minterm is
present
In this example we have only two minterms present, they both are not
adjacent or you can say they are diagonal. So, we can’t make groups.
Therefore, by putting each minterm’s value and adding them we get
minimised result. A’.B’+A.B
f(A,B) =A’.B’+A.B=A’.B’+A.B
LHS is eqaul to RHS, This shows we can’t minimise this expression or you
can this is minimised expression.
A’
B’ B
1 0
A 0 1
A’
B’ B
1 0
A 0 1
Three Variable K Map
• Now consider the case of three variable K-Map. In three
variable K-Map we have 23 i.e. 8 minterms, hence the map
consists of eight squares.
• Let us take three variables as A, B & C. All these variables have
two states i.e. A & A’, B & B’ and C & C’. Now All these
variables have unit area as shown
• Now, in this unit area both the states (i.e. 1 & 0) can be
represented as given below.
A B C
A’
A
B’
B
B’
C’ C
• By Superimposing, these three we get eight
squares for different mintermes as shown
below
A’
C’ C
A’B’C’
000
A’B’C
001
B’
A’BC’
010
A’BC
011 B
A
ABC’
110
ABC
111
AB’C’
100
AB’C
101
B’
A’
C’ C
m0 m1
B’
m2 m3
B
A
m6 m7
m4 m5 B’
Examples : Design a K-Map to represent the following switching
functions.
1) F(A,B,C) = ABC’ +AB
2) F(X,Y,Z)=X’Y’Z’ +X’Y’Z+XY’+XY
Solutions : F(A,B,C) = ABC’ +AB First covert the expression into canonical SOP
By using above methods discussed in the above SOP section
We get, F(A,B,C)=ABC’+ABC’+ABC F(A,B,C)=ABC’+ABC (B’coz A+A=A)
or F(A,B,C)= (6,7)=m6+m7
Put these in the K-Map by presenting 1 in the squares
A’
C’ C
m0 0 m1 0
B’
m2 0 m3 0
B
A
m6 1 m7 1
m4 0 m5 0 B’
A’
C’ C
m0 0 m1 0
B’
m2 0 m3 0
B
A
m6 1 m7 1
m4 0 m5 0 B’
AB
a b
In Figure b, We made One group of minterm m6 and
m7. Put each groups value and add them.Therefore, we
get, =AB
This is the minimization of F(A,B,C) = ABC’ +AB = AB
• We can also prove it by Boolean algebric expression
or by Truth table method.
Solutions 2) F(X,Y,Z)=X’Y’Z’ +X’Y’Z+XY’+XY
• First covert the expression into canonical SOP
• By using methods discussed in the above SOP section
We get, F(X,Y,Z)= X’Y’Z’ +X’Y’Z+XY’Z+ XY’Z’+XYZ+ XYZ’
or F(X,Y,Z)= (0,1,4,5,6,7)
Put these in the K-Map by presenting 1 in the squares
X’
Z’ Z
m0 1 m1 1
Y’
m2 0 m3 0
Y
X
m6 1 m7 1
m4 1 m5 1 Y’
We made two groups Blue and Red of minterm
Put each groups value and add them
Red Line Group (m1, m2, m4, m5) is equal Y’
Blue Line Group (m4, m5, m6, m7) equal to the value X
Therefore, we get, =X+Y’
This is the minimisation of F(X,Y,Z)=X’Y’Z’ +X’Y’Z+XY’+XY =X+Y’
We can also prove it by Boolean algebraic expression or by Truth
table method.
X
Y’
Four Variable K-Map
Now consider the case of Four variable K-Map. In four
variable K-Map we have 24 i.e. 16 minterms, hence the
map consists of 16 squares.
• Let us take Four variables as A, B, C & D. All these
variables have two states i.e. A & A’, B & B’ , C & C’
and D & D’. Now All these variables have unit area
with both states as shown
A’
A
B’
B
B’
C’ C D’ D D’
C’ C
A’ A’B’C’D’
0000 m0
A’B’C’D
0001 m1
A’B’CD
0011 m3
A’B’CD’
0010 m2
B’
A’BC’D’
0100 m4
A’BC’D
0101 m5
A’BCD
0111 m7
A’BCD
0110 m6
B
A ABC’D’
1100 m12
ABC’D
1101 m13
ABCD
1111 m15
ABCD’
1110 m14
AB’C’D’
1000 m8
AB’C’D
1001 m9
AB’CD
1011 m11
AB’CD’
1010 m10
B’
D’ D D’
Examples Develop K-map for minimisation of Boolean
expression. or Obtain the minimal SOP form of the following by
K-Map method.
1). F(ABCD) = A’B’C’D +A’BC’D + A’BCD’ +A’BCD+ABCD’ +ABCD
2) F(A,B,C,D) = (0,1,2,4,5,8,9,10,12,13)
Solution 1
1) F(ABCD) = A’B’C’D +A’BC’D + A’BCD’ +A’BCD+ABCD’ +ABCD
First covert the expression into canonical SOP. This is already in
the SOP
or F(A,B,C,D)= (1,5,6,7,14,15)
Put these in the K-Map by presenting 1 in the squares
C’ C
A’ m0
0
m1
1
m3
0
m2
0
B’
m4
0
m5
1
m7
1
m6
1
B
A m12
0
m13
0
m15
1
m14
1
m8
0
m9
0
m11
0
m10
0
B’
D’ D D’
A’C’D
BC
In Figure, We made two groups of minterm
Put each groups value and add them
Red Group (m6, m7, m14, m15) is equal BC
Blue Group (m1, m5) equal to the value A’C’D
Therefore, we get, =BC+A’C’D
This is the minimisation of
F(ABCD) = A’B’C’D +A’BC’D + A’BCD’
+A’BCD+ABCD’ +ABCD = BC+A’C’D
We can also prove it by Boolean algebric
expression or by Truth table method.
2nd Problem is for your home work
Thanks!
If you have any problem Write me at
rozygag@yahoo.com

Contenu connexe

Tendances

Closure properties of context free grammar
Closure properties of context free grammarClosure properties of context free grammar
Closure properties of context free grammarAfshanKhan51
 
Laws of boolean algebra
Laws of boolean algebraLaws of boolean algebra
Laws of boolean algebraArunaDevi63
 
Chapter 2: Boolean Algebra and Logic Gates
Chapter 2: Boolean Algebra and Logic GatesChapter 2: Boolean Algebra and Logic Gates
Chapter 2: Boolean Algebra and Logic GatesEr. Nawaraj Bhandari
 
Magnitude comparator
Magnitude comparatorMagnitude comparator
Magnitude comparatorSyed Saeed
 
Chapter 2.1 introduction to number system
Chapter 2.1 introduction to number systemChapter 2.1 introduction to number system
Chapter 2.1 introduction to number systemISMT College
 
Basic theorems and properties of boolean algebra
Basic theorems and properties of boolean algebraBasic theorems and properties of boolean algebra
Basic theorems and properties of boolean algebraHanu Kavi
 
BOOLEAN ALGEBRA
BOOLEAN ALGEBRA BOOLEAN ALGEBRA
BOOLEAN ALGEBRA Shaik Aman
 
Parity Generator and Parity Checker
Parity Generator and Parity CheckerParity Generator and Parity Checker
Parity Generator and Parity CheckerJignesh Navdiya
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebragavhays
 
Digital logic gates and Boolean algebra
Digital logic gates and Boolean algebraDigital logic gates and Boolean algebra
Digital logic gates and Boolean algebraSARITHA REDDY
 
EC Binary Substraction using 1's Complement,2's Complement
EC Binary Substraction using 1's Complement,2's ComplementEC Binary Substraction using 1's Complement,2's Complement
EC Binary Substraction using 1's Complement,2's ComplementAmberSinghal1
 
BCD to binary code converter
BCD to binary code converterBCD to binary code converter
BCD to binary code converterkiruthikamaniG1
 

Tendances (20)

Closure properties of context free grammar
Closure properties of context free grammarClosure properties of context free grammar
Closure properties of context free grammar
 
Laws of boolean algebra
Laws of boolean algebraLaws of boolean algebra
Laws of boolean algebra
 
Chapter 2: Boolean Algebra and Logic Gates
Chapter 2: Boolean Algebra and Logic GatesChapter 2: Boolean Algebra and Logic Gates
Chapter 2: Boolean Algebra and Logic Gates
 
Magnitude comparator
Magnitude comparatorMagnitude comparator
Magnitude comparator
 
Chapter 2.1 introduction to number system
Chapter 2.1 introduction to number systemChapter 2.1 introduction to number system
Chapter 2.1 introduction to number system
 
Basic theorems and properties of boolean algebra
Basic theorems and properties of boolean algebraBasic theorems and properties of boolean algebra
Basic theorems and properties of boolean algebra
 
Boolean algebra & logic gates
Boolean algebra & logic gatesBoolean algebra & logic gates
Boolean algebra & logic gates
 
BOOLEAN ALGEBRA
BOOLEAN ALGEBRA BOOLEAN ALGEBRA
BOOLEAN ALGEBRA
 
BOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATEBOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATE
 
Decoders
DecodersDecoders
Decoders
 
Parity Generator and Parity Checker
Parity Generator and Parity CheckerParity Generator and Parity Checker
Parity Generator and Parity Checker
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
Number system
Number systemNumber system
Number system
 
BOOLEAN ALGEBRA.ppt
BOOLEAN ALGEBRA.pptBOOLEAN ALGEBRA.ppt
BOOLEAN ALGEBRA.ppt
 
Digital logic gates and Boolean algebra
Digital logic gates and Boolean algebraDigital logic gates and Boolean algebra
Digital logic gates and Boolean algebra
 
Logic gates
Logic gatesLogic gates
Logic gates
 
EC Binary Substraction using 1's Complement,2's Complement
EC Binary Substraction using 1's Complement,2's ComplementEC Binary Substraction using 1's Complement,2's Complement
EC Binary Substraction using 1's Complement,2's Complement
 
BCD to binary code converter
BCD to binary code converterBCD to binary code converter
BCD to binary code converter
 
Bus system
Bus systemBus system
Bus system
 
Boolean algebra and Logic gates
Boolean algebra and Logic gatesBoolean algebra and Logic gates
Boolean algebra and Logic gates
 

En vedette

CBSE XII Boolean Algebra
CBSE XII Boolean AlgebraCBSE XII Boolean Algebra
CBSE XII Boolean AlgebraGuru Ji
 
simplification of boolean algebra
simplification of boolean algebrasimplification of boolean algebra
simplification of boolean algebramayannpolisticoLNU
 
Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1Qundeel
 
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsCOMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsVanitha Chandru
 
digital logic design Chapter 2 boolean_algebra_&_logic_gates
digital logic design Chapter 2 boolean_algebra_&_logic_gatesdigital logic design Chapter 2 boolean_algebra_&_logic_gates
digital logic design Chapter 2 boolean_algebra_&_logic_gatesImran Waris
 
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.Satya P. Joshi
 
Chapter 06 boolean algebra
Chapter 06 boolean algebraChapter 06 boolean algebra
Chapter 06 boolean algebraHareem Aslam
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebraRania H
 
Logic simplification sop and pos forms
Logic simplification sop and pos formsLogic simplification sop and pos forms
Logic simplification sop and pos formsManesh T
 
Digital logic circuits important question and answers for 5 units
Digital logic circuits important question and answers for 5 unitsDigital logic circuits important question and answers for 5 units
Digital logic circuits important question and answers for 5 unitsLekashri Subramanian
 
Boolean expression org.
Boolean expression org.Boolean expression org.
Boolean expression org.mshoaib15
 
Minterm and maxterm
Minterm and maxtermMinterm and maxterm
Minterm and maxtermparsa.khan64
 

En vedette (20)

CBSE XII Boolean Algebra
CBSE XII Boolean AlgebraCBSE XII Boolean Algebra
CBSE XII Boolean Algebra
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
simplification of boolean algebra
simplification of boolean algebrasimplification of boolean algebra
simplification of boolean algebra
 
Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Boolean algebra
 Boolean algebra Boolean algebra
Boolean algebra
 
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsCOMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
 
digital logic design Chapter 2 boolean_algebra_&_logic_gates
digital logic design Chapter 2 boolean_algebra_&_logic_gatesdigital logic design Chapter 2 boolean_algebra_&_logic_gates
digital logic design Chapter 2 boolean_algebra_&_logic_gates
 
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
 
Karnaugh map
Karnaugh mapKarnaugh map
Karnaugh map
 
Chapter 06 boolean algebra
Chapter 06 boolean algebraChapter 06 boolean algebra
Chapter 06 boolean algebra
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Logic simplification sop and pos forms
Logic simplification sop and pos formsLogic simplification sop and pos forms
Logic simplification sop and pos forms
 
Digital logic circuits important question and answers for 5 units
Digital logic circuits important question and answers for 5 unitsDigital logic circuits important question and answers for 5 units
Digital logic circuits important question and answers for 5 units
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
boolean algebra
boolean algebraboolean algebra
boolean algebra
 
Logic Gates
Logic GatesLogic Gates
Logic Gates
 
Boolean expression org.
Boolean expression org.Boolean expression org.
Boolean expression org.
 
Basics of K map
Basics of K mapBasics of K map
Basics of K map
 
Minterm and maxterm
Minterm and maxtermMinterm and maxterm
Minterm and maxterm
 

Similaire à Boolean algebra

Boolean Expression.pptx
Boolean Expression.pptxBoolean Expression.pptx
Boolean Expression.pptxEdFeranil
 
Asima Final Presentation.pptx
Asima Final Presentation.pptxAsima Final Presentation.pptx
Asima Final Presentation.pptxUmakantaKaran1
 
Truth tables complete and p1 of short method
Truth tables complete and p1 of short methodTruth tables complete and p1 of short method
Truth tables complete and p1 of short methodNat Karablina
 
Logic in Predicate and Propositional Logic
Logic in Predicate and Propositional LogicLogic in Predicate and Propositional Logic
Logic in Predicate and Propositional LogicArchanaT32
 
2nd PUC computer science chapter 2 boolean algebra 1
2nd PUC computer science chapter 2  boolean algebra 12nd PUC computer science chapter 2  boolean algebra 1
2nd PUC computer science chapter 2 boolean algebra 1Aahwini Esware gowda
 
Logic programming (1)
Logic programming (1)Logic programming (1)
Logic programming (1)Nitesh Singh
 
predicateLogic.ppt
predicateLogic.pptpredicateLogic.ppt
predicateLogic.pptMUZAMILALI48
 
Truth table1
Truth table1Truth table1
Truth table1ikjsamuel
 
Week4_BooleanAlgebra.pptx
Week4_BooleanAlgebra.pptxWeek4_BooleanAlgebra.pptx
Week4_BooleanAlgebra.pptxAbubakrZahid1
 
Boolean Algebra Terminologies.pdf
Boolean Algebra Terminologies.pdfBoolean Algebra Terminologies.pdf
Boolean Algebra Terminologies.pdfShivarkarSandip
 
Discrete mathematics by sadat sumon
Discrete mathematics by sadat sumonDiscrete mathematics by sadat sumon
Discrete mathematics by sadat sumonsadatsumon
 
ML4 Regression.pptx
ML4 Regression.pptxML4 Regression.pptx
ML4 Regression.pptxDayal Sati
 

Similaire à Boolean algebra (20)

Boolean Expression.pptx
Boolean Expression.pptxBoolean Expression.pptx
Boolean Expression.pptx
 
boolean-algebra.pdf
boolean-algebra.pdfboolean-algebra.pdf
boolean-algebra.pdf
 
Asima Final Presentation.pptx
Asima Final Presentation.pptxAsima Final Presentation.pptx
Asima Final Presentation.pptx
 
Logic
LogicLogic
Logic
 
Truth tables complete and p1 of short method
Truth tables complete and p1 of short methodTruth tables complete and p1 of short method
Truth tables complete and p1 of short method
 
Fuzzy.pptx
Fuzzy.pptxFuzzy.pptx
Fuzzy.pptx
 
Lecture_11.pdf
Lecture_11.pdfLecture_11.pdf
Lecture_11.pdf
 
Logic in Predicate and Propositional Logic
Logic in Predicate and Propositional LogicLogic in Predicate and Propositional Logic
Logic in Predicate and Propositional Logic
 
2nd PUC computer science chapter 2 boolean algebra 1
2nd PUC computer science chapter 2  boolean algebra 12nd PUC computer science chapter 2  boolean algebra 1
2nd PUC computer science chapter 2 boolean algebra 1
 
Boolean Algebra DLD
Boolean Algebra DLDBoolean Algebra DLD
Boolean Algebra DLD
 
Logic programming (1)
Logic programming (1)Logic programming (1)
Logic programming (1)
 
English for Math Pertemuan ke 11
English for Math Pertemuan ke 11English for Math Pertemuan ke 11
English for Math Pertemuan ke 11
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Chapter 2.pdf
Chapter 2.pdfChapter 2.pdf
Chapter 2.pdf
 
predicateLogic.ppt
predicateLogic.pptpredicateLogic.ppt
predicateLogic.ppt
 
Truth table1
Truth table1Truth table1
Truth table1
 
Week4_BooleanAlgebra.pptx
Week4_BooleanAlgebra.pptxWeek4_BooleanAlgebra.pptx
Week4_BooleanAlgebra.pptx
 
Boolean Algebra Terminologies.pdf
Boolean Algebra Terminologies.pdfBoolean Algebra Terminologies.pdf
Boolean Algebra Terminologies.pdf
 
Discrete mathematics by sadat sumon
Discrete mathematics by sadat sumonDiscrete mathematics by sadat sumon
Discrete mathematics by sadat sumon
 
ML4 Regression.pptx
ML4 Regression.pptxML4 Regression.pptx
ML4 Regression.pptx
 

Plus de Gagan Deep

Fundamentals of Neural Networks
Fundamentals of Neural NetworksFundamentals of Neural Networks
Fundamentals of Neural NetworksGagan Deep
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial IntelligenceGagan Deep
 
Software Project Planning V
Software Project Planning VSoftware Project Planning V
Software Project Planning VGagan Deep
 
Software Project Planning IV
Software Project Planning IVSoftware Project Planning IV
Software Project Planning IVGagan Deep
 
Software Project Planning III
Software Project Planning IIISoftware Project Planning III
Software Project Planning IIIGagan Deep
 
Software Project Planning II
Software Project Planning IISoftware Project Planning II
Software Project Planning IIGagan Deep
 
Software Project Planning 1
Software Project Planning 1Software Project Planning 1
Software Project Planning 1Gagan Deep
 
Software Engineering
Software Engineering Software Engineering
Software Engineering Gagan Deep
 
C Programming : Arrays
C Programming : ArraysC Programming : Arrays
C Programming : ArraysGagan Deep
 
C lecture 4 nested loops and jumping statements slideshare
C lecture 4 nested loops and jumping statements slideshareC lecture 4 nested loops and jumping statements slideshare
C lecture 4 nested loops and jumping statements slideshareGagan Deep
 
C lecture 3 control statements slideshare
C lecture 3 control statements slideshareC lecture 3 control statements slideshare
C lecture 3 control statements slideshareGagan Deep
 
C – A Programming Language- I
C – A Programming Language- IC – A Programming Language- I
C – A Programming Language- IGagan Deep
 
System Analysis & Design - 2
System Analysis & Design - 2System Analysis & Design - 2
System Analysis & Design - 2Gagan Deep
 
System Analysis & Design - I
System Analysis & Design - ISystem Analysis & Design - I
System Analysis & Design - IGagan Deep
 
Information System and MIS
Information System and MISInformation System and MIS
Information System and MISGagan Deep
 
SQL – A Tutorial I
SQL – A Tutorial  ISQL – A Tutorial  I
SQL – A Tutorial IGagan Deep
 
Normalization 1
Normalization 1Normalization 1
Normalization 1Gagan Deep
 
Normalization i i
Normalization   i iNormalization   i i
Normalization i iGagan Deep
 
Plsql overview
Plsql overviewPlsql overview
Plsql overviewGagan Deep
 

Plus de Gagan Deep (20)

Number system
Number systemNumber system
Number system
 
Fundamentals of Neural Networks
Fundamentals of Neural NetworksFundamentals of Neural Networks
Fundamentals of Neural Networks
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Software Project Planning V
Software Project Planning VSoftware Project Planning V
Software Project Planning V
 
Software Project Planning IV
Software Project Planning IVSoftware Project Planning IV
Software Project Planning IV
 
Software Project Planning III
Software Project Planning IIISoftware Project Planning III
Software Project Planning III
 
Software Project Planning II
Software Project Planning IISoftware Project Planning II
Software Project Planning II
 
Software Project Planning 1
Software Project Planning 1Software Project Planning 1
Software Project Planning 1
 
Software Engineering
Software Engineering Software Engineering
Software Engineering
 
C Programming : Arrays
C Programming : ArraysC Programming : Arrays
C Programming : Arrays
 
C lecture 4 nested loops and jumping statements slideshare
C lecture 4 nested loops and jumping statements slideshareC lecture 4 nested loops and jumping statements slideshare
C lecture 4 nested loops and jumping statements slideshare
 
C lecture 3 control statements slideshare
C lecture 3 control statements slideshareC lecture 3 control statements slideshare
C lecture 3 control statements slideshare
 
C – A Programming Language- I
C – A Programming Language- IC – A Programming Language- I
C – A Programming Language- I
 
System Analysis & Design - 2
System Analysis & Design - 2System Analysis & Design - 2
System Analysis & Design - 2
 
System Analysis & Design - I
System Analysis & Design - ISystem Analysis & Design - I
System Analysis & Design - I
 
Information System and MIS
Information System and MISInformation System and MIS
Information System and MIS
 
SQL – A Tutorial I
SQL – A Tutorial  ISQL – A Tutorial  I
SQL – A Tutorial I
 
Normalization 1
Normalization 1Normalization 1
Normalization 1
 
Normalization i i
Normalization   i iNormalization   i i
Normalization i i
 
Plsql overview
Plsql overviewPlsql overview
Plsql overview
 

Dernier

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 

Dernier (20)

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 

Boolean algebra

  • 1. Boolean Algebra Gagan Deep Rozy Computech Services, 3rd Gate, K.U., Kurukshetra
  • 2. Boolean Algebra • BOOLEAN Algebra was developed by George Boole (1815- 1864), an English mathematician and logician. • The credit for applying the laws of Boolean algebra goes to Claude. E. Shannon, an electrical engineer. Claude. E. Shannon in the year 1938, suggested that Boolean algebra can be applied to problems arising in telephone switching circuits and for this reason Boolean algebra is also known as Switching Algebra. • The other noteworthy persons to realise the significance of this algebra were August De- Morgan, Alfred North -White Head and Beltrand Russell..
  • 3. • Perhaps no one at that time might have realised that this abstract algebra was going to result in development of modern high speed digital computers, which have revolutionised the whole world today. • In fact Boolean algebra placed the theory of switching circuits on firm mathematical footings, which resulted in simplification of these circuits by simple mathematical methods. • Before discussing the Boolean algebra and its applications to switching circuits, it is important to have the knowledge of the logical statements and various operations that can be performed on these statements, because Boolean algebra deals with these statements
  • 4. Logical Statements • A computer may be programmed to make decisions based on certain statement. • The truth and falsity of statement is know its truth value. • A statement is either true or false, but not both. • A statement having a truth value is called Logical Statement. • The truth-values of a logical statement namely, True(T) or False(F) are called Logical Constants.
  • 5. • To understand, the meaning of a Logical Statement. Let us explain it with the following statements. • a) Please, go to the school. • b) May God fulfil your desires! • c) What are you doing? • d) 2+2=5e) 2+2=4 • f) Roses are red. • g) Violets are blue. • All the above stated statements are meaningful as each one of these conveys a particular meaning. However these statements differ in one respect.
  • 6. • For example, the statements a), b), c) can not be classified as true or false that means we can not say whether these statements are true or false. • On the other hand the statements d) is false, and e), f) & g) are true • In other words, the statements d), e), f) and g) have a truth value which may be true or false. • Hence the statements d), e), f) and g) are logical statements whereas the statements a), b) and c) are not logical statements. Thus, a logical statement may be defined as a meaningful statement, which has truth value as TRUE or FALSE. • An exclamatory statement Is not a logical statement, because such a statement has no truth value.
  • 7. Binary Valued Variables • In mathematics, the quantities that take different values during the process of manipulation are called variables. • These variables in mathematics are usually denoted by the letters a, b, c etc. and are capable of taking any numerical values in the irrespective domains. • However, the quantities those are capable of taking only two values are called Binary Valued Variables or Binary Variables. • The two values taken by these variables are True (T) or False (F).
  • 8. • Let us consider the statement a given by a : Is the door open? The variable a, which stands for the logical statement namely, Is the door open?, can have either of the two truth-values namely Open(true) or not open (false). Some more examples • Is Mohan Sohan’s brother. • Are you married? • These statements are also binary valued both have output either true or false.
  • 9. Compound Logical Statement • Compound Logical Statements are those statements which are composed of sub-statements with the help of logical operator or connectives. e.g. a) Mohan is Sohan’s brother or Devender’s brother. b) Roses are red and Violets are blue. • Statement a) is a compound statement with substatements “Mohan is Sohan’s brother” and “He is Devender’s brother”. These statements are connected with OR logical operator. • Statement b) is a compound statement with substatements “Roses are Red” and “Violets are blue”. These statements are connected with AND logical operator. • Now What do you mean by Logical Operator?
  • 10. Operators(Connectives) • The Logical Operators, used to form compound logical statements alongwith the symbols to represent these are listed in the table below: • We will discuss only three operators namely NOT, AND and OR because these are the operators to be used in the Boolean algebra. Logical Operators Name Symbol NOT Negation or Complementation ' OR ~ AND Conjunction ^ OR Disjunction v Implication or Equivalence or
  • 11. NOT Operator (Negation or Complement operation) • If the letter x stands for a logical statement then • The statement ~x or x' (pronounced as not x) means negation of x. • If the statement x is true, then the statement x’ is false. • Similarly, if the statement x is false, then x’ is a true statement. • We can say that the logical statements x and x’ are logically opposite of each other. e.g., if • x : Mohan is a Doctor • then, x’ : Mohan is not a Doctor
  • 12. Truth Tables • A truth table is a visual aid to represent the truth values of a logical statement. Truth Table NOT operator Truth Tables of AND & OR Operators AND Operator OR Operator X X’ T F F T X Y X Y F F F F T F T F F T T T X Y X Y F F F F T T T F T T T T
  • 13. AND Operator(Conjunction Operation) • If x and y are two logical statements, then • The statement x AND y, symbolically denoted by x^y or x.y is called Conjunction of x and y. e.g. if. x : Roses are red. and y : Violets are blue. • Then the compound statement : • x^y : Roses are red and Violets are blue. • Here both the statement x and y are true, so x^y is also true. • It must be noted that the statement x^y is a compound statement because it involves a connective(^). Moreover the truth value of a compound statement depends upon the truth values of its substatements (or constituent statements),also called prime statements, namely x and y. • If x : Roses are red. and y : Violets are green. • Then the compound statement : x^y : Roses are red and Violets are green. • The statement x is true and y is false. Therefore, x^y is false. • If both the statements are false then x^y are false. • Thus, it may be concluded from the table that the compound statement x^y is true, if and only if both the substatements x and y are true.
  • 14. OR Operator (Disjunction Operation) • If x and y are two, logical statements, then the statement x OR y. symbolically denoted by x y is called Disjunction of x and y. • The statement x y is true if either of the sub statements x or y or both x and y are true. • In other words. the compound statement x y is false, if and only if both the substatements x and y are false, in all other cases it is true. • Now if, x : Roses are red. and y : Violets are green. • Then the compound statement : x y : Roses are red OR Violets are green. • The statement x is true and y is false. • Therefore, x y is True. • If x : Roses are red. and y : Violets are blue. • Then the compound statement ; x y : Roses are red OR Violets are blue. • Here both the statement x and y are true, so x y is also true. • If both the statements are false than x y are false. • It must be concluded from the above truth table that the compound statements x y is false, if and only if (iff) both the substatements x and y are false and it is true in all other cases.
  • 15. Boolean Algebra – Switching Algebra • It must be carefully noted that symbols l or 0 representing the truth-values of the Boolean variable, have nothing to do with numeric 1 and 0 respectively. In fact these symbols may be used to represent the active and passive states of a component say a switch or a transistor in an electric circuit. • A closed switch or High or ON or YES is denoted by 1 and an open switch or LOW or OFF or NO by 0. Since, initially Boolean algebra was applied to electric circuits containing switches, it is also known as Switching Algebra. • Thus a Boolean variable is a logical statement which must either be true or false but not both at the same time. A Boolean variable is usually denoted by an English alphabet (a -z or A-Z).
  • 16. SWITCHING CIRCUITS • A Switch (more correctly an electrical switch) is a device that controls the flow of electric current in an electric circuit. The electric switches in the domestic appliances or in household electric circuit performs the same functions i.e. switching ON and switching OFF of an electric current in the circuit. • Consider a switch, which is either ‘closed’ or ‘open’. This is similar to the situation in Logical Variable where a proposition is either ‘true’ or ‘false’. In Fig. 1(a) we have two switches A and B which are normally open. They are connected in series with a battery and a bulb. The bulb will light only when both A and B are closed. Notice the similarity between this and a compound proposition in which an AND connective is used. • Now consider the arrangement of switches shown in Fig. 1(b) where two switches C and D are connected in parallel. The bulb will light when either C or D, or both, are closed. We recognize the similarity between this and the truth of a compound proposition when the OR connective is used.
  • 17. Fig 1 (a) Switches in series; (b) Switches in parallel. • We can now see a one-to-one correspondence between ‘closed’ and ‘true’. Similarly ‘open’ corresponds to ‘false’. Because of this analog, we call these switching circuits as logic circuits. • Thus we have switches which can be only open or closed and similarly propositions which are either of two values at one time i.e. 1 or 0. • We have already observed a one-to-one correspondence between series and parallel connections of switches on the one hand and the connectives AND and OR and logical operator on the other. We can consider these connectives as performing operations on Boolean variables. Let us further represent AND by the symbol (.) , OR by the symbol (+) and NOT by the symbol (BAR or ’) so that the condition for lighting the bulb in Fig. 1(a) can be written as A.B, and for Fig. 1(b) the condition can be expressed as C + D.
  • 18. BOOLEAN EQUATION Let, Y = A.B +C’D(E+F’) • This whole is known as Boolean Equation. We can also write this as • Y(A,B,C,D,E,F) = A.B +C’D(E+F’) or • Y=f(A,B,C,D,E,F) = A.B +C’D(E+F’) Let’s divide it in parts Y=f(A,B,C,D,E,F) This is read as Y is the Function of A, B, C, D, E, and F. Because in the equation these all variables exists and these variables are known as Boolean Variable. A.B +C’D(E+F’) This is known as expression. • + . ’ are Boolean operators.
  • 19. POSTULATES • A two state Boolean Algebra comprises of a set K={0,1}. On which two binary operations namely logical addition called OR operation denoted by the symbol (+), and logical multiplication called AND operation denoted by the symbol (.), alongwith unary operator called NOT operator denoted by the symbol (’ or -) are defined and obeys the following . Postulates Primary Dual Name 1 a = 0 iff a 1 a = 1 iff a 0 2. c=a+b c=a.b Closure 3 a +0 = a a .1 = a Identity 4 a + b = b + a a . b = b . a Commutative 5 a+(b+c)=(a+b)+c a.(b.c)=(a.b).c Associative 6 a . (b + c) = a.b + a.c a + (b.c) = (a+b) . (a + c) Distributive 7 a + a’ = 1 a .a’ = 0 Inverse
  • 20. Theorems Theorem1 a + a = a a .a = a Theorem2 a + 1 = 1 a .0.= 0 Theorem3 a + (a .b) = a a . (a + b) = a Theorem4 (a’)’ = a Theorem5 a + a’.b = a + b a . (a’ + b) = a.b Theorem6 (a + b)’ = a’ . b’ (a . b)’ = a’ + b’ Demorgan’s First Theorem It states that the complement of a sum equals to the product of the complement i.e. (a+b+c+.........+z)’ = a’.b’.c’............z’ or (a+b)’=a’.b’ Demorgan’s Second Theorem It states that the complement of a product equals to the sum of the complement i.e. (a.b.c...........z)’ = a’+b’+c’+...........+z’ or (a.b)’=a’+b’
  • 21. Duality Principle • The dual of any statement in Boolean algebra, is the statement obtained by interchanging the operation (+) and (.), and interchanging the elements 0 and 1. e.g. a.(b+c)=a.b + a.c and dual of the equation is a+(b.c)=(a+b).(a+c) • Also, the dual of the equation a+1=1, is a.0=0 • Observe that we have listed postulates in two parts. One may be obtained from the other, if ‘+’ is interchanged with ‘.’ and ‘0’ is interchanged with ‘1’. This important property is known as duality principle. • This principle ensures that if a theorem is proved using the postulates, then a dual theorem obtained interchanging ‘+’ with ‘.’ and ‘0’ with ‘1’ automatically holds and need not be proved separately.
  • 22. REPRESENTATION OF BOOLEAN EXRESSION A boolean expression can be represented in either of the following forms. • Sum of Products (SOP) • Product of Sums (POS) SOP FORM OF A BOOLEAN EXPRESSION. • A Boolean expression which consists of Sum–of-products of various Boolean variables (x,v, z, a, b, c, etc.) either in direct or complemented form, is called Sum-of-products or SOP form of the expression. e.g., the following Boolean expression is in Sum -of- Products form.a. b + b. c • Here, both the terms a.b and b.c are product terms of Boolean variables a, b and b,c respectively and are logically added. Thus, the given expression is in S-O-P form., Similarly a. b. c + a'. b.c + a. b'. c + a. b. c'
  • 23. POS form of a Boolean Expression • A Boolean expression which consists of the product-of- sums of various boolean variables, either in direct or complemented form, is called Product-of-Sums (POS) form of the expression. e.g., the following Boolean expression are in Product-of- Sums form (a + b). (b + c) (a + b + c).(a' + b + c). (a + b ' + c). (a + b + c') • The terms within the parentheses are called Factors of the expression. • Before discussing the canonical or normal forms of the SOP and POS forms of a Boolean expression, representing a boolean function, we must be familiar with the Minterms & Maxterms
  • 24. Minterm • A binary variable may appear either in its normal form (x) or in its complement form (x’). Now consider two binary variables x and y combined with an AND operation is known as minterm e.g. x’.y’, x’.y, x.y’, and x.y. If we have n variables can be form 2n minterms. Consider, the following Boolean function f (x, y, z) = x. y.z. + x'. y. z + x. y. z + x. y. z • The above stated function F (x, y, z) is a function of three Boolean variables, exact term on the right hand side is the product of all the three variables namely x, y, z either in direct or complemented form. Moreover, each of these variables appear only once in each of the product term. Hence, each product term on the right hand side is a minterm. On the other hand, the Boolean function or switching function f(x, y) = x + x. y is not represented by the minterms because the first term x is not a minterm as it does not contain both the literals.
  • 25. Maxterms • Now consider two binary variables x and y combined with an OR operation is known as maxterm e.g. x’+y’, x’+y, x+y’, and x+y. If we have n variables can be form 2n maxterms. Consider the following boolean function, f(x, y, z) = (x + y + z). (x' + y + z). (x + y' + z). (x + y + z') • The above stated function F (x, y, z) is a function of three Boolean variables, Each factor on the right hand side consists of the sum of all the three variables namely x, y, z and these variables appear only once in each factor. Hence each factor on the right hand side is a maxterm. • On the other hand, the boolean function f (x,y,z, w) = (x + y'). (x' + y' + z + w'). (x + y + ') is represented by three factors, namely x + y', x' + y' + z + w' and x + y + z' out of which only the factor x’ + y’ + z + w’, represents a maxterm, other factors are not maxterms.
  • 26. The following properties of maxterm and minterm must be noted. • A minterm can assume a value '1' for only one combination of variables. It has been stated earlier that a minterm in a SOP form of a Boolean expression is the product of all the variables either in direct or complemented form. The value of the minterm can be '1' only if all the variables in this term assume a true value represented by '1'. For all other values of these variables or variables, this term will have a value '0'. • A maxterm can assume a value '0’, for only one combination of variables. A maxterm in POS form of a Boolean expression is a sum of the variables either in direct or complemented form. This term can have a value '0' only if all the variables in this term assume a false value represented by '0'. For all other values of the variables this term will have a value '1 '.
  • 27. Minterms and Maxterms for 2 variable Variables Minterms Maxterms X Y Term Designation Term Designation 0 0 X’.Y’ m0 X+Y M0 0 1 X’.Y m1 X+Y’ M1 1 0 X.Y’ m2 X’+Y M2 1 1 X.Y m3 X’+Y’ M3 Variables Minterms Maxterms X Y Z Term Designation Term Designation 0 0 0 X’.Y’Z’ m0 X+Y+Z M0 0 0 1 X’.Y’Z m1 X+Y+Z’ M1 0 1 0 X’.Y.Z’ m2 X+Y’+Z M2 0 1 1 X’.Y.Z m3 X+Y’+Z’ M3 1 0 0 X.Y’.Z’ m4 X’+Y+Z M4 1 0 1 X.Y’.Z m5 X’+Y+Z’ M5 1 1 0 X.Y.Z’ m6 X’+Y’+Z M6 1 1 1 X.Y.Z m7 X’+Y’+Z’ M7
  • 28. Canonical (or Normal) Sum-of-Products form of a Boolean Expression • A Boolean expression comprising of the sum of minterms is called a Canonical or Normal form of the Sum -of -Products form of the Boolean expression. • The following Boolean expressions are in canonical SOP forms. (i) f (a,b) = a'.b + a.b (ii) f(a,b,c) = a.b.c + a.b'.c • The process of expressing a Boolean expression in canonical SOP form, is called Maximization (expansion). The following steps are followed to express a boolean function in its sum-of-products form : • Construct a truth table for the given boolean function. • Form a minterm for each combination of the variable, which produces a 1 in the function. • The desired expression is the sum (OR) of all the minterms obtained in step 2.
  • 29. Example • Obtain canonical sum-of-products form for the Boolean expression A + B Solution : The given expression is A+B The truth table for this expression is shown below • In this truth table the rows 2, 3 and 4 give an output 1. Hence the minterms are to be obtained from these rows. • The minterm from row 2, is obtairied by replacing the variable A by A ' (because A has value 0, therefore, A’ = 1) and taking its product (i.e. ANDing) with B. Thus the minterm is A'.B The minteml from row 3, is obtained by replacing the variable B by B ' (because B has value 0) and taking its product with A. Thus the minterm is A.B'. • The minterm from row 4, is obtained by taking the product of A with B, because both , have values as 1. Thus the minterm is A.B. • The required expression is obtained by adding (ORing) an the minterms. Thus the given expression can be written in canonical SOP form as shown below. A+B=A'.B+A.B'+A.B A B A+B 0 0 0 0 1 1 1 0 1 1 1 1
  • 30. Example Obtain the canonical POS forms of the following expression a.b + a'.b’ Solution. The given expression is a.b + a'.b’ The truth table for the given expression is presented below. • The maxterms are obtained from those rows for which the output is zero i.e. the second and third rows give the maxterms. • In the second row, the input a has a value 0 and the input b has a value 1. The maxterm is obtained by writing the input a in direct form and the input b in the complemented form and then adding these terms to obtain a+b'. • Similarly the maxterm obtained from the third row is a' +b. • The required canonical POS form of the given Boolean expression is • (a +b’). (a' +b) a b ab+a’b’ 0 0 1 0 1 0 (a+b’) 1 0 0 (a’+b) 1 1 1
  • 31. SIMPLIFICATION OF BOOLEAN FUNCTIONS{MLNTMIZATION). • The cost of fabricating a switching circuit depends upon the number of components used in it. Sometimes It is possible to design switching circuits which require lesser number of components and hence are less expensive compared to the equivalent switching circuits. • Switching circuits are generally represented by Boolean expressions also known as switching expressions or logical expressions. These expressions are expressed in concise form by Boolean functions. Each variable in a Boolean expression represents a switch. • The purpose of minimization of a Boolean function is to reduce this function to such a form that it contains minimum number of literals. This form of the Boolean function containing minimum number of variables is called the minima1 form, of the function.
  • 32. Obviously, a Boolean function in a minimal form when implemented in the form of a switching circuit needs least number of components. Such a circuit is the best one as it is least expensive compared to equivalent switching circuits. A Boolean function in SOP form or POS form is said to be in minimal form if switching expression representing this function possesses one or more of the following characteristics. • The expression contains the minimum number of variables, a variable may be present in direct or complemented form. • The expression has the minimum number of terms. • The expression requires least number of logical units (logical Gates) in its circuit implementation.
  • 33. • The last characteristic is the most important one and has to be met within practice, as it decides the cost of a switching circuit. While designing a switching circuit, one has to consider the constraints such as type of the logic function, number of inputs and operation speed etc. However, to start with the given function must be reduced to the form which contains least number of variables and also there must be few terms as possible. Some of the methods to reduce a given Boolean function to the minimal form are • By Boolean Algebra • By Karnaugh Maps • By Quine’s Method
  • 34. MINIMIZATION USING BOOLEAN ALGEBRA Using Postulates Minimise equation A’.B + A.B+A’.B’ Solution : =B(A’+A)+A’B’ (a(b+c) = a.b +a.c) =B.1+A’B’ (a+a’ = 1) =B+A’B’ (a.1=1) =B+B’A’ (a.b=b.a) =B+A’ (a+a’b=a+b) =B+A’
  • 35. Using laws of Boolean algebra, prove A.B + A’.C + B.C = A.B + A’.C Solution. L.H.S. = A.B + A’.C + B.C.1 (A .1 =A) = A.B + A’.C + B.C.(A + A’) (A + A’ =1) = A.B + A’.C + B.C.A + B.C.A’ (Distributlve law) = A.B + A’.C + A.B.C + A’.B.C (Associatlve law) = A.B + A.B.C + A’.C + A’.B.C (Commutatlve law) = A.B. (1 + C) + A’.C (1 + B) (Distributlve law) =A.B.l +A’.C. 1 (1 +B= 1. 1 +C= 1) = A.B + A’.C = R.H.S. (A.1= A)
  • 36. MINIMIZATION USING KARNAUGH MAP(K-MAP) METHOD. • A better and more elegant way to reduce a Boolean function to the minimal form is with the help of a graphical method called Karnaugh Map method. • A Karnaugh map(K-Map) is a graphical representation of a boolean function. • Once a Boolean function is represented by a K-Map, then this function can be reduced to the minimal form in a very easy manner. • Moreover, this map ensures that further minimzation of the Boolean function is not possible. • In short, a K-Map provides a systematic mathematical method to reduce a Boolean function to the minimal form. • A K-Map can be used to simplify Boolean functions having any number of variables but this map becomes unsuitable and cumbersome for the Boolean functions of more than four variable
  • 37. • The map is a diagram made up of squares also called cells. • The number of cells in this map depends upon the number of variables in the switching function. • A Karnaugh map for a Boolean function of n variables consists of 2n squares or cells. • Each square represents one minterms. Since any boolean function can be expressed as a sum of minterms, it follows that a boolean function is recognised graphically in the map from the area enclosed by those squares whose minterms are included in the function. • By recognising various patterns, the user can derive alternative algebraic expressions for the same function, from which he can select the simplest one. • We shall assume the simplest algebraic expression is any one in a sum of products or products of sums that has a minimum number of literals. (This expression is not necessarily unique.)
  • 38. Rules for drawing and Simplification of K-Map Before drawing a K-map for the given function, the function must be converted to canonical form, preferably to the SOP form. • A K-map is to be drawn in such a manner that the adjacent cells remain logical neighbours. Two cells are called adjacent or neighbouring cells, if these have only one common side between them. • When no. of variables in function are 2 then the number of cells in the K-map are 2; when variables are 3, cells are 8 and when variables are 4, cells are 16. • It is permissible to interchange the variable along the horizontal and vertical axis. • Enter a 1 on the K-map for each fundamental product that corresponds to 1 output in the truth table. Enter 0s elsewhere. • Encircle the octets(A group of 8 adjacent 1s on a K-map), quads(A group of 4 adjacent 1s on a K-map), and pairs(A group of 2 adjacent 1s on a K-map, these 1s may be horizontally or vertically alligned). Remember to roll and overlap to get the largest group possible. If any 1s remains, encircle them. • Eliminate redundant groups (A group of 1s on a Kmap all of which are overlapped by other groups) if they exist. • Write the boolean equation by ORing the products corresponding to the encircled groups.
  • 39. Two Variable K-Map • As we read earlier that if we have two variables then we have 22 minterms i.e. 4 minterms, hence the map consists of four squares. • Let take Variable A have two states A and A’ (i.e. 1 and 0) and B also have two states B and B’. A have total One unit area and B also have total one unit area as shown in figure A B For two states these will looks like B’ B A’ A
  • 40. After superimposing these two we get four squares for different minterms, as shown in figure. Example : Draw a K-Map to minmise the following boolean function 1. f(A,B)=A’B’ +A.B’ +A’.B, or = (0,1,2), or = m0+m1+m2 2. f(A,B) = A’B’ +A.B, or = = (0,3), or = m0+m3 Example 1.With the help of above shown diagram, put 1 which minterm is present A’ B’ B A’B’ 00 A’B 01 A AB’ 10 AB 11 A’ B’ B m0 m1 A m2 m3 A’ B’ B 1 1 A 1 0 A’ B’ B 1 1 A 1 0 B’ A’
  • 41. In Table(where groups are made), We made two groups. Put each groups value and add them Therefore, we get, =A’+B’ This is the minimisation of A’.B’+A’.B+A.B’ = A’+B’ We can also prove it by Boolean algebric expression or by Truth table method. Example 2. With the help of above shown diagram, put 1 which minterm is present In this example we have only two minterms present, they both are not adjacent or you can say they are diagonal. So, we can’t make groups. Therefore, by putting each minterm’s value and adding them we get minimised result. A’.B’+A.B f(A,B) =A’.B’+A.B=A’.B’+A.B LHS is eqaul to RHS, This shows we can’t minimise this expression or you can this is minimised expression. A’ B’ B 1 0 A 0 1 A’ B’ B 1 0 A 0 1
  • 42. Three Variable K Map • Now consider the case of three variable K-Map. In three variable K-Map we have 23 i.e. 8 minterms, hence the map consists of eight squares. • Let us take three variables as A, B & C. All these variables have two states i.e. A & A’, B & B’ and C & C’. Now All these variables have unit area as shown • Now, in this unit area both the states (i.e. 1 & 0) can be represented as given below. A B C A’ A B’ B B’ C’ C
  • 43. • By Superimposing, these three we get eight squares for different mintermes as shown below A’ C’ C A’B’C’ 000 A’B’C 001 B’ A’BC’ 010 A’BC 011 B A ABC’ 110 ABC 111 AB’C’ 100 AB’C 101 B’ A’ C’ C m0 m1 B’ m2 m3 B A m6 m7 m4 m5 B’
  • 44. Examples : Design a K-Map to represent the following switching functions. 1) F(A,B,C) = ABC’ +AB 2) F(X,Y,Z)=X’Y’Z’ +X’Y’Z+XY’+XY Solutions : F(A,B,C) = ABC’ +AB First covert the expression into canonical SOP By using above methods discussed in the above SOP section We get, F(A,B,C)=ABC’+ABC’+ABC F(A,B,C)=ABC’+ABC (B’coz A+A=A) or F(A,B,C)= (6,7)=m6+m7 Put these in the K-Map by presenting 1 in the squares A’ C’ C m0 0 m1 0 B’ m2 0 m3 0 B A m6 1 m7 1 m4 0 m5 0 B’ A’ C’ C m0 0 m1 0 B’ m2 0 m3 0 B A m6 1 m7 1 m4 0 m5 0 B’ AB a b
  • 45. In Figure b, We made One group of minterm m6 and m7. Put each groups value and add them.Therefore, we get, =AB This is the minimization of F(A,B,C) = ABC’ +AB = AB • We can also prove it by Boolean algebric expression or by Truth table method. Solutions 2) F(X,Y,Z)=X’Y’Z’ +X’Y’Z+XY’+XY • First covert the expression into canonical SOP • By using methods discussed in the above SOP section We get, F(X,Y,Z)= X’Y’Z’ +X’Y’Z+XY’Z+ XY’Z’+XYZ+ XYZ’ or F(X,Y,Z)= (0,1,4,5,6,7) Put these in the K-Map by presenting 1 in the squares
  • 46. X’ Z’ Z m0 1 m1 1 Y’ m2 0 m3 0 Y X m6 1 m7 1 m4 1 m5 1 Y’ We made two groups Blue and Red of minterm Put each groups value and add them Red Line Group (m1, m2, m4, m5) is equal Y’ Blue Line Group (m4, m5, m6, m7) equal to the value X Therefore, we get, =X+Y’ This is the minimisation of F(X,Y,Z)=X’Y’Z’ +X’Y’Z+XY’+XY =X+Y’ We can also prove it by Boolean algebraic expression or by Truth table method. X Y’
  • 47. Four Variable K-Map Now consider the case of Four variable K-Map. In four variable K-Map we have 24 i.e. 16 minterms, hence the map consists of 16 squares. • Let us take Four variables as A, B, C & D. All these variables have two states i.e. A & A’, B & B’ , C & C’ and D & D’. Now All these variables have unit area with both states as shown A’ A B’ B B’ C’ C D’ D D’
  • 48. C’ C A’ A’B’C’D’ 0000 m0 A’B’C’D 0001 m1 A’B’CD 0011 m3 A’B’CD’ 0010 m2 B’ A’BC’D’ 0100 m4 A’BC’D 0101 m5 A’BCD 0111 m7 A’BCD 0110 m6 B A ABC’D’ 1100 m12 ABC’D 1101 m13 ABCD 1111 m15 ABCD’ 1110 m14 AB’C’D’ 1000 m8 AB’C’D 1001 m9 AB’CD 1011 m11 AB’CD’ 1010 m10 B’ D’ D D’ Examples Develop K-map for minimisation of Boolean expression. or Obtain the minimal SOP form of the following by K-Map method. 1). F(ABCD) = A’B’C’D +A’BC’D + A’BCD’ +A’BCD+ABCD’ +ABCD 2) F(A,B,C,D) = (0,1,2,4,5,8,9,10,12,13)
  • 49. Solution 1 1) F(ABCD) = A’B’C’D +A’BC’D + A’BCD’ +A’BCD+ABCD’ +ABCD First covert the expression into canonical SOP. This is already in the SOP or F(A,B,C,D)= (1,5,6,7,14,15) Put these in the K-Map by presenting 1 in the squares C’ C A’ m0 0 m1 1 m3 0 m2 0 B’ m4 0 m5 1 m7 1 m6 1 B A m12 0 m13 0 m15 1 m14 1 m8 0 m9 0 m11 0 m10 0 B’ D’ D D’ A’C’D BC
  • 50. In Figure, We made two groups of minterm Put each groups value and add them Red Group (m6, m7, m14, m15) is equal BC Blue Group (m1, m5) equal to the value A’C’D Therefore, we get, =BC+A’C’D This is the minimisation of F(ABCD) = A’B’C’D +A’BC’D + A’BCD’ +A’BCD+ABCD’ +ABCD = BC+A’C’D We can also prove it by Boolean algebric expression or by Truth table method. 2nd Problem is for your home work
  • 51. Thanks! If you have any problem Write me at rozygag@yahoo.com