Boolean Algebra
Boolean Algebra
Boolean algebra is the branch of algebra that deals with logical operations and binary variables.
Boolean algebra is the category of algebra in which the variable's values are the truth values, true and false,
ordinarily denoted 1 and 0 respectively.
It is used to analyze and simplify digital circuits or digital gates. It is also called Binary Algebra or logical
Algebra.
Boolean Algebra has various applications. It is used to simplify logical circuits that are the backbone of modern
technology.
OR + (or) ∨ Lowest
A ¬A
True False
False True
A B A∧B A∨B
a. Commutative law
b. Associative law
c. Distributive law
d. AND law
e. OR law
f. Inversion law
Commutative Law
Commutative law states that changing the sequence of the variables does not have any effect on the
output of a logic circuit.
A. B = B. A
A+B=B+A
Associative Law
It states that the order in which the logic operations are performed is irrelevant as their effect is the
same.
( A. B ). C = A . ( B . C )
( A + B ) + C = A + ( B + C)
Distributive Law
A. ( B + C) = (A. B) + (A. C)
A + (B. C) = (A + B) . ( A + C)
AND Law
These laws use the AND operation. Therefore they are called AND laws.
A .0 = 0
A.1=A
A. A = A
OR Law
These laws use the OR operation. Therefore they are called OR laws.
A +0=A
A+1=1
A+A=A
Inversion Law
In Boolean algebra, the inversion law states that double inversion of variable results in the original
variable itself.
OR Gate
AND Gate
NOT Gate
XOR Gate
NOR Gate
NAND Gate
XNOR Gate
OR Gate
In an OR gate, the output of an OR gate attains state 1 if one or more inputs
attain state 1.
The Boolean expression of the OR gate is Y = A + B, read as Y equals A ‘OR’ B.
The truth table of a two-input OR basic gate is given as
A B Y
0 0 0
0 1 1
1 0 1
1 1 1
AND Gate
In the AND gate, the output of an AND gate attains state 1 if and only if all the inputs are in
state 1.
0 0 0
0 1 0
1 0 0
1 1 1
NOT Gate
In a NOT gate, the output of a NOT gate attains state 1 if and only if the input does not attain
state 1.
A
0 1
1 0
When connected in various combinations, the three gates (OR, AND and NOT) give us basic
logic gates, such as NAND and NOR gates, which are the universal building blocks of digital
circuits.
NAND Gate
This basic logic gate is the combination of AND and NOT gates.
The Boolean expression of the NAND gate is
A B Y
0 0 1
0 1 1
1 0 1
1 1 0
NOR Gate
This gate is the combination of OR and NOT gates. The Boolean expression of the NOR gate
is
0 0 1
0 1 0
1 0 0
1 1 0
The
The truth table of an XOR gate is:-
A B Y
0 0 0
0 1 1
1 0 1
1 1 0
Exclusive-NOR Gate (XNOR Gate)
In the XNOR gate, the output is in state 1 when both inputs are the same, that is, both 0 or both
1.