SlideShare a Scribd company logo
1 of 29
Neha Tyagi, KV 5 Jaipur II
shift
Introduction
– Boolean Logic, also known as boolean algebra was
developed by mathematician “George Boole”.
– Later, Boolean logic helped in solving many big problems.
– These logics also helped in developing circuits.
– Complete logic is based on Yes or No which is also
represented as True(T) or False(F).
– Computer system transmits its signals on high voltage or low
voltage which can be denoted by true or false and with which
we can develop it’s circuit.
– In this chapter we will learn thses logics.
Neha Tyagi, KV 5 Jaipur II
shift
Binary Values (Quantities)
– In our daily life, we need to take logical decisions where
answers comes in either Yes (T) or No (F). For ex-
• Should I have tea?
• Should I see this movie?
• Sun rises in East? etc
– The decisions which results in Yes or No only are known as
binary decisions.
– Values T and F are known as truth values.
– Boolean variables can only be either T or F.
– Indira Gandhi was the only lady Prime Minister of India (it
results in true -T). Therefore it is a logic statement.
– What do you want to say?( it can not be result in T or F).
Therefore it is not a logic statement.
Neha Tyagi, KV 5 Jaipur II
shift
Logical Operations
– These are of three types -
• AND
• OR
• NOT
– These are used to develop compound statement
For ex -
• He prefers coffee not tea.
• He plays guitar and sitar.
• I watch TV on Sunday or I go for a movie.
– These are also used to join logical variables.
For ex-
X NOT Y OR Z
Y AND Z OR X
Logical Operations
– Before proceeding for Operations we will get to know some features of
logic statements. For ex -
Statement– 1 : I want to have tea. Statement – 2 :Tea is ready.
now, develop a table with all its aspects.
(X) I want to have tea.
(Y) Tea is ready.
T
T
T
F
F
T
F
F
(R)(result) I have drink tea. T F F F
Now, if we create its truth table, its should be like-
– Truth Table is a table which contains all possible
truth values of logical values along with all possible
results.
– When all the results of a Truth Table are true (1)
this condition is known as TAUTOLOGY and if all
results are false (0) then this condition is known as
FALLACY .
X Y R
1 1 1
1 0 0
0 1 0
0 0 0
Neha Tyagi, KV 5 Jaipur II
shift
Logical Operators (NOT)
NOT operator is represented by applying ( ‘ ) or ( ¯ ) on an
expression. For ex- X’ or X . This is a unary operator also known
as complementation operator .
– 0’ = 1 and 1’ = 0
– Truth table and Venn Diagram for NOT operator is asunder-
X X’
0 1
1 0
Neha Tyagi, KV 5 Jaipur II
shift
Logical Operators (AND)
– AND operator is used by applying ( . ) between two variables. like X.Y
– It shows a very important operation of boolean algebra which is known as
logical multiplication.
– X.Y is to be read as X AND Y.
– Rules of AND operation are-
0 . 0 = 0
0 . 1 = 0
1 . 0 = 0
1 . 1 = 1
– AND operator’s truth table and Venn Diagram are as under-
X Y X.Y
0 0 0
0 1 0
1 0 0
1 1 1
Result will be 1 only
when both the inputs
will be 1 otherwise
result will always be 0.
Neha Tyagi, KV 5 Jaipur II
shift
Shadowed potion shows
X.Y
Logical Operators (OR)
– OR operator is used by applying ( + ) between two variables. like X+Y
– It shows a very important operation of boolean algebra which is known as
logical addition.
– X+Y is to be read as X OR Y.
– Rules of OR operation are-
0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 1
– AND operator’s truth table and Venn Diagram are as under-
X Y X+Y
0 0 0
0 1 1
1 0 1
1 1 1 Shadowed potion shows
X+Y
Neha Tyagi, KV 5 Jaipur II
shift
Result will be 1 when
either of the input will 1
otherwise result will be
0.
Neha Tyagi, KV 5 Jaipur II
shift
Evaluation of Boolean Expression using Truth Table
– To develop Boolean Expression, logical variables are used with
logical operators. Truth table is used for its evaluation. For ex-
X + (Y.X)’ + Z’ is a boolean expression and its truth table
should be as follows-
X Y Z Y.Z (Y.Z)’ Z’ X+(Y.Z)’ X+(Y.Z)’+Z’
0 0 0 0 1 1 1 1
0 0 1 0 1 0 1 1
0 1 0 0 1 1 1 1
0 1 1 1 0 0 0 0
1 0 0 0 1 1 1 1
1 0 1 0 1 0 1 1
1 1 0 0 1 1 1 1
1 1 1 1 0 0 1 1
Neha Tyagi, KV 5 Jaipur II
shift
Evaluation of Boolean Expression using Truth Table
Prove (X+Y)’ = X’.Y’ using Boolean logic and truth table-
By comparing (X+Y)’ and X’.Y’ it is proved that both the values are same.
X Y X+Y (X+Y)’ X’ Y’ X’.Y’
0 0 0 1 1 1 1
0 1 1 0 1 0 0
1 0 1 0 0 1 0
1 1 1 0 0 0 0
Basic Logic Gates
– When Shannon used boolean logic in switching circuit of telephone then
Engineers realized that boolean algebra can also be used in computer
electronics. In computers, logic gates are used to complete boolean
operations.
– A Gate is a basic Electronic Circuit used to develop an output signal by
passing one or more input signal(s).
– A Gate is a kind of two-state digital circuit because its input or output are
either low voltage (i.e. 0) or high voltage (i.e.1).
– Gates are also known as logic gates because they can coordinate with
boolean logic.
– Logic gates are of three types--
1. Inverter (NOT Gate)
2. OR Gate
3. AND Gate
Neha Tyagi, KV 5 Jaipur II
shift
Inverter (NOT Gate)
– NOT gate takes one input and produces one output.
– Its output is exactly opposite to its input.
– It is called NOT gate because its output is not similar to its input.
– Its output is also called as complement(opposite) of input.
– Truth table and diagram of Not gate are as under-
OR
X X’
Low High
High Low X
Neha Tyagi, KV 5 Jaipur II
shift
X
’
X X’
0 1
1 0
OR Gate
– OR gate takes two or more inputs and produces one output.
– Its output is logical sum of passed inputs.
– It produces high voltage output on any one high voltage input. It produces
low voltage output only when all the inputs are of low voltage.
– OR Gate Truth table and diagram are as under-
– This gate work for more than two input signals in similar manner.
X Y X +
Y
Low Low Low
Low High High
High Low High
High High High
X Y X + Y
0 0 0
0 1 1
1 0 1
1 1 1
Neha Tyagi, KV 5 Jaipur II
shift
AND Gate
– AND gate takes two or more inputs and produces one output.
– Its output is logical multiplication of passed inputs.
– It produces low voltage output on any of the input signal as low voltage
input. It produces high voltage output only when all the inputs are of high
voltage.
– AND Gate Truth table and diagram are as under-
– This gate work for more than two input signals in similar manner.
X Y X .Y
Low Low Low
Low High Low
High Low Low
High High High
X Y X . Y
0 0 0
0 1 0
1 0 0
1 1 1
Neha Tyagi, KV 5 Jaipur II
shift
Neha Tyagi, KV 5 Jaipur II
shift
Boolean logic-Basic Postulates
– Boolean algebra is a kind of mathematical system because of which it is
based on some fundamental laws which are known as basic postulates.
Which are as follows- -
I. If X ≠ 0 then X = 1 and if X ≠ 1 then X =0
II. OR Relations (logical addition)
III.
 0 + 0 = 0
 0 + 1 = 1
 1 + 0 = 1
 1 + 1 = 1
