SlideShare a Scribd company logo
1 of 18
BOOLEAN LOGIC
CLASS: XI
COMPUTER SCIENCE -083
INTRODUCTION TO BOOLEAN LOGIC
Boolean Logic is a form of algebra which is centered around three simple words
known as Boolean Operators: “Or,” “And,” and “Not”. At the heart of Boolean
Logic is the idea that all values are either true or false MEANS 1’s [TRUE] or
0’s[FALSE].
Boolean logic was originally developed by George Boole in
mid-1800s.Boolean logic is a very easy way to figure out
the truth of a expression using True or False.
10 > 5 TRUE
Boolean logic is very easy to explain and to understand.
The values that expressed only in the form of 1’s means TRUE/YES or 0’s
means FALSE/NO.
Consider the example:
• Should I go to restaurant or not?
• Should I purchase a new mobile or not?
All these statements have only one answer, either in the form of yes/no,
True/False.
Boolean Variable.
It is also known as binary variable or logical variable that takes values from
Boolean algebra. A Boolean variable can take only one binary – valued
quantity out of two possible values i.e., YES/TRUE/1 or NO/FALSE/0.
One bit represents one Boolean variable.
So in electrical circuit, if the signals passes, it represents 1, else
represented through 0.
Boolean Constant:
The values which are stored in binary variables are known as Boolean
Constants. Therefore, the values are YES/TRUE/1’s or NO/FALSE/0’s.
Boolean Operators:
And Or Not
(Dot) + (Plus) ( ) or ( ‘ )
^ (caret) ( ~ )
स्थिर ,stable, static, stationary, constant, stagnant, still
()^Reversed caret
And (Dot)
AND operator is a binary operator that operates on two variable and the
operation performed by AND operator is known as logical multiplication.
( ^ )
Consider the following two variable values and find the result using AND
operator:
A B A . B
0
0
1
1
0
1
0
1
0
0
0
1
A B A ^ B
F
F
T
T
F
T
F
T
F
F
F
T
A B^
OR
OR operator is a binary operator that operates on two variable and the
operation performed by OR operator is known as logical addition.
Consider the following two variable values and find the result using OR
operator:
A B A + B
0
0
1
1
0
1
0
1
0
1
1
1
A B A + B
F
F
T
T
F
T
F
T
F
T
T
T
+ (Plus)
^
A B
^
NOT
NOT operator is a unary operator that operates on one variable and the
operation performed by NOT operator is known as Negation or
complementation..
Consider the following one variable values and find the result using NOT
operator:
A
0
1
1
0
A A’
F
T
T
F
~A
( ) or ( ‘ ) , ( ~ )
A’
A
TRUE NOT = FALSE
TRUTH TABLE:
A truth table is a mathematical table used to determine if a compound
statement is true or false. In a truth table, each statement is typically
represented by a letter or variable, like p, q, or r, and each statement also
has its own corresponding column in the truth table that lists all of the
possible truth values
Three types of truth table form:
1) Two variable form
2) Three variable form
3) Four variable form
How to Create a Truth Table
The first step in creating a truth table is to determine the number of
variables.
Draw COLUMNS for each unique variable. For example if two variable A,B
then two columns
Draw ROWS which can be calculated as 2n where n is total number of
variables.
Write 0’s in the first half for the number of rows in the first column and 1’s in
the next half in the first column
Similarly, Write 0’s in the first half for number of rows which have 0’s in the
first column and 1’s in the same number. Repeat this pattern till it written for
all.
Let us discuss First two variable form A,B :
It means two variable so number of rows are 22=4
A B
Write 0’s in the first half for the number of rows in the
first column and 1’s in the next half in the first column0
0
1
1
Draw the 2 column for A, B variable
Similarly, Write 0’s in the first half for number of rows
which have 0’s in the first column and 1’s in the same
number. Repeat this pattern till it written for all.
0
1
0
1
Method 1:
LEFT To RIGHT
Let us discuss First two variable form A,B :
It means two variable so number of rows are 22=4
A B
0
0
1
1
Draw the 2 column for A, B variable
0
1
0
1
Start from the last column and put 0,1,0,1……upto
the last row
Now go to next column at the left and now again
write 0,1 but double it like : 0,0,1,1,0,0,1,1………
Method 2:
RIGHT To LEFT
It means two variable so number of rows are 23=8 rows
A B C Draw the 3 column for A, B, C variable A B C
First column half 0’s
and half 1’s
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
Three variable form A,B,C.
LEFT To RIGHT RIGHT To LEFT
Method 1: Method 2:
Write 0’s in the first
half for number of
rows which have 0’s
in the first column
and 1’s in the same
number. Repeat same
for next
Start from
the last
column
and put
0,1,0,1
next column at
the left and
now again
write 0,1 but
double it like :
0,0,1,1,….
Three variable so number of rows are 24=16 rows
A B C D
0
0
0
0
0
0
1
1
1
1
0
0
Four variable form A,B,C,D.
LEFT To RIGHT RIGHT To LEFT
Method 1: Method 2:
1
1
1
1
0
0
1
1
1
1
0
0
0
0
0
0
0
0
1
1
1
1
0
0
1
1
1
1
0
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
First column half 0’s
and half 1’s
Write 0’s in the first
half for number of
rows which have 0’s
in the first column
and 1’s in the same
number. Repeat same
for next
A B C D
0
0
0
0
0
0
1
1
1
1
0
0
1
1
1
1
0
0
1
1
1
1
0
0
0
0
0
0
0
0
1
1
1
1
0
0
1
1
1
1
0
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
next column at
the left and
now again
write 0,1 but
double it like :
0,0,1,1,….
Start from
the last
column
and put
0,1,0,1
Now you know how to draw truth table
Let us solve the Boolean expression using truth table
Rules to evaluating Boolean expression:
Evaluate the Boolean expression from left to right
Evaluate the expression in parenthesis first
Perform all NOT expression
Perform all AND expression
Perform all OR expression
Evaluate the Boolean expression A+BC’ using truth table.
How many variable 3 A,B,C mean 23=8 rows.
A B C
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
C’ BC’ A + BC’
1
0
1
0
1
0
1
0
0
0
1
0
0
0
1
0
0
0
1
0
1
1
1
1
1.Perform all NOT expression
2.Perform all AND expression
3.Perform all OR expression
BC’ means B.C’
Evaluate the Boolean expression A+ABC’+A’C’ using truth table.
How many variable 3 A,B,C mean 23=8 rows.
A B C
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
A’ C’ ABC’ A’C’ A+ABC’+A’C’
1
1
1
1
0
0
0
0
1
0
1
0
1
0
1
0
0
0
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
1
1
1
Verify using truth table that ( X + Y ) ‘ = X’ Y’ for each X,Y{0,1}.
X Y
0 0
0 1
1 0
1 1
X + Y
0
1
1
1
(X + Y)’
1
0
0
0
X’.Y’
1
0
0
0
X’
1
1
0
0
Y’
1
0
1
0
(LHS) (RHS)
It is proved that LHS = RHS

