Docsity

Boolean Algebra Chapter11, Lecture notes of Algebra

Toggle sidebar
bg1
253
Math 123 Boolean Algebra
Chapter - 11
Boolean Algebra
11.1 Introduction:
George Boole, a nineteenth-century English Mathematician,
developed a system of logical algebra by which reasoning can be
expressed mathematically. In 1854, Boole published a classic book, “An
Investigation of the Laws of thought” on which he founded the
Mathematical theories of Logic and Probabilities,
Boole‟s system of logical algebra, now called Boolean algebra,
was investigated as a tool for analyzing and designing relay switching
circuits by Claude E. Shannon at the Massachusetts institute of
Technology in 1938. Shannon, a research assistant in the Electrical
Engineering Department, wrote a thesis entitled “A” symbolic Analysis of
Relay and Switching Circuits. As a result of his work, Boolean algebra is
now, used extensively in the analysis and design of logical circuits. Today
Boolean algebra is the backbone of computer circuit analysis.
11.2 Two Valued Logical Symbol:
Aristotle made use of a two valued logical system in devising a method
for getting to the truth, given a set of true assumptions. The symbols that
are used to represent the two levels of a two valued logical system are 1
and 0. The symbol 1 may represent a closed switch, a true statement, an
“on” lamp, a correct action, a high voltage, or many other things. The
symbol “O” may represent on open switch, a false statement, an “off”
lamp, an incorrect action, a low voltage, or many other things.
For the electronics circuits and signals a logic 1 will represent
closed switch, a high voltage, or an “on” lamp, and a logic 0 will represent
an open switch, low voltage, or an “off” lamp. These describe the only two
states that exist in digital logic systems and will be used to represent the in
and out conditions of logic gates.
11.3 Fundamental Concepts of Boolean Algebra:
Boolean algebra is a logical algebra in which symbols are used to
represent logic levels. Any symbol can be used, however, letters of the
alphabet are generally used. Since the logic levels are generally associated
with the symbols 1 and 0, whatever letters are used as variables that can
take the values of 1 or 0.
Boolean algebra has only two mathematical operations, addition
and multiplication. These operations are associated with the OR gate and
the AND gate, respectively.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e

Partial preview of the text

Download Boolean Algebra Chapter11 and more Lecture notes Algebra in PDF only on Docsity!

Math 123 Boolean Algebra

Chapter - 11

Boolean Algebra

11.1 Introduction:

George Boole, a nineteenth-century English Mathematician, developed a system of logical algebra by which reasoning can be expressed mathematically. In 1854, Boole published a classic book, “An Investigation of the Laws of thought” on which he founded the Mathematical theories of Logic and Probabilities, Boole‟s system of logical algebra, now called Boolean algebra, was investigated as a tool for analyzing and designing relay switching circuits by Claude E. Shannon at the Massachusetts institute of Technology in 1938. Shannon, a research assistant in the Electrical Engineering Department, wrote a thesis entitled “A” symbolic Analysis of Relay and Switching Circuits. As a result of his work, Boolean algebra is now, used extensively in the analysis and design of logical circuits. Today Boolean algebra is the backbone of computer circuit analysis.

11.2 Two Valued Logical Symbol:

Aristotle made use of a two valued logical system in devising a method for getting to the truth, given a set of true assumptions. The symbols that are used to represent the two levels of a two valued logical system are 1 and 0. The symbol 1 may represent a closed switch, a true statement, an “on” lamp, a correct action, a high voltage, or many other things. The symbol “O” may represent on open switch, a false statement, an “off” lamp, an incorrect action, a low voltage, or many other things. For the electronics circuits and signals a logic 1 will represent closed switch, a high voltage, or an “on” lamp, and a logic 0 will represent an open switch, low voltage, or an “off” lamp. These describe the only two states that exist in digital logic systems and will be used to represent the in and out conditions of logic gates.

11.3 Fundamental Concepts of Boolean Algebra:

Boolean algebra is a logical algebra in which symbols are used to represent logic levels. Any symbol can be used, however, letters of the alphabet are generally used. Since the logic levels are generally associated with the symbols 1 and 0, whatever letters are used as variables that can take the values of 1 or 0. Boolean algebra has only two mathematical operations, addition and multiplication. These operations are associated with the OR gate and the AND gate, respectively.

Math 123 Boolean Algebra

11.4 Logical Addition:

When the + ( the logical addition) symbol is placed between two variables, say X and Y, since both X and Y can take only the role 0 and 1, we can define the + Symbol by listing, all possible combinations for X and Y and the resulting value of X + Y. The possible input and out put combinations may arranged as follows: 0 + 0 = 0 0

  • 1 = 1 + 0 = 1 1 + 1 = 1 This table represents a standard binary addition, except for the last entry. When both' X and Y represents 1‟s, the value of X + Y is 1. The symbol + therefore does not has the “Normal” meaning, but is a Logical addition symbol. The plus symbol (+) read as "OR", therefore X +Y is read as X or Y. This concept may be extended to any number of variables for example A
  • B + C +D = E Even if A, B, C and D all had the values 1, the sum of the values i.e. is 1.

11.5 Logical Multiplication:

We can define the "." (logical multiplication) symbol or AND operator by listing all possible combinations for (input) variables X and Y and the resulting (output) value of X. Y as, 0 .0= 0 0 .1 = 0 1 .0 = 0 1 .1 = 1 Note : Three of the basic laws of Boolean algebra are the same as in ordinary algebra; the commutative law, the associative law and the distributive law. The commutative law for addition and multiplication of two variables is written as, A + B = B + A And A. B = B. A The associative law for addition and multiplication of three variables is written as, (A + B) + C = A + (B + C) And (A .B). C = A. (B. C)

Math 123 Boolean Algebra Fig. 2

Truth Table for a switch circuit operation as an OR gate. Table

- 1 Switch X Switch Y Output Z Open Open 0 Open Closed 5V Closed Open 5V Closed Closed 5V Note that for the switch circuit were use diodes and resistors, Transistors and resistors and other techniques to control the voltage and resistance. Note: If the switch is "on", it is represented by 1, and if, it is "off", it is represented by 0. Truth Table for a Two-input OR gate. Table - 2 In Put Out Put X Y Z 0 0 0 0 1 1 1 0 1 1 1 1 Truth table for a three in put OR gate. Table – 3 A B C X 0 0 0 0 0 0 1 1 0 1 0 1

X

Z

Y

V =5v

Math 123 Boolean Algebra 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 1 No. of combinations = 2 n, where n is number of variables.

AND Gate:

An AND gate is a logic circuit with two or more input signals and one output signal. The output signal of an AND gate is high (logic 1) only if all inputs signals are high (Logic 1). An AND gate performs logical multiplication on inputs. The symbol for AND gate is X Y Fig. A circuit that will functions as an AND gate can be implemented in several ways. A mechanical AND gate can be fabricated by connecting two switches in series as show in fig. 4 Fig. Truth Table for a switch circuit operation as an AND gate.

Table – 4

Switch X Switch Y Output Z Open Open 0

X.Y= Z

X

Math 123 Boolean Algebra assume in two-value logic system, therefore if the input is 1, the output is 0 and if the input is 0 the output is 1. The symbol used to represent complementation of a variable is a bar (-) above the variable, for example _ the complementation of A is written as A and is read as “complement of A” or “A not”. Since variables can only be equal to 0 or 1, we can say that _ O = 1 Or

_  1

=O

Also O = O Or = 1

Invertors Or NOT gate:

An inventor is a gate with only one .input signal and one output signal; the output signal is always the opposite or complement of the input signal. An invertor is also called a NOT gate because the output not the same as the input.

Fig. 5

The circle at the output or input indicates inversion. It also distinguish between the symbol for the NOT gate or the symbol for an operational amplifier or certain types of buffers, because the symbol - ►can also be used for diode. Truth Table for a NOT circuit

Table – 7

In put Out put 0 1 1 0 Symbol of inverter or NOT gate is N (^) X Fig. 5 (i) Fig.5 (ii) N^ X^ X Fig.5(ii) (Two invertors in series)

X^ X

X

Math 123 Boolean Algebra NOTE : A word is a group (or string) of binary bits that represents a closed instruction or data, Example 1: How many input words in the Truth Table of an 6 - input OR gate? Which,^ input word produce a high output? Solution: The total number of input word‟s = 2n^ = 2^6 =32, where n is number of inputs. In an OR gate 1 or more-high inputs produce a high output. Therefore the word of 000000 results in low outputs all other input words produce a high output.

11.7 Basic Duality in Boolean Algebra:

We state the duality theorem without proof. Starting with a Boolean relation, we can derive another Boolean relation by

  1. Changing each OR (+) sign to an AND (.) sign
  2. Changing each AND (.) sign to an OR (+) sign. 3. Complementary each 0 and 1 For instance A + 0 = A The dual relation is A. 1 = A Also since A (B + C) = AB + AC by distributive law. Its dual relation is A + B C = (A + B) (A + C)

