Professional Documents
Culture Documents
"Boolean Algebra and Its Application": Master of Science
"Boolean Algebra and Its Application": Master of Science
"Boolean Algebra and Its Application": Master of Science
Master Of Science
IN MATHEMATICS
By
KOMAL MISHRA
Under the guidance of
Dr. R.K. PANDEY
Master Of Science
IN MATHEMATICS
By
KOMAL MISHRA
Under the guidance of
Dr. R.K. PANDEY
KOMAL MISHRA
M.Sc. (Mathematics)-Third Semester (2021-
22) University Roll No.
29 November 2021
CERTIFICATE
Certified that the Technical Report entitled “BOOLEAN ALGEBRA AND ITS
APPLICATION” based on the Seminar (Course Code MMS13), is a bonafide work
carried out by KOMAL MISHRA Student of M.Sc. (Mathematic)-Third Semester
(University Roll No.1201080004) under my supervisor in partial fulfillments for the
award of the degree of Master Science in mathematics of Babu Banarasi Das
University, Lucknow, Uttar Pradesh India.
Dr. R. K. Pandey
Professor
29 November 2021
CONTENTS
1 INTRODUCTION
2 NOTATION, SYMBOLS AND OPERATIONS
3 LAWS OF BOOLEAN ALGEBRA
i. USE OF BRACKETS
ii. NAND GATES
4 READING A COMPOUND STATEMENT GIVEN ITS TRUTH TABLE
a. MANIPULATION OF COMPOUND BOOLEAN STATEMENTS
b. SIMPLIFICATION OF COMPOUND BOOLEAN STATEMENTS
c. APPLICATIONS TO THE DESIGN OF LOGIC CIRCUITS
5 BOOLEAN ALGEBRA: SUMMARY OF IMPORTANT SKILLS
2. BOOLEAN ALGEBRA
INTRODUCTION
This table represents all that one needs to know about the
specific task of adding exactly two (not more!) single-digit
binary numbers. We can now examine and attempt to describe
the functional (see a later chapter for a formal definition of a
“function”), relationship between the inputs and outputs. A little
thought will lead to the following conclusions:
C1 is 1 only if both A0 and B0 are 1, otherwise it is 0
S0 is 1 only if either A0 or B0 are 1, but not both
In this chapter, we will introduce algebraic operators, such as
“and”, “or”, “not” and “exclusive-or”, which allow us to
systematically build such sets of functional specifications. For the
simple case of two single-digit binary numbers, this may not seem
necessary, but becomes very useful even for slightly more complex
situations. The example below (called the “full-adder”, briefly
explained in the previous chapter), brings only one more variable,
the carry digit from the next-less-significant binary addition
operation, so that now we are adding exactly three single-digit
binary numbers, represented by Ai, Bi , and Ci. Now we need to
consider 8 possible cases of input, because 23 = 8. We still need
only 2 output bits, because the sum of three single-digit binary
numbers can be no more than 3, which is represented by Ci+1=1
and Si=1. How shall we organize the eight cases? The simplest and
most convenient way is to count from 0 to 7, arranging the input
digits to represent the case- number, as shown in the table below:
Inputs Outputs
Case # Ai Bi Ci Ci+1 Si
0 0 0 0 0 0
1 0 0 1 0 1
2 0 1 0 0 1
3 0 1 1 1 0
4 1 0 0 0 1
5 1 0 1 1 0
6 1 1 0 1 0
7 1 1 1 1 1
Of course, one can also look for logical patterns in such a set of
specifications, such as:
A A' A B AB A+B
0 1 0 0 0 0
1 0 0 1 0 1
1 0 0 1
1 1 1 1
A B AB
0 0 0
0 1 1
1 0 1
1 1 0
DERIVED
BASIC OPERATIONS OPERATION
NOT AND OR XOR
AA' A A A
B AB B A+B B A'B + AB'
Also NAND A
B'
AB’
(AB)'
knownas A A'
AB
B A’B
B
an inverter
made from an AND gate and an inverter XOR circuit made up of
NOT, AND and OR gates
One way of looking at the two basic connectives, AND and OR, is to
use the switch analogy. We have two switches, p and q, which
control a light bulb. If these two switches are in series, then they
must both be closed if the bulb is to light. This is p and q (pq). If the
two switches are in parallel, then if either one or both are on, the
bulb will light. This is p or q (p+q).
and: or:
pqp
stable switch, an input “p” can be stably connected to either of two output lines, one
“p” and the other called “not-p”.(Notethatthe symbolismpmeansthe
as p’.)
LAWS OF BOOLEAN ALGEBRA
Each of the laws stated below can be proven through the use of
truth tables. These should be examined carefully. While some of
them are the same as the laws of ordinary algebra, some of them
are not. In particular, one should note De Morgan’s laws, the first
distribution law, the idempotency laws, the first domination law
and the absorption laws.
Note that the variables A,B,C, … P,Q can each represent any
Boolean expression (single variable or compound statement).
It can be shown, by using the Laws of Boolean Algebra, that the
XOR operation is commutative and associative, namely that:
AB = BA and that A(BC) = (AB)C. We can therefore
without loss of clarity omit the brackets and write ABC.
A(BC)
= A’(BC’ + B’C) + A(BC’ + B’C)’ definitions
= A’(BC’ + B’C) + A[(BC’)’ (B’C)’] deMorgan
= A’(BC’ + B’C) + A[(B’+C) (B+C’)]deMorgan
= A’(BC’ + B’C) + A[B’B+B’C’+CB+CC’] distributive
= A’(BC’ + B’C) + A[0+B’C’+CB+0]inverse
= A’(BC’ + B’C) + A[B’C’+CB] identity
= A’BC’ + A’B’C + AB’C’+ABC distributive
= A’BC’ + AB’C’ + A’B’C + ABC commutative
= (A’B + AB’)C’ + (A’B’ + AB)C distributive
= (AB)C’ + (AB)’C definitions
* In our treatment on logic we will define the derived operation “if and only if” with a special
symbol , so that (AB)’ = AB
NAND GATES
Note that a NAND gate with both inputs connected together (left-
most column) behaves as an inverter.
A
A A'
B'
(AB’)'
which is A (AB)'
AB
as
A A'
B' A'BC'
C' AABBC’C' ’
ABC
1 When each Boolean “product” term contains all of the available variables, in this case A,B and C,
then it is called a Boolean “sum of products”.
The initial result of Example 2, G’ = A’B’C’ + ABC’, is also a AND-
then- OR result for the function G’ (not for G). We could obtain the
AND- then-OR result for G by using the laws of logic: G = [(A’B’ +
AB)C’]’
G = (A’B’)’(AB)’ + C (deMorgan)
G = (A+B)(A’+B’)+C (deMorgan)
G=AA’+AB’+A’B+BB’+C (Distributive)
G=0+AB’+A’B+0+C (Inverse)
G=AB’+A’B+C (Identity)
This is in AND-then-OR format.
There are at least two other important formats for digital logic
design, the Boolean “OR-then-AND” and NAND formats. Boolean
functions can be converted between these various formats using
the laws of logic. Note that, although these are different
representations of the same function, the three formats are
logically equivalent (the truth table for the function remains the
same).
In the Boolean OR-then-AND format, the function is represented
as a simple Boolean “product” of parenthesized expressions, each
of which is a Boolean “sum” of (possibly-negated) primitive
statements.
For example, one can convert the above AND-then-OR result for G’
in Example 2, into OR-then-AND format for G (not G’) as follows:
G’ = A’B’C’ + ABC’
G’’ = (A’B’C’ + ABC’)’ (negation of both sides)
G = (A’B’C’ + ABC’)’ (double negation)
G = (A’B’C’)’(ABC’)’ (deMorgan)
G = (A+B+C)(A’+B’+C) (deMorgan)
This is the result for G in OR-then-AND format.
One could also have converted the result of Example 1 into OR-
then-AND format, by working from the 0’s, as follows:
G = (A’B’C’)’(ABC’)’
G = [[(A’B’C’)’(ABC’)’]’]’ (double-negation)
A A'
[(A’B’C’)’(ABC’)’]’
(A'B'C')'
[(A'B'C')'(ABC')']'
B B'
G
(ABC')'
C
C'
G = (A’B’C’)’(ABC’)’
G’ = A’B’C’ + ABC’ = (A’B’ + AB)C’ (DeMorgan,distrib’ve)
G = (A’B’ + AB)’ + C (negation, De Morgan)
G=A’B+AB’+C (See page 2.10)
G = [A’B + AB’ +C]’’ (double-negation)
G = [(A’B)’(AB’)’C’]’ (DeMorgan)
DeMorgan
(inner brackets) double negation
F = [(A+B+C')' +
(A’+B’+C')'] F = F’’ = [(A’B’C) + (ABC)]’’
deMorgan deMorgan
NAND Format
F = [(A+B+C')(A’+B’+C')]' F = [(A’B’C)'(ABC)']'
deMorgan
(inner brackets)
negation
DeMorgan
(inner brackets) double negation
deMorgan deMorgan
NAND Format
F’ = [(A+B+C) (A+B’+C) (A+B’+C’) F’ = [(A’B’C’)’(A’BC’)’(A’BC)’
(A’+B+C) (A’+B+C’) (A’+B’+C)]’ deMorgan+ (AB’C’)’(AB’C)’(ABC’)’]’
(inner brackets)
negation
i. F=AB+AB’
= A(B + B’) (Distributive)
= A(1) (Inverse)
=A (Identity)
The second way is to write the truth table for the given statement
F, and then read off the values of the variables that make F true,
namely, a truth-value of 1.
For our simple example:
A B F=A+B
0 0 0
0 1 1
1 0 1
1 1 1
Now one can recognize that minterms may be repeated, using the
idempotent law. This is done in order to group the repeated
minterm with other minterms, in order to remove literals.
A B C F
0 0 0 0
0 0 1 1 A’B’C
0 1 0 1 A’B
0 1 1 1
1 0 0 1
1 0 1 1 A
1 1 0 1
1 1 1 1
then examined the truth table and noticed that F’ = A’B’C’, so that F
= (A’B’C’)’ = A + B + C (by De Morgan).
Example 2: Simplify F = AB+A’C+BC
One could construct the minterms in the usual ways: by truth table
and/or by expansion of the three terms AB, A’C, BC.
Example 3: Given the following truth table, find and simplify the
Boolean expression.
formats
minterms NAND
format
Don’t cares
A D=A'B +AB'
D
B
S
If, in addition, we have available the XOR gate, we can rewrite it as:
Si = (Ai Bi ) Ci’ + (Ai Bi )’ Ci = (Ai Bi ) Ci
= Ai Bi Ci.
ith digit
(A B)C+AB
C S
(A B)C
(i+1)th digit
B
A B C
A B
AB
A
Ben Goertzel (1994). Chaotic logic: language, thought, and reality from the perspective of
complex systems science. Springer.p. 48.ISBN 978-0-306-44690-0.
Halmos, Paul (1963). Lectures on Boolean Algebras.vanNostrand.
Bacon, Jason W. (2011). "Computer Science 315 Lecture Notes". Retrieved October 1, 2021.
O'Regan, Gerard (2008). A brief history of computing.Springer.p. 33.ISBN 978-1-84800-
083-4.
"Elements of Boolean Algebra". www.ee.surrey.ac.uk. Retrieved 2020-09-02.
For bitwise operations in computer programming, it may be helpful to read 1 as 0xFFFF.
All bits of the binary number must be 1.
McGee, Vann, Sentential Calculus Revisited: Boolean Algebra (PDF)
*Goodstein, R. L. (2012), "Chapter 4: Sentence Logic", Boolean Algebra, Courier Dover
Publications, ISBN 9780486154978
Steven R. Givant; Paul Richard Halmos (2009). Introduction to Boolean algebras.Springer.
pp. 21–22. ISBN 978-0-387-40293-2.
Venn, John (July 1880). "I. On the Diagrammatic and Mechanical Representation of
Propositions and Reasonings" (PDF).The London, Edinburgh, and Dublin Philosophical
Magazine and Journal of Science. 5. 10 (59): 1–18. doi:10.1080/14786448008626877. Archived
(PDF) from the original on 2017-05-16.[1][2]
Shannon, Claude (1949). "The Synthesis of Two-Terminal Switching Circuits".Bell System
Technical Journal.28: 59–98. doi:10.1002/j.1538-7305.1949.tb03624.x.
Koppelberg, Sabine (1989). "General Theory of Boolean Algebras".Handbook of Boolean
Algebras, Vol. 1 (ed. J. Donald Monk with Robert Bonnet). Amsterdam: North Holland.
ISBN 978-0-444-70261-6.
McCune, William; Veroff, Robert; Fitelson, Branden; Harris, Kenneth; Feist, Andrew; Wos,
Larry (2002), "Short single axioms for Boolean algebra", Journal of Automated Reasoning, 29
(1): 1–16, doi:10.1023/A:1020542009983, MR 1940227, S2CID 207582048
Allwood, Jens; Andersson, Gunnar-Gunnar; Andersson, Lars-Gunnar; Dahl, Osten (1977-
09-15). Logic in Linguistics.Cambridge University Press.ISBN 978-0-521-29174-3.
Hausman, Alan; Howard Kahane; Paul Tidman (2010) [2007]. Logic and Philosophy: A
Modern Introduction. Wadsworth Cengage Learning.ISBN 978-0-495-60158-6.
Girard, Jean-Yves; Paul Taylor; Yves Lafont (1990) [1989]. Proofs and Types. Cambridge
University Press (Cambridge Tracts in Theoretical Computer Science, 7). ISBN 978-0-521-
37181-0.
Not all search engines support the same query syntax. Additionally, some organizations
(such as Google) provide "specialized" search engines that support alternate or extended syntax.
(See e.g.,Syntaxcheatsheet, Google codesearch supports regular expressions).
Doublequote-delimited search terms are called "exact phrase" searches in the Google
documentation.