AND Relations (logical multiplication)
 0 . 0 = 0
 0 . 1 = 0
 1 . 0 = 0
 1 . 1 = 1
IV. Complementary Rules:
 0’ = 1
 1’ = 0
Neha Tyagi, KV 5 Jaipur II
shift
Principle of DUALITY
– It is very important concept of boolean logic. A boolean
relation can be drived by other boolean relation if we follow
following rules-
1. Every OR signal (+) is replaced by AND signal (.).
2. Every AND signal (.) is replaced by OR signal (+).
3. Every 1 is replaced by 0 and every 0 is replaced by 1.
– The received expresseion will be dual expression of original
expression. For ex-
– Dual of 0 + 0 = 0 will be 1 . 1 = 1
– Dual of 0 + 1 = 1 will be 1 . 0 = 0
– Dual of 1 + 0 = 1 will be 0 . 1 = 0
– Dual of 1 + 1 = 1 will be 1 . 1 = 1
Neha Tyagi, KV 5 Jaipur II
shift
Main Concepts of Boolean Algebra
I. Properties of 0 and 1 0 + X = X 1 + X = 1
I. 0 + X = X
II. 1 + X = 1
III. 0 . X = 0
IV. 1 . X = X
0 . X = 0 1 . X = X
II. Indempotence Law - (a) X + X = X (b) X . X = X
0 X R
0 0 0
0 1 1
1 X R
1 0 1
1 1 1
0 X R
0 0 0
0 1 0
1 X R
1 0 0
1 1 1
X X R
0 0 0
1 1 1
X X R
0 0 0
1 1 1
Neha Tyagi, KV 5 Jaipur II
shift
Main Concepts of Boolean Algebra
Involution – (X’)’ = X
III.
IV. Complementarity Law – (a) X + X’ = 1 (b) X . X’ = 0
V. Commutative Law –
(a) X + Y = Y + X (b) X . Y = X . Y
X X’ (X’)’
0 1 0
1 0 1
X X’ R
0 1 1
1 0 1
X X’ R
0 1 0
1 0 0
X Y X + Y Y + X
0 0 0 0
0 1 1 1
1 0 1 1
1 1 1 1
X Y X . Y Y . X
0 0 0 0
0 1 0 0
1 0 0 0
1 1 1 1
Neha Tyagi, KV 5 Jaipur II
shift
Main Concepts of Boolean Algebra
VI. Associative Law –
(a) X+(Y+Z) = (X+Y)+Z
X Y Z Y + Z X + Y X+ (Y + Z) (X + Y) + Z
0 0 0 0 0 0 0
0 0 1 1 0 1 1
0 1 0 1 1 1 1
0 1 1 1 1 1 1
1 0 0 0 1 1 1
1 0 1 1 1 1 1
1 1 0 1 1 1 1
1 1 1 1 1 1 1
Neha Tyagi, KV 5 Jaipur II
shift
Main Concepts of Boolean Algebra
VI. Associative Law –
(b) X . (Y . Z) = (X . Y) . Z
X Y Z Y . Z X . Y X . (Y . Z) (X . Y) . Z
0 0 0 0 0 0 0
0 0 1 0 0 0 0
0 1 0 0 0 0 0
0 1 1 1 0 0 0
1 0 0 0 0 0 0
1 0 1 0 0 0 0
1 1 0 0 1 0 0
1 1 1 1 1 1 1
Neha Tyagi, KV 5 Jaipur II
shift
Main Concepts of Boolean Algebra
VII. Distributive Law –
(a) X . (Y + Z) = X.Y + X.Z
X Y Z Y+Z X.Y X.Z X.(Y+Z) X.Y+X.Z
0 0 0 0 0 0 0 0
0 0 1 1 0 0 0 0
0 1 0 1 0 0 0 0
0 1 1 1 0 0 0 0
1 0 0 0 0 0 0 0
1 0 1 1 0 1 1 1
1 1 0 1 1 0 1 1
1 1 1 1 1 1 1 1
Main Concepts of Boolean Algebra
VII. Distributive Law –
(b) X + Y.Z = (X + Y) . (X + Z)
X Y Z Y.Z X+Y X+Z X+Y.Z (X+Y).(X+Z)
0 0 0 0 0 0 0 0
0 0 1 0 0 1 0 0
0 1 0 0 1 0 0 0
0 1 1 1 1 1 1 1
1 0 0 0 1 1 1 1
1 0 1 0 1 1 1 1
1 1 0 0 1 1 1 1
1 1 1 1 1 1 1 1
Neha Tyagi, KV 5 Jaipur II
shift
Neha Tyagi, KV 5 Jaipur II
shift
Main Concepts of Boolean Algebra
VIII. Absorption Law –
(a) X + X . Y = X (b) X . (X + Y) = X
VIII. .
IX. Other rules (Third Distributive Law)
X + X’.Y = X + Y
X Y X.Y X+X.Y
0 0 0 0
0 1 0 0
1 0 0 1
1 1 1 1
X Y X + Y X.(X+Y)
0 0 0 0
0 1 1 0
1 0 1 1
1 1 1 1
X Y X’ X’.Y X + X’.Y X+Y
0 0 1 0 0 0
0 1 1 1 1 1
1 0 0 0 1 1
1 1 0 0 1 1
Neha Tyagi, KV 5 Jaipur II
shift
Main Concepts of Boolean Algebra
X. DEMORGAN’s Law –
(a) (X+Y)’ = X’ . Y’ (b) (X.Y)’ = X’ + Y’
VIII. .
You can prove a law with the help of truth table and can also be proven
mathematically.
Sum of Product : ABC, XY, X’YZ’ etc
Product of Sum : A+B+C, X+Y’+Z’ etc
X Y (X+Y)’ X’.Y’
0 0 1 1
0 1 0 0
1 0 0 0
1 1 0 0
X Y (X.Y)’ X’ + Y’
0 0 1 1
0 1 1 1
1 0 1 1
1 1 0 0
Neha Tyagi, KV 5 Jaipur II
shift
Minimization of Boolean Expression algebraically
• Minimize the expression- AB’CD’ + AB’CD +ABCD’ + ABCD
Solution:
AB’CD’ + AB’CD +ABCD’ + ABCD
= AB’C(D’+D)+ABC(D’+D)
=AB’C + ABC
= AC (B’+B) = AC.1 = AC
Other Logic Gates
– There are some derived gates also besides AND, OR, NOT Gates. Like-
NOR, NAND, XOR, XNOR Gates.
NOR Gate:
There is two or more input signals and one output
signal in NOR gate.if all input signals are 0 (low) then
output signal will be 1 (high).
X Y F
0 0 1
0 1 0
1 0 0
1 1 0
X Y Z F
0 0 0 1
0 0 1 0
0 1 0 0
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 0
1 1 1 0
Neha Tyagi, KV 5 Jaipur II
shift
NAND Gate
• There is two or more input signals and one output signal in
NAND gate.if all input signals are 1 (high) then output signal
will be 0 (low). It is also known as universal gate because
fundamental gates can be retrieved with its help.
X Y F
0 0 1
0 1 1
1 0 1
1 1 0
X Y Z F
0 0 0 1
0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 0
Neha Tyagi, KV 5 Jaipur II
shift
XOR Gate
• XOR Gate produces 1 (high) when inputs are not at equal
logic level. It is also known as universal gate because
fundamental gates can be retrieved
with its help.
No of 1’s X Y F
Even 0 0 0
Odd 0 1 1
Odd 1 0 1
Even 1 1 0
No of 1’s X Y Z F
Even 0 0 0 0
Odd 0 0 1 1
Odd 0 1 0 1
Even 0 1 1 0
Odd 1 0 0 1
Even 1 0 1 0
Even 1 1 0 0
Odd 1 1 1 1
Neha Tyagi, KV 5 Jaipur II
shift
XNOR Gate
• XNOR Gate produces 1 (high) when the inputs are identical
(both 1’s or both 0’s).
No of 1’s X Y F
Even 0 0 1
Odd 0 1 0
Odd 1 0 0
Even 1 1 1
No of 1’s X Y Z F
Even 0 0 0 1
Odd 0 0 1 0
Odd 0 1 0 0
Even 0 1 1 1
Odd 1 0 0 0
Even 1 0 1 1
Even 1 1 0 1
Odd 1 1 1 0
Neha Tyagi, KV 5 Jaipur II
shift
Neha Tyagi, KV 5 Jaipur II
shift
Assignment
1. Prepare AND, NOT and OR gate and their circuit diagram by
NAND gate.
2. Prepare AND, NOT and OR gate and their circuit diagram by NOR
gate.
3. Prepare logic circuit for the following-
I. F(A,B,C) = AB + AC’ +A’B’C
II. F(X,Y,Z) = (X+Y) . (X’+Z’) . (Y+Z)