11.8 Fundamental Laws and Theorems of Boolean

Algebra:

  1. X + 0 = X

  2. X + 1 = 1 OR operations

  3. X + X = X __

  4. X + X =

  5. X. 0 =

  6. X. 1 =X AND operations

  7. X. X = X __

  8. X. X = 0

  9. X = X Double complement

  10. X + Y = Y + X Commutative laws

  11. XY = YX

  12. (X + Y ) +Z = X +(Y + Z) Associative laws

Math 123 Boolean Algebra 1 0 1 1 1 0 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 R.H.S. = L.H.S. Rule .16 X +XZ =X L.H.S. =X + XZ = X(1 + Z) = X. 1 = X, I + Z = 1 = R.H.S. Rule 17: X(X +Z) =X L.H.S. = X (X + Z) =X X +XZ By distributive law =X +XZ, as X.X = X =X (1 +Z), = X. 1 = X L.H.S. = R.H.S. As 1 +Z = __ Rule 18: (i) X + X Y =X + Y

L.H.S. = X + X Y = (X + X ). (X +Y) By rule 15 dual Of distributive law. __ = 1. (X + Y) as X + X = 1 = X + Y L.H.S. = R.H.S. (ii) Proof by perfect Induction Method: __

Truth Table 9 for L.H.S. X + X Y and for R.H.S. X + Y

X Y __

X

__

X Y

__

X +X Y

X + Y

L.H.S. =R.H.S.

Rule 19: __ (i) X.( X +Y) = X. Y

L.H.S. = X (X + Y) =X X +X Y By distributive law

Math 123 Boolean Algebra = 0 +XY as X. X = =X Y L.H.S. = R.H.S. (ii) Proof by Perfect Induction Method:

__

Truth Table 10 for L.H.S. X. ( X +Y) and for R.H.S. X.Y.

X Y

__

X

__

X +Y

__

X (X + Y)

X. Y

L.H.S. = R.H.S.

11.9 De Morgan’s Theorems:

(i) X + Y = X. Y

(ii) X. Y = X + Y Proof: (i) By Perfect induction

(i)Truth Table 11 for L.H.S. X + Y and for R.H.S. X. Y

X Y __

X

__

Y

X +Y ______

X + Y

__ __

X. Y

L.H.S. =R.H.S.

(ii)Truth Table 12 for L.H.S. X. Y and for R.H.S. X + Y

X Y __

X

__

Y

X .Y ______

X. Y

__ __

X + Y

L.H.S. =

R.H.S. Rules: 3 rd^ and 7th^ called idempotent. These shows that Boolean algebra is idempotent.

Math 123 Boolean Algebra Solution: ______ __ ___ X+ YZ = X. YZ

= X .(Y + Z ) by DeMorgan‟s Law This relation can be verified by perfect induction.

Truth Table 13 for L.H.S. X+YZ and for R.H.S. X. (Y + Z ) X Y Z __ X __ Y __ Z (^) YZ X+YZ

Y + Z

_

X+YZ

X (Y + Z ) 0 0 0 1 1 1 0 0 1 1 1 0 0 1 1 1 0 0 0 1 1 1 0 1 0 1 0 1 0 0 1 1 1 0 1 1 1 0 0 1 1 0 0 0 1 0 0 0 1 1 0 1 1 0 0 1 0 1 0 1 0 0 1 1 0 0 1 1 0 0 0 1 0 1 1 0 0 1 1 1 0 0 0 1 1 0 0 0 L.H.S. = R.H.S. __ __ Example 4: Find the complement of A B + C D , (b) AB +CD = 0 Solution:

(a) A B + C D = (A B ). ( C D ) = __ __ = = (A + B ). (C + D )

(A+ B ). (C + D) (b) AB +CD= 0 Taking complement on both sides.

= AB + CD = O

= AB. CD = 1

(A + B ). (C +D ) = 1 Example 5: Simplify the Boolean expressions:

Math 123 Boolean Algebra

(i) (X +Y) ( X+ Y ) (X +Z)

__ __ (ii) XYZ + X Y Z + XY Z Solution: __ (i) First simplify (X + Y ) ( X + Y )

(X + Y) (X + Y ) = XX + XY + YX + YY __ = X + X Y + YX +O, as XX =X __ as YY = 0

= X + X(Y + Y), as Y + Y = = X + X. 1, as X .1 = X = X + X = X

Now (X + Y) (X + Y ) (X +Z) __ =X(X + Z) __ =XX +XZ, by distributive law = 0 + XZ = XZ