More Related Content

Similar to Boolean logic

Basic Boolean Logic
Basic Boolean LogicBasic Boolean Logic
Basic Boolean Logicvineetvns
 
Boolean Algebra Terminologies.pdf
Boolean Algebra Terminologies.pdfBoolean Algebra Terminologies.pdf
Boolean Algebra Terminologies.pdfShivarkarSandip
 
Boolean Algebra.pdf
Boolean Algebra.pdfBoolean Algebra.pdf
Boolean Algebra.pdfssusere02873
 
Lecture 2.4 logic_gate_&_simple_logic_circuit
Lecture 2.4 logic_gate_&_simple_logic_circuitLecture 2.4 logic_gate_&_simple_logic_circuit
Lecture 2.4 logic_gate_&_simple_logic_circuitKMJ Science Computer
 
Boolean Algebra and Logic Smiplification
Boolean Algebra and Logic SmiplificationBoolean Algebra and Logic Smiplification
Boolean Algebra and Logic Smiplificationsamantha rathnayake
 
2nd PUC computer science chapter 2 boolean algebra 1
2nd PUC computer science chapter 2  boolean algebra 12nd PUC computer science chapter 2  boolean algebra 1
2nd PUC computer science chapter 2 boolean algebra 1Aahwini Esware gowda
 
Boolen Algebra Lecture Notes.pdf
Boolen Algebra Lecture Notes.pdfBoolen Algebra Lecture Notes.pdf
Boolen Algebra Lecture Notes.pdfnyamuonatinashe
 