More Related Content

Similar to BOOLEAN NEW MANISH.pptx

Lect 2 boolean algebra (4 5-21)
Lect 2 boolean algebra (4 5-21)Lect 2 boolean algebra (4 5-21)
Lect 2 boolean algebra (4 5-21)MeghaSharma513
 
booleanalgebra-140914001141-phpapp01 (1).ppt
booleanalgebra-140914001141-phpapp01 (1).pptbooleanalgebra-140914001141-phpapp01 (1).ppt
booleanalgebra-140914001141-phpapp01 (1).pptmichaelaaron25322
 
Digital Techniques all Chapter PPT used for Diploma Students
Digital Techniques all Chapter PPT used for Diploma StudentsDigital Techniques all Chapter PPT used for Diploma Students
Digital Techniques all Chapter PPT used for Diploma Studentsmohsin8283
 
chapter-2-boolean-algebra.pdf
chapter-2-boolean-algebra.pdfchapter-2-boolean-algebra.pdf
chapter-2-boolean-algebra.pdfstudy material
 
chapter-2-boolean-algebra.pdf
chapter-2-boolean-algebra.pdfchapter-2-boolean-algebra.pdf
chapter-2-boolean-algebra.pdfstudy material
 
Introduction to Logic Spring 2007 Introduction to Discrete Structures.ppt
Introduction to Logic Spring 2007 Introduction to Discrete Structures.pptIntroduction to Logic Spring 2007 Introduction to Discrete Structures.ppt
Introduction to Logic Spring 2007 Introduction to Discrete Structures.pptyaniarianneyani
 
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theoremsarunachalamr16
 
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdfsiliconvalley6203
 
