(Computer Awareness) Boolean Algebra
(Computer Awareness) Boolean Algebra
INTRODUCTION
• Boolean algebra is a type of algebra that is created by operating the binary system.
• In the year 1954, George Boole, an English mathematician, proposed this algebra.
• This is a variant of Aristotle’s propositional logic that uses the symbols 0 and 1, or True and False.
• Boolean algebra is concerned with binary variables and logic operations.
• Associative law - This law states that the order in which the logic operations are performed is
irrelevant as their effect is the same.
• OR law - These laws use the OR operation. Therefore they are called as OR laws.
• INVERSION law - This law uses the NOT operation. The inversion law states that double inversion of a
variable results in the original variable itself.
Truth Tables
• A truth table represents all the variety of combinations of input values and
outputs in a tabular manner.
• All the possibilities of the input and output are shown in it and hence the name
truth table is kept. In logic problems such as Boolean algebra and electronic
circuits, truth tables are commonly used.
• T or 1 denotes ‘True’ & F or 0 denotes ‘False’ in the truth table.
Logic Gates
Logical circuit:
For AND gate, the output X
is true if and only if both
the inputs P and Q are true.
So the truth table of AND
gate is as follows:
OR Gate (Sum):
• A logic gate that performs a logical OR operation is known as an OR gate.
• If one or both of the gate’s inputs are high, the logical OR operation produces a high output (1).
• If neither of the inputs is high, the result is a low output (0).
• In the same way that an AND gate can have an unlimited number of input probes, an OR gate can only
have one output probe.
• A logical OR gate finds the maximum between two binary digits.
Logical circuit:
Logical circuit:
Logical circuit:
Logical circuit:
Logical circuit:
XNOR Gate:
• An NOR gate (also known as an Exclusive NOR gate) is a digital logic gate that is just opposite of XOR
gate. It has two or more inputs and one output.
• When one of its two input is true but not both then it will return false.
• XNOR means ‘Exclusive NOR’ Gate and it result is true only when both of its inputs P and Q are either
true or false.
Logical circuit:
De Morgan’s laws - De Morgan’s Law states that:
• Statement 1: The Complement of the product (AND) of two Boolean variables (or expressions) is
equal to the sum(OR) of the complement of each Boolean variable (or expression).
~(P + Q) = (~P).(~Q)
Answer: C
QUIZ
Answer: C
QUIZ
The logic gate that provides high output for same inputs ____________
a) NOT
b) X-NOR
c) AND
d) XOR
QUIZ
Answer: B
QUIZ
Answer: D
THANK YOU!