03.Boolean_algebra
03.Boolean_algebra
Boolean Algebra
Key Components
Applications
Logic gates
Types of Logic Gates:
AND Gate:
OR Gate:
NOT Gate (Inverter):
Boolean Expressions:
Applications:
Basic theorems in Boolean Algebra:
De Morgan’s theorem I :
DeMorgan’s Theorem II :
Derived Logic Gates
Boolean Algebra
Boolean algebra is a branch of mathematics that deals with logical values and incorporates
binary variables. It is a system of mathematical logic that represents relationships between
entities, using binary values (0 and 1) to represent true and false, respectively. This algebraic
system was first introduced by George Boole in the 19th century and has since been widely
applied in computer programming languages, digital electronics, and information theory.
Key Components
3. Truth Tables: Boolean expressions can be evaluated using truth tables, which show the
output for all possible combinations of input values.
4. De Morgan’s Laws: Two important theorems in Boolean algebra, used to simplify Boolean
expressions: De Morgan’s First Law: (X+Y)‘=X’Y’ De Morgan’s Second Law: X’Y’=X’+Y’
Applications
1. Digital Circuits: Boolean algebra is used to analyze and simplify digital circuits or digital
gates.
Logic gates
Logic gates are the building blocks of digital circuits and systems. They perform basic logical
operations on one or more binary inputs (0s and 1s) and produce a single binary output. The
relationship between the input and output is based on a specific logic, which defines the gate’s
type.
AND Gate:
Truth Table:
A | B | Y
0 | 0 | 0
0 | 1 | 0
1 | 0 | 0
1 | 1 | 1
OR Gate:
Truth Table:
A | B | Y
0 | 0 | 0
0 | 1 | 1
1 | 0 | 1
1 | 1 | 1
NOT Gate (Inverter):
Produces the opposite output of the input (0 becomes 1, and 1 becomes 0).
Truth Table:
A | Y
0 | 1
1 | 0
Boolean Expressions:
Logic gates can be represented using Boolean algebra, which uses variables (A, B, etc.) and
logical operators (+, ⋅, ¬) to describe the gate’s behavior.
Applications:
Logic gates are used in nearly every digital device, including computers, smartphones, and
memory devices. They enable data manipulation, processing, and storage by executing logical
operations.
2. Indempotence Law : This law states that a) x+x=x b) x.x=x where x=0 or 1.
3. Involution law : This law states that : (x’)’=x This law is also called double-inversion rule.
6. Associative Law: The order in which variables are combined with each other does not
affect the result. (a) X+(Y+Z)=(X+Y)+Z (b) X.(YZ)=(XY).Z
7. Distributive Law: The operation of AND (conjunction) distributes over OR (disjunction), and
vice versa. (a) X(Y+Z)=XY+XZ (b) X+YZ=(X+Y)(X+Z)
8. Inversion Law: The complement of the complement of any number is the number itself.
(X’)’=X
9. Absorption Law: (a) X+XY=X (b) X.(X+Y)=X
De Morgan’s theorem I :
It states that : (X+Y)‘=X’Y’ Proof : o prove this theorem, complementary law is applied
(X+Y).X’Y’=0
(X+Y)+X’Y’=1
(X+Y)+X’Y’=((X+Y)+X’).((X+Y)+Y’)
=(X+X'+Y).(X+Y+Y')
=(1+Y).(X+1)
=1.1
=1
(X+Y).X’Y’=0
(X+Y).X’Y’=X’Y’.(X+Y)
= X'Y'X+X'YY'
=0.Y'+X'.0
=0+0=0.
DeMorgan’s Theorem II :
It states that ,
X’Y’=X’+Y’
XY+(X’+Y’)= (X’+Y’+X).(X’+Y’+Y)
= (1+Y')+(X'+1)
= 1.1
=1
X.X’.Y+XYY’=0.Y+X.0
=0+0
=0
1. NOR Gate: A NOR gate has two or more input signals but only one output signal . Here all
inputs are low(0) then the output signal is high.
2. NAND Gate : A NAND Gate has two more input signals but only one tput signal. Here if all
the inputs are high (1) inputs then the output produced is Zero(0).
3. XOR Gate :
A XOR gate has two or more inputs but produces one output signal. This gate produces output
high (1) for only those input combinations that have odd number of 1’s.
4. XNOR Gate : The XNOR Gate is logically equivalent to an inverted XOR. ie XOR gate
followed by a NOT gate(invertor) .The XNOR gate produces high (1) output, when the
input combination has even number of 1’s.