Boolean Logic.pptx
Boolean Logic.pptxBoolean Logic.pptx
Boolean Logic.pptxakshat205573
 

Similar to BOOLEAN NEW MANISH.pptx (20)

Chapter 4 logic design
Chapter 4   logic designChapter 4   logic design
Chapter 4 logic design
 
Boolean alebra
Boolean alebraBoolean alebra
Boolean alebra
 
Lect 2 boolean algebra (4 5-21)
Lect 2 boolean algebra (4 5-21)Lect 2 boolean algebra (4 5-21)
Lect 2 boolean algebra (4 5-21)
 
booleanalgebra-140914001141-phpapp01 (1).ppt
booleanalgebra-140914001141-phpapp01 (1).pptbooleanalgebra-140914001141-phpapp01 (1).ppt
booleanalgebra-140914001141-phpapp01 (1).ppt
 
Digital Techniques all Chapter PPT used for Diploma Students
Digital Techniques all Chapter PPT used for Diploma StudentsDigital Techniques all Chapter PPT used for Diploma Students
Digital Techniques all Chapter PPT used for Diploma Students
 
chapter-2-boolean-algebra.pdf
chapter-2-boolean-algebra.pdfchapter-2-boolean-algebra.pdf
chapter-2-boolean-algebra.pdf
 