Boolean algebra.pptx
Boolean algebra.pptxBoolean algebra.pptx
Boolean algebra.pptxMhhh7
 
DigitalLogic_BooleanAlgebra_P.pdf
DigitalLogic_BooleanAlgebra_P.pdfDigitalLogic_BooleanAlgebra_P.pdf
DigitalLogic_BooleanAlgebra_P.pdfk vimal kumar
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean AlgebraArRaja4
 
C programming operators
C programming operatorsC programming operators
C programming operatorsSuneel Dogra
 
Boolean Algebra - R.D.Sivakumar
Boolean Algebra - R.D.SivakumarBoolean Algebra - R.D.Sivakumar
Boolean Algebra - R.D.SivakumarSivakumar R D .
 
Rthch2nts 160709112024
Rthch2nts 160709112024Rthch2nts 160709112024
Rthch2nts 160709112024marangburu42
 
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdfsiliconvalley6203
 
Boolean variables r010
Boolean variables   r010Boolean variables   r010
Boolean variables r010arunachalamr16
 

Similar to Boolean logic (20)

Basic Boolean Logic
Basic Boolean LogicBasic Boolean Logic
Basic Boolean Logic
 
Boolean Algebra Terminologies.pdf
Boolean Algebra Terminologies.pdfBoolean Algebra Terminologies.pdf
Boolean Algebra Terminologies.pdf
 
Boolean Algebra.pdf
Boolean Algebra.pdfBoolean Algebra.pdf
Boolean Algebra.pdf
 
Lecture 2.4 logic_gate_&_simple_logic_circuit
Lecture 2.4 logic_gate_&_simple_logic_circuitLecture 2.4 logic_gate_&_simple_logic_circuit
Lecture 2.4 logic_gate_&_simple_logic_circuit
 
boolean-algebra.pdf
boolean-algebra.pdfboolean-algebra.pdf
boolean-algebra.pdf
 
Digital 1 8
Digital 1 8Digital 1 8
Digital 1 8
 
Boolean algebra r009
Boolean algebra   r009Boolean algebra   r009
Boolean algebra r009
 
Boolean Algebra and Logic Smiplification
Boolean Algebra and Logic SmiplificationBoolean Algebra and Logic Smiplification
Boolean Algebra and Logic Smiplification
 
2nd PUC computer science chapter 2 boolean algebra 1
2nd PUC computer science chapter 2  boolean algebra 12nd PUC computer science chapter 2  boolean algebra 1
2nd PUC computer science chapter 2 boolean algebra 1
 
Boolen Algebra Lecture Notes.pdf
Boolen Algebra Lecture Notes.pdfBoolen Algebra Lecture Notes.pdf
Boolen Algebra Lecture Notes.pdf
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Boolean algebra.pptx
Boolean algebra.pptxBoolean algebra.pptx
Boolean algebra.pptx
 
DigitalLogic_BooleanAlgebra_P.pdf
DigitalLogic_BooleanAlgebra_P.pdfDigitalLogic_BooleanAlgebra_P.pdf
DigitalLogic_BooleanAlgebra_P.pdf
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
C programming operators
C programming operatorsC programming operators
C programming operators
 
Boolean Algebra - R.D.Sivakumar
Boolean Algebra - R.D.SivakumarBoolean Algebra - R.D.Sivakumar
Boolean Algebra - R.D.Sivakumar
 
Rthch2nts 160709112024
Rthch2nts 160709112024Rthch2nts 160709112024
Rthch2nts 160709112024
 
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
 
13 Boolean Algebra
13 Boolean Algebra13 Boolean Algebra
13 Boolean Algebra
 
Boolean variables r010
Boolean variables   r010Boolean variables   r010
Boolean variables r010
 

More from vikram mahendra

Python Project On Cosmetic Shop system
Python Project On Cosmetic Shop systemPython Project On Cosmetic Shop system
Python Project On Cosmetic Shop systemvikram mahendra
 
Python Project on Computer Shop
Python Project on Computer ShopPython Project on Computer Shop
Python Project on Computer Shopvikram mahendra
 
PYTHON PROJECT ON CARSHOP SYSTEM
PYTHON PROJECT ON CARSHOP SYSTEMPYTHON PROJECT ON CARSHOP SYSTEM
PYTHON PROJECT ON CARSHOP SYSTEMvikram mahendra
 