(ii) XYZ + X Y Z + XY Z

=XZ (Y +Y ) + XY Z

=XZ + XY Z , as Y +Y = __ =X (Z +Y Z ) __ = X[(Z +Y). (Z + Z )], (By Rule 15 dual of distributive = X [(Z + Y). 1] = X (Z + Y) =X (Y + Z), by commutative law.

Math 123 Boolean Algebra = AB + A C + BC

= AB +A C + 1.BC as 1 = A + A

= AB +A C + (A + A ) BC

= AB +A C +ABC + A BC , by distributive law

=AB +ABC + A C + A BC, by commutative law __ = AB (1 + C) + A C (1 + B), AS 1 + X = 1 __ =AB + A C L.H.S. =R.H.S. __ (d) L.H.S. = (A +B) (A + C)( B + C)

=(AA + AC + BA + BC) ( B + C) __ =(0 + AC +BA + BC) ( B +C) __ =(AC + BA + BC ) (B + C) __ =[AC + B(A + C)] (B + C)

=ABC + ACC + BB (A + C) + BC (A + C)

=ABC + AC + B (A + C) + BC (A + C) __ = AC (B + 1) +B (A + C) (1 + C) __ = AC + B(A + C)

= AA + AC + B (A + C) as AA = 0

= A(A + C) + B(A + C) or by rule 19. __ = (A + B) (A + C) L.H.S. = R.H.S.

11.10 Sum of Product (Minterm):

Math 123 Boolean Algebra The S um of Product means that the products of the variables that are seperated by a plus sign. The variables can be complemented or uncomplemented, for-example,

AB + A B + A B + A B + ABC + AB C + AB C

11.11 Product of sum (Maxterm):

The P roduct of Sum means that the sum of variables that are seperated by a multiplication sign. For example,

(A + B) (A + B) (A + B ) (A + B ),

(A + B + C)(A + B + C )(A + B + C)

11.12 Fundamental Products:

The products that produce a high (1) output are called Fundamental products. For example, for the two input variables A and B. We have four possible combination‟s, which are shown in the table below and the fundamental product‟s corresponding to each:

Truth Table 14 Two Variables Table

A B Fundamental Product

Output Z (^0 0) A B __ 1 (^0 1) A B __ 1 1 0 AB 1 1 1 AB 1 For three input variables or signals a similar idea is applied. Whenever the input variable is 0, the same variable is complemented in the fundamental product.

Truth Table 15. Three variables

A B C Output Z Fundamental Product Output for product Sum terms Output for Sum 0 0 0 0

A B C 1 A+B+C 0 0 0 1 0

A B C 1 __ A+B+ C 0 0 1 0 1 __ __ 1 __ 0

Math 123 Boolean Algebra

Y = (A + B + C)(A + B + C )( A + B + C )(A + B + C )

NOTE: The Boolean expression from the truth table is the sum of product

(minterms)terms for which the output is i.e.,

X = A B C + A BC + AB C + ABC

11.13 NAND and NOR gates:

DeMorgan‟s theorems form two new gates NAND and NOR gates. These gates are the most popular and most widely used logic gates. Since any logic circuit can be constructed using only NAND and NOR gates, they are often referred to as the Universal building blocks.

NAND gates:

This NAND (or not AND) gate is an AND gate followed by a NOT circuit: The operation of the NAND gate is described by one of

DeMorgan‟s Theorem, which states that A.B = A + B. The

NAND gate has two or more input signals but only one output signal. Any input must be high to get a high output NANDGae (a) Standard Symbol (^) (b) Logical meaning of NAND Gate

Fig. 6(a) (b)

NAND- Gate truth Table 17

Table 17

A B A.B.

NOR-Gate:

The NOR (or not OR) gate is an OR-gate followed by a NOT circuit. The operation of the NOR-gate is described by DeMorgan‟s theorem, which states that.

A + B = A. B The NOR gate has two or more input signals but only one output signal. All inputs must be low to get a high output. B A.B =A + B A.B A A.B =A + B B A

Math 123 Boolean Algebra NAND Gate ( c) Standard Symbol (d) Logical meaning of NAND Gate Fig. 6(C)(d)

Table 18

____

A B A + B A + B

NAND and NOR Gates in Two level Network

Fig. 7: NAND and NOR Gates in Two - Level Networks Fig. 7

11.14 Combination of Gates:

The OR gate and AND gates and invertors can be interconnected to form gatting or logic networks, in the switching theory, these are also called combinational networks. The Boolean algebra expression corresponding B A+B A A+B =A. B B A A+B =A. B