chapter-2-boolean-algebra.pdf
chapter-2-boolean-algebra.pdfchapter-2-boolean-algebra.pdf
chapter-2-boolean-algebra.pdf
 
Introduction to Logic Spring 2007 Introduction to Discrete Structures.ppt
Introduction to Logic Spring 2007 Introduction to Discrete Structures.pptIntroduction to Logic Spring 2007 Introduction to Discrete Structures.ppt
Introduction to Logic Spring 2007 Introduction to Discrete Structures.ppt
 
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
 
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
 
Bitwise
BitwiseBitwise
Bitwise
 
9. logic gates._rr
9. logic gates._rr9. logic gates._rr
9. logic gates._rr
 
Lecture 01.ppt
Lecture 01.pptLecture 01.ppt
Lecture 01.ppt
 
Chapter 2.pptx
Chapter 2.pptxChapter 2.pptx
Chapter 2.pptx
 
Boolean Logic.pptx
Boolean Logic.pptxBoolean Logic.pptx
Boolean Logic.pptx
 
boolean-algebra.pdf
boolean-algebra.pdfboolean-algebra.pdf
boolean-algebra.pdf
 
Boolean algebra and logic gates
Boolean algebra and logic gatesBoolean algebra and logic gates
Boolean algebra and logic gates
 
Boolean algebra and Logic gates
Boolean algebra and Logic gatesBoolean algebra and Logic gates
Boolean algebra and Logic gates
 
13 Boolean Algebra
13 Boolean Algebra13 Boolean Algebra
13 Boolean Algebra
 
Logic Gates
Logic GatesLogic Gates
Logic Gates
 

Recently uploaded

WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2
 
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT  - Elevating Productivity in Today's Agile EnvironmentHarnessing ChatGPT  - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT - Elevating Productivity in Today's Agile EnvironmentVictorSzoltysek
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024VictoriaMetrics
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in sowetomasabamasaba
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrandmasabamasaba
 
tonesoftg
tonesoftgtonesoftg
tonesoftglanshi9
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfkalichargn70th171
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...masabamasaba
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...masabamasaba
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...SelfMade bd
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareJim McKeeth
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionOnePlan Solutions
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...masabamasaba
 

Recently uploaded (20)

WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
 
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT  - Elevating Productivity in Today's Agile EnvironmentHarnessing ChatGPT  - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 