BOOK SHOP SYSTEM Project in Python
BOOK SHOP SYSTEM Project in PythonBOOK SHOP SYSTEM Project in Python
BOOK SHOP SYSTEM Project in Pythonvikram mahendra
 
FLOW OF CONTROL-NESTED IFS IN PYTHON
FLOW OF CONTROL-NESTED IFS IN PYTHONFLOW OF CONTROL-NESTED IFS IN PYTHON
FLOW OF CONTROL-NESTED IFS IN PYTHONvikram mahendra
 
FLOWOFCONTROL-IF..ELSE PYTHON
FLOWOFCONTROL-IF..ELSE PYTHONFLOWOFCONTROL-IF..ELSE PYTHON
FLOWOFCONTROL-IF..ELSE PYTHONvikram mahendra
 
FLOW OF CONTROL-INTRO PYTHON
FLOW OF CONTROL-INTRO PYTHONFLOW OF CONTROL-INTRO PYTHON
FLOW OF CONTROL-INTRO PYTHONvikram mahendra
 
OPERATOR IN PYTHON-PART1
OPERATOR IN PYTHON-PART1OPERATOR IN PYTHON-PART1
OPERATOR IN PYTHON-PART1vikram mahendra
 
OPERATOR IN PYTHON-PART2
OPERATOR IN PYTHON-PART2OPERATOR IN PYTHON-PART2
OPERATOR IN PYTHON-PART2vikram mahendra
 
USE OF PRINT IN PYTHON PART 2
USE OF PRINT IN PYTHON PART 2USE OF PRINT IN PYTHON PART 2
USE OF PRINT IN PYTHON PART 2vikram mahendra
 
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]vikram mahendra
 
USER DEFINE FUNCTIONS IN PYTHON
USER DEFINE FUNCTIONS IN PYTHONUSER DEFINE FUNCTIONS IN PYTHON
USER DEFINE FUNCTIONS IN PYTHONvikram mahendra
 
FUNCTIONS IN PYTHON[RANDOM FUNCTION]
FUNCTIONS IN PYTHON[RANDOM FUNCTION]FUNCTIONS IN PYTHON[RANDOM FUNCTION]
FUNCTIONS IN PYTHON[RANDOM FUNCTION]vikram mahendra
 
INTRODUCTION TO FUNCTIONS IN PYTHON
INTRODUCTION TO FUNCTIONS IN PYTHONINTRODUCTION TO FUNCTIONS IN PYTHON
INTRODUCTION TO FUNCTIONS IN PYTHONvikram mahendra
 

More from vikram mahendra (20)

Communication skill
Communication skillCommunication skill
Communication skill
 
Python Project On Cosmetic Shop system
Python Project On Cosmetic Shop systemPython Project On Cosmetic Shop system
Python Project On Cosmetic Shop system
 
Python Project on Computer Shop
Python Project on Computer ShopPython Project on Computer Shop
Python Project on Computer Shop
 
PYTHON PROJECT ON CARSHOP SYSTEM
PYTHON PROJECT ON CARSHOP SYSTEMPYTHON PROJECT ON CARSHOP SYSTEM
PYTHON PROJECT ON CARSHOP SYSTEM
 
BOOK SHOP SYSTEM Project in Python
BOOK SHOP SYSTEM Project in PythonBOOK SHOP SYSTEM Project in Python
BOOK SHOP SYSTEM Project in Python
 
FLOW OF CONTROL-NESTED IFS IN PYTHON
FLOW OF CONTROL-NESTED IFS IN PYTHONFLOW OF CONTROL-NESTED IFS IN PYTHON
FLOW OF CONTROL-NESTED IFS IN PYTHON
 
FLOWOFCONTROL-IF..ELSE PYTHON
FLOWOFCONTROL-IF..ELSE PYTHONFLOWOFCONTROL-IF..ELSE PYTHON
FLOWOFCONTROL-IF..ELSE PYTHON
 
FLOW OF CONTROL-INTRO PYTHON
FLOW OF CONTROL-INTRO PYTHONFLOW OF CONTROL-INTRO PYTHON
FLOW OF CONTROL-INTRO PYTHON
 
