Boolean algebra is algebra of logic. It deals with variables that can have two discrete values, 0 (False) and 1 (True); and operations that have logical significance. The earliest method of manipulating symbolic logic was invented by George Boole and subsequently came to be known as Boolean Algebra.
Boolean algebra has now become an indispensable tool in computer science for its wide applicability in switching theory, building basic electronic circuits and design of digital computers.
Boolean Functions
A Boolean function is a special kind of mathematical function of degree n, where is a Boolean domain and n is a non-negative integer. It describes the way how to derive Boolean output from Boolean inputs.
Example − Let, . This is a function of degree 2 from the set of ordered pairs of Boolean variables to the set where and
Boolean Expressions
A Boolean expression always produces a Boolean value. A Boolean expression is composed of a combination of the Boolean constants (True or False), Boolean variables and logical connectives. Each Boolean expression represents a Boolean function.
Example − is a Boolean expression.
Boolean Identities
Double Complement Law
Complement Law
(OR Form)
(AND Form)
Idempotent Law
(OR Form)
(AND Form)
Identity Law
(OR Form)
(AND Form)
Dominance Law
(OR Form)
(AND Form)
Commutative Law
(OR Form)
(AND Form)
Associative Law
(OR Form)
(AND Form)
Absorption Law
Simplification Law
Distributive Law
De-Morgan's Law
Canonical Forms
For a Boolean expression there are two kinds of canonical forms −
- The sum of minterms (SOM) form
- The product of maxterms (POM) form
The Sum of Minterms (SOM) or Sum of Products (SOP) form
A minterm is a product of all variables taken either in their direct or complemented form. Any Boolean function can be expressed as a sum of its 1-minterms and the inverse of the function can be expressed as a sum of its 0-minterms. Hence,
F (list of variables) = ∑ (list of 1-minterm indices)
and
F' (list of variables) = ∑ (list of 0-minterm indices)
A | B | C | Term | Minterm |
---|---|---|---|---|
0 | 0 | 0 | x’y’z’ | m0 |
0 | 0 | 1 | x’y’z | m1 |
0 | 1 | 0 | x’yz’ | m2 |
0 | 1 | 1 | x’yz | m3 |
1 | 0 | 0 | xy’z’ | m4 |
1 | 0 | 1 | xy’z | m5 |
1 | 1 | 0 | xyz’ | m6 |
1 | 1 | 1 | xyz | m7 |
Example
Let,
Or,
Hence,
Now we will find the complement of
Or,
Hence,
The Product of Maxterms (POM) or Product of Sums (POS) form
A maxterm is addition of all variables taken either in their direct or complemented form. Any Boolean function can be expressed as a product of its 0-maxterms and the inverse of the function can be expressed as a product of its 1-maxterms. Hence,
F(list of variables) = (list of 0-maxterm indices).
and
F'(list of variables) = (list of 1-maxterm indices).
A | B | C | Term | Maxterm |
---|---|---|---|---|
0 | 0 | 0 | x + y + z | M0 |
0 | 0 | 1 | x + y + z’ | M1 |
0 | 1 | 0 | x + y’ + z | M2 |
0 | 1 | 1 | x + y’ + z’ | M3 |
1 | 0 | 0 | x’ + y + z | M4 |
1 | 0 | 1 | x’ + y + z’ | M5 |
1 | 1 | 0 | x’ + y’ + z | M6 |
1 | 1 | 1 | x’ + y’ + z’ | M7 |
Example
Let
Or,
Hence,
Or,
Hence,
Logic Gates
Boolean functions are implemented by using logic gates. The following are the logic gates −
NOT Gate
A NOT gate inverts a single bit input to a single bit of output.
A | ~A |
---|---|
0 | 1 |
1 | 0 |
AND Gate
An AND gate is a logic gate that gives a high output only if all its inputs are high, otherwise it gives low output. A dot (.) is used to show the AND operation.
A | B | A.B |
---|---|---|
0 | 0 | 0 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 1 |
OR Gate
An OR gate is a logic gate that gives high output if at least one of the inputs is high. A plus (+) is used to show the OR operation.
A | B | A+B |
---|---|---|
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 1 |
NAND Gate
A NAND gate is a logic gate that gives a low output only if all its inputs are high, otherwise it gives high output.
A | B | ~(A.B) |
---|---|---|
0 | 0 | 1 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
NOR Gate
An NOR gate is a logic gate that gives high output if both the inputs are low, otherwise it gives low output.
A | B | ~(A+B) |
---|---|---|
0 | 0 | 1 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 0 |
XOR (Exclusive OR) Gate
An XOR gate is a logic gate that gives high output if the inputs are different, otherwise it gives low output.
A | B | A⊕B |
---|---|---|
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
X-NOR (Exclusive NOR) Gate
An EX-NOR gate is a logic gate that gives high output if the inputs are same, otherwise it gives low output.
A | B | A X-NOR B |
---|---|---|
0 | 0 | 1 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 1 |
Comments
Post a Comment