BOOLEAN NEW MANISH.pptx

  • 1. Neha Tyagi, KV 5 Jaipur II shift Introduction – Boolean Logic, also known as boolean algebra was developed by mathematician “George Boole”. – Later, Boolean logic helped in solving many big problems. – These logics also helped in developing circuits. – Complete logic is based on Yes or No which is also represented as True(T) or False(F). – Computer system transmits its signals on high voltage or low voltage which can be denoted by true or false and with which we can develop it’s circuit. – In this chapter we will learn thses logics.
  • 2. Neha Tyagi, KV 5 Jaipur II shift Binary Values (Quantities) – In our daily life, we need to take logical decisions where answers comes in either Yes (T) or No (F). For ex- • Should I have tea? • Should I see this movie? • Sun rises in East? etc – The decisions which results in Yes or No only are known as binary decisions. – Values T and F are known as truth values. – Boolean variables can only be either T or F. – Indira Gandhi was the only lady Prime Minister of India (it results in true -T). Therefore it is a logic statement. – What do you want to say?( it can not be result in T or F). Therefore it is not a logic statement.
  • 3. Neha Tyagi, KV 5 Jaipur II shift Logical Operations – These are of three types - • AND • OR • NOT – These are used to develop compound statement For ex - • He prefers coffee not tea. • He plays guitar and sitar. • I watch TV on Sunday or I go for a movie. – These are also used to join logical variables. For ex- X NOT Y OR Z Y AND Z OR X
  • 4. Logical Operations – Before proceeding for Operations we will get to know some features of logic statements. For ex - Statement– 1 : I want to have tea. Statement – 2 :Tea is ready. now, develop a table with all its aspects. (X) I want to have tea. (Y) Tea is ready. T T T F F T F F (R)(result) I have drink tea. T F F F Now, if we create its truth table, its should be like- – Truth Table is a table which contains all possible truth values of logical values along with all possible results. – When all the results of a Truth Table are true (1) this condition is known as TAUTOLOGY and if all results are false (0) then this condition is known as FALLACY . X Y R 1 1 1 1 0 0 0 1 0 0 0 0 Neha Tyagi, KV 5 Jaipur II shift
  • 5. Logical Operators (NOT) NOT operator is represented by applying ( ‘ ) or ( ¯ ) on an expression. For ex- X’ or X . This is a unary operator also known as complementation operator . – 0’ = 1 and 1’ = 0 – Truth table and Venn Diagram for NOT operator is asunder- X X’ 0 1 1 0 Neha Tyagi, KV 5 Jaipur II shift
  • 6. Logical Operators (AND) – AND operator is used by applying ( . ) between two variables. like X.Y – It shows a very important operation of boolean algebra which is known as logical multiplication. – X.Y is to be read as X AND Y. – Rules of AND operation are- 0 . 0 = 0 0 . 1 = 0 1 . 0 = 0 1 . 1 = 1 – AND operator’s truth table and Venn Diagram are as under- X Y X.Y 0 0 0 0 1 0 1 0 0 1 1 1 Result will be 1 only when both the inputs will be 1 otherwise result will always be 0. Neha Tyagi, KV 5 Jaipur II shift Shadowed potion shows X.Y
  • 7. Logical Operators (OR) – OR operator is used by applying ( + ) between two variables. like X+Y – It shows a very important operation of boolean algebra which is known as logical addition. – X+Y is to be read as X OR Y. – Rules of OR operation are- 0 + 0 = 0 0 + 1 = 1 1 + 0 = 1 1 + 1 = 1 – AND operator’s truth table and Venn Diagram are as under- X Y X+Y 0 0 0 0 1 1 1 0 1 1 1 1 Shadowed potion shows X+Y Neha Tyagi, KV 5 Jaipur II shift Result will be 1 when either of the input will 1 otherwise result will be 0.
  • 8. Neha Tyagi, KV 5 Jaipur II shift Evaluation of Boolean Expression using Truth Table – To develop Boolean Expression, logical variables are used with logical operators. Truth table is used for its evaluation. For ex- X + (Y.X)’ + Z’ is a boolean expression and its truth table should be as follows- X Y Z Y.Z (Y.Z)’ Z’ X+(Y.Z)’ X+(Y.Z)’+Z’ 0 0 0 0 1 1 1 1 0 0 1 0 1 0 1 1 0 1 0 0 1 1 1 1 0 1 1 1 0 0 0 0 1 0 0 0 1 1 1 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 1 1 1 1 1 1 0 0 1 1
  • 9. Neha Tyagi, KV 5 Jaipur II shift Evaluation of Boolean Expression using Truth Table Prove (X+Y)’ = X’.Y’ using Boolean logic and truth table- By comparing (X+Y)’ and X’.Y’ it is proved that both the values are same. X Y X+Y (X+Y)’ X’ Y’ X’.Y’ 0 0 0 1 1 1 1 0 1 1 0 1 0 0 1 0 1 0 0 1 0 1 1 1 0 0 0 0
  • 10. Basic Logic Gates – When Shannon used boolean logic in switching circuit of telephone then Engineers realized that boolean algebra can also be used in computer electronics. In computers, logic gates are used to complete boolean operations. – A Gate is a basic Electronic Circuit used to develop an output signal by passing one or more input signal(s). – A Gate is a kind of two-state digital circuit because its input or output are either low voltage (i.e. 0) or high voltage (i.e.1). – Gates are also known as logic gates because they can coordinate with boolean logic. – Logic gates are of three types-- 1. Inverter (NOT Gate) 2. OR Gate 3. AND Gate Neha Tyagi, KV 5 Jaipur II shift
  • 11. Inverter (NOT Gate) – NOT gate takes one input and produces one output. – Its output is exactly opposite to its input. – It is called NOT gate because its output is not similar to its input. – Its output is also called as complement(opposite) of input. – Truth table and diagram of Not gate are as under- OR X X’ Low High High Low X Neha Tyagi, KV 5 Jaipur II shift X ’ X X’ 0 1 1 0
  • 12. OR Gate – OR gate takes two or more inputs and produces one output. – Its output is logical sum of passed inputs. – It produces high voltage output on any one high voltage input. It produces low voltage output only when all the inputs are of low voltage. – OR Gate Truth table and diagram are as under- – This gate work for more than two input signals in similar manner. X Y X + Y Low Low Low Low High High High Low High High High High X Y X + Y 0 0 0 0 1 1 1 0 1 1 1 1 Neha Tyagi, KV 5 Jaipur II shift
  • 13. AND Gate – AND gate takes two or more inputs and produces one output. – Its output is logical multiplication of passed inputs. – It produces low voltage output on any of the input signal as low voltage input. It produces high voltage output only when all the inputs are of high voltage. – AND Gate Truth table and diagram are as under- – This gate work for more than two input signals in similar manner. X Y X .Y Low Low Low Low High Low High Low Low High High High X Y X . Y 0 0 0 0 1 0 1 0 0 1 1 1 Neha Tyagi, KV 5 Jaipur II shift
  • 14. Neha Tyagi, KV 5 Jaipur II shift Boolean logic-Basic Postulates – Boolean algebra is a kind of mathematical system because of which it is based on some fundamental laws which are known as basic postulates. Which are as follows- - I. If X ≠ 0 then X = 1 and if X ≠ 1 then X =0 II. OR Relations (logical addition) III.  0 + 0 = 0  0 + 1 = 1  1 + 0 = 1  1 + 1 = 1 AND Relations (logical multiplication)  0 . 0 = 0  0 . 1 = 0  1 . 0 = 0  1 . 1 = 1 IV. Complementary Rules:  0’ = 1  1’ = 0
  • 15. Neha Tyagi, KV 5 Jaipur II shift Principle of DUALITY – It is very important concept of boolean logic. A boolean relation can be drived by other boolean relation if we follow following rules- 1. Every OR signal (+) is replaced by AND signal (.). 2. Every AND signal (.) is replaced by OR signal (+). 3. Every 1 is replaced by 0 and every 0 is replaced by 1. – The received expresseion will be dual expression of original expression. For ex- – Dual of 0 + 0 = 0 will be 1 . 1 = 1 – Dual of 0 + 1 = 1 will be 1 . 0 = 0 – Dual of 1 + 0 = 1 will be 0 . 1 = 0 – Dual of 1 + 1 = 1 will be 1 . 1 = 1
  • 16. Neha Tyagi, KV 5 Jaipur II shift Main Concepts of Boolean Algebra I. Properties of 0 and 1 0 + X = X 1 + X = 1 I. 0 + X = X II. 1 + X = 1 III. 0 . X = 0 IV. 1 . X = X 0 . X = 0 1 . X = X II. Indempotence Law - (a) X + X = X (b) X . X = X 0 X R 0 0 0 0 1 1 1 X R 1 0 1 1 1 1 0 X R 0 0 0 0 1 0 1 X R 1 0 0 1 1 1 X X R 0 0 0 1 1 1 X X R 0 0 0 1 1 1
  • 17. Neha Tyagi, KV 5 Jaipur II shift Main Concepts of Boolean Algebra Involution – (X’)’ = X III. IV. Complementarity Law – (a) X + X’ = 1 (b) X . X’ = 0 V. Commutative Law – (a) X + Y = Y + X (b) X . Y = X . Y X X’ (X’)’ 0 1 0 1 0 1 X X’ R 0 1 1 1 0 1 X X’ R 0 1 0 1 0 0 X Y X + Y Y + X 0 0 0 0 0 1 1 1 1 0 1 1 1 1 1 1 X Y X . Y Y . X 0 0 0 0 0 1 0 0 1 0 0 0 1 1 1 1
  • 18. Neha Tyagi, KV 5 Jaipur II shift Main Concepts of Boolean Algebra VI. Associative Law – (a) X+(Y+Z) = (X+Y)+Z X Y Z Y + Z X + Y X+ (Y + Z) (X + Y) + Z 0 0 0 0 0 0 0 0 0 1 1 0 1 1 0 1 0 1 1 1 1 0 1 1 1 1 1 1 1 0 0 0 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1
  • 19. Neha Tyagi, KV 5 Jaipur II shift Main Concepts of Boolean Algebra VI. Associative Law – (b) X . (Y . Z) = (X . Y) . Z X Y Z Y . Z X . Y X . (Y . Z) (X . Y) . Z 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 1 1 1 0 0 0 1 0 0 0 0 0 0 1 0 1 0 0 0 0 1 1 0 0 1 0 0 1 1 1 1 1 1 1
  • 20. Neha Tyagi, KV 5 Jaipur II shift Main Concepts of Boolean Algebra VII. Distributive Law – (a) X . (Y + Z) = X.Y + X.Z X Y Z Y+Z X.Y X.Z X.(Y+Z) X.Y+X.Z 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 1 0 0 0 0 1 0 0 0 0 0 0 0 1 0 1 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 1 1 1 1
  • 21. Main Concepts of Boolean Algebra VII. Distributive Law – (b) X + Y.Z = (X + Y) . (X + Z) X Y Z Y.Z X+Y X+Z X+Y.Z (X+Y).(X+Z) 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 0 0 1 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 1 1 1 1 1 0 1 0 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 Neha Tyagi, KV 5 Jaipur II shift
  • 22. Neha Tyagi, KV 5 Jaipur II shift Main Concepts of Boolean Algebra VIII. Absorption Law – (a) X + X . Y = X (b) X . (X + Y) = X VIII. . IX. Other rules (Third Distributive Law) X + X’.Y = X + Y X Y X.Y X+X.Y 0 0 0 0 0 1 0 0 1 0 0 1 1 1 1 1 X Y X + Y X.(X+Y) 0 0 0 0 0 1 1 0 1 0 1 1 1 1 1 1 X Y X’ X’.Y X + X’.Y X+Y 0 0 1 0 0 0 0 1 1 1 1 1 1 0 0 0 1 1 1 1 0 0 1 1
  • 23. Neha Tyagi, KV 5 Jaipur II shift Main Concepts of Boolean Algebra X. DEMORGAN’s Law – (a) (X+Y)’ = X’ . Y’ (b) (X.Y)’ = X’ + Y’ VIII. . You can prove a law with the help of truth table and can also be proven mathematically. Sum of Product : ABC, XY, X’YZ’ etc Product of Sum : A+B+C, X+Y’+Z’ etc X Y (X+Y)’ X’.Y’ 0 0 1 1 0 1 0 0 1 0 0 0 1 1 0 0 X Y (X.Y)’ X’ + Y’ 0 0 1 1 0 1 1 1 1 0 1 1 1 1 0 0
  • 24. Neha Tyagi, KV 5 Jaipur II shift Minimization of Boolean Expression algebraically • Minimize the expression- AB’CD’ + AB’CD +ABCD’ + ABCD Solution: AB’CD’ + AB’CD +ABCD’ + ABCD = AB’C(D’+D)+ABC(D’+D) =AB’C + ABC = AC (B’+B) = AC.1 = AC
  • 25. Other Logic Gates – There are some derived gates also besides AND, OR, NOT Gates. Like- NOR, NAND, XOR, XNOR Gates. NOR Gate: There is two or more input signals and one output signal in NOR gate.if all input signals are 0 (low) then output signal will be 1 (high). X Y F 0 0 1 0 1 0 1 0 0 1 1 0 X Y Z F 0 0 0 1 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 0 Neha Tyagi, KV 5 Jaipur II shift
  • 26. NAND Gate • There is two or more input signals and one output signal in NAND gate.if all input signals are 1 (high) then output signal will be 0 (low). It is also known as universal gate because fundamental gates can be retrieved with its help. X Y F 0 0 1 0 1 1 1 0 1 1 1 0 X Y Z F 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 0 Neha Tyagi, KV 5 Jaipur II shift
  • 27. XOR Gate • XOR Gate produces 1 (high) when inputs are not at equal logic level. It is also known as universal gate because fundamental gates can be retrieved with its help. No of 1’s X Y F Even 0 0 0 Odd 0 1 1 Odd 1 0 1 Even 1 1 0 No of 1’s X Y Z F Even 0 0 0 0 Odd 0 0 1 1 Odd 0 1 0 1 Even 0 1 1 0 Odd 1 0 0 1 Even 1 0 1 0 Even 1 1 0 0 Odd 1 1 1 1 Neha Tyagi, KV 5 Jaipur II shift
  • 28. XNOR Gate • XNOR Gate produces 1 (high) when the inputs are identical (both 1’s or both 0’s). No of 1’s X Y F Even 0 0 1 Odd 0 1 0 Odd 1 0 0 Even 1 1 1 No of 1’s X Y Z F Even 0 0 0 1 Odd 0 0 1 0 Odd 0 1 0 0 Even 0 1 1 1 Odd 1 0 0 0 Even 1 0 1 1 Even 1 1 0 1 Odd 1 1 1 0 Neha Tyagi, KV 5 Jaipur II shift
  • 29. Neha Tyagi, KV 5 Jaipur II shift Assignment 1. Prepare AND, NOT and OR gate and their circuit diagram by NAND gate. 2. Prepare AND, NOT and OR gate and their circuit diagram by NOR gate. 3. Prepare logic circuit for the following- I. F(A,B,C) = AB + AC’ +A’B’C II. F(X,Y,Z) = (X+Y) . (X’+Z’) . (Y+Z)