OPERATOR IN PYTHON-PART1
OPERATOR IN PYTHON-PART1OPERATOR IN PYTHON-PART1
OPERATOR IN PYTHON-PART1
 
OPERATOR IN PYTHON-PART2
OPERATOR IN PYTHON-PART2OPERATOR IN PYTHON-PART2
OPERATOR IN PYTHON-PART2
 
USE OF PRINT IN PYTHON PART 2
USE OF PRINT IN PYTHON PART 2USE OF PRINT IN PYTHON PART 2
USE OF PRINT IN PYTHON PART 2
 
DATA TYPE IN PYTHON
DATA TYPE IN PYTHONDATA TYPE IN PYTHON
DATA TYPE IN PYTHON
 
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
 
USER DEFINE FUNCTIONS IN PYTHON
USER DEFINE FUNCTIONS IN PYTHONUSER DEFINE FUNCTIONS IN PYTHON
USER DEFINE FUNCTIONS IN PYTHON
 
FUNCTIONS IN PYTHON[RANDOM FUNCTION]
FUNCTIONS IN PYTHON[RANDOM FUNCTION]FUNCTIONS IN PYTHON[RANDOM FUNCTION]
FUNCTIONS IN PYTHON[RANDOM FUNCTION]
 
INTRODUCTION TO FUNCTIONS IN PYTHON
INTRODUCTION TO FUNCTIONS IN PYTHONINTRODUCTION TO FUNCTIONS IN PYTHON
INTRODUCTION TO FUNCTIONS IN PYTHON
 
Python Introduction
Python IntroductionPython Introduction
Python Introduction
 
GREEN SKILL[PART-2]
GREEN SKILL[PART-2]GREEN SKILL[PART-2]
GREEN SKILL[PART-2]
 
GREEN SKILLS[PART-1]
GREEN SKILLS[PART-1]GREEN SKILLS[PART-1]
GREEN SKILLS[PART-1]
 
Dictionary in python
Dictionary in pythonDictionary in python
Dictionary in python
 

Recently uploaded

Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxAnaBeatriceAblay2
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 

Recently uploaded (20)

Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 

Boolean logic

  • 2. INTRODUCTION TO BOOLEAN LOGIC Boolean Logic is a form of algebra which is centered around three simple words known as Boolean Operators: “Or,” “And,” and “Not”. At the heart of Boolean Logic is the idea that all values are either true or false MEANS 1’s [TRUE] or 0’s[FALSE]. Boolean logic was originally developed by George Boole in mid-1800s.Boolean logic is a very easy way to figure out the truth of a expression using True or False. 10 > 5 TRUE
  • 3. Boolean logic is very easy to explain and to understand. The values that expressed only in the form of 1’s means TRUE/YES or 0’s means FALSE/NO. Consider the example: • Should I go to restaurant or not? • Should I purchase a new mobile or not? All these statements have only one answer, either in the form of yes/no, True/False.
  • 4. Boolean Variable. It is also known as binary variable or logical variable that takes values from Boolean algebra. A Boolean variable can take only one binary – valued quantity out of two possible values i.e., YES/TRUE/1 or NO/FALSE/0. One bit represents one Boolean variable. So in electrical circuit, if the signals passes, it represents 1, else represented through 0.
  • 5. Boolean Constant: The values which are stored in binary variables are known as Boolean Constants. Therefore, the values are YES/TRUE/1’s or NO/FALSE/0’s. Boolean Operators: And Or Not (Dot) + (Plus) ( ) or ( ‘ ) ^ (caret) ( ~ ) स्थिर ,stable, static, stationary, constant, stagnant, still ()^Reversed caret
  • 6. And (Dot) AND operator is a binary operator that operates on two variable and the operation performed by AND operator is known as logical multiplication. ( ^ ) Consider the following two variable values and find the result using AND operator: A B A . B 0 0 1 1 0 1 0 1 0 0 0 1 A B A ^ B F F T T F T F T F F F T A B^
  • 7. OR OR operator is a binary operator that operates on two variable and the operation performed by OR operator is known as logical addition. Consider the following two variable values and find the result using OR operator: A B A + B 0 0 1 1 0 1 0 1 0 1 1 1 A B A + B F F T T F T F T F T T T + (Plus) ^ A B ^
  • 8. NOT NOT operator is a unary operator that operates on one variable and the operation performed by NOT operator is known as Negation or complementation.. Consider the following one variable values and find the result using NOT operator: A 0 1 1 0 A A’ F T T F ~A ( ) or ( ‘ ) , ( ~ ) A’ A TRUE NOT = FALSE
  • 9. TRUTH TABLE: A truth table is a mathematical table used to determine if a compound statement is true or false. In a truth table, each statement is typically represented by a letter or variable, like p, q, or r, and each statement also has its own corresponding column in the truth table that lists all of the possible truth values Three types of truth table form: 1) Two variable form 2) Three variable form 3) Four variable form
  • 10. How to Create a Truth Table The first step in creating a truth table is to determine the number of variables. Draw COLUMNS for each unique variable. For example if two variable A,B then two columns Draw ROWS which can be calculated as 2n where n is total number of variables. Write 0’s in the first half for the number of rows in the first column and 1’s in the next half in the first column Similarly, Write 0’s in the first half for number of rows which have 0’s in the first column and 1’s in the same number. Repeat this pattern till it written for all.
  • 11. Let us discuss First two variable form A,B : It means two variable so number of rows are 22=4 A B Write 0’s in the first half for the number of rows in the first column and 1’s in the next half in the first column0 0 1 1 Draw the 2 column for A, B variable Similarly, Write 0’s in the first half for number of rows which have 0’s in the first column and 1’s in the same number. Repeat this pattern till it written for all. 0 1 0 1 Method 1: LEFT To RIGHT
  • 12. Let us discuss First two variable form A,B : It means two variable so number of rows are 22=4 A B 0 0 1 1 Draw the 2 column for A, B variable 0 1 0 1 Start from the last column and put 0,1,0,1……upto the last row Now go to next column at the left and now again write 0,1 but double it like : 0,0,1,1,0,0,1,1……… Method 2: RIGHT To LEFT
  • 13. It means two variable so number of rows are 23=8 rows A B C Draw the 3 column for A, B, C variable A B C First column half 0’s and half 1’s 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 Three variable form A,B,C. LEFT To RIGHT RIGHT To LEFT Method 1: Method 2: Write 0’s in the first half for number of rows which have 0’s in the first column and 1’s in the same number. Repeat same for next Start from the last column and put 0,1,0,1 next column at the left and now again write 0,1 but double it like : 0,0,1,1,….
  • 14. Three variable so number of rows are 24=16 rows A B C D 0 0 0 0 0 0 1 1 1 1 0 0 Four variable form A,B,C,D. LEFT To RIGHT RIGHT To LEFT Method 1: Method 2: 1 1 1 1 0 0 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 First column half 0’s and half 1’s Write 0’s in the first half for number of rows which have 0’s in the first column and 1’s in the same number. Repeat same for next A B C D 0 0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 next column at the left and now again write 0,1 but double it like : 0,0,1,1,…. Start from the last column and put 0,1,0,1
  • 15. Now you know how to draw truth table Let us solve the Boolean expression using truth table Rules to evaluating Boolean expression: Evaluate the Boolean expression from left to right Evaluate the expression in parenthesis first Perform all NOT expression Perform all AND expression Perform all OR expression
  • 16. Evaluate the Boolean expression A+BC’ using truth table. How many variable 3 A,B,C mean 23=8 rows. A B C 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 C’ BC’ A + BC’ 1 0 1 0 1 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 1 1 1 1 1.Perform all NOT expression 2.Perform all AND expression 3.Perform all OR expression BC’ means B.C’
  • 17. Evaluate the Boolean expression A+ABC’+A’C’ using truth table. How many variable 3 A,B,C mean 23=8 rows. A B C 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 A’ C’ ABC’ A’C’ A+ABC’+A’C’ 1 1 1 1 0 0 0 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 1 0 1 0 1 0 0 0 0 0 1 0 1 0 1 1 1 1
  • 18. Verify using truth table that ( X + Y ) ‘ = X’ Y’ for each X,Y{0,1}. X Y 0 0 0 1 1 0 1 1 X + Y 0 1 1 1 (X + Y)’ 1 0 0 0 X’.Y’ 1 0 0 0 X’ 1 1 0 0 Y’ 1 0 1 0 (LHS) (RHS) It is proved that LHS = RHS