SlideShare a Scribd company logo
1 of 24
Introduction and Basic Concepts
TRUTH TABLE
Truth Table is a table which represents all the possible values of
logical variables/ statements along with all the possible results of the
given combinations of values.
With the help of truth table we can know all the possible
combinations of values and results of logical statements.
Logic variables are combined by the means of logical
operators (AND, OR, NOT) to form a Boolean expression.
For example X + YZ + XY is a Boolean expression.
It is often convenient to write X.Y.Z as XYZ
In order to study a Boolean expression, it is useful to
construct a table of values for the variables and then
evaluate the expression for each possible combination of
values.
Evaluating Boolean expression
NOTE : A truth table of n input variables will have 2n input
combinations i.e. 2n rows, for e.g. a 4-variable truth table
will have 2n i.e. 16 rows in it.
So if we have a 2 input variables say X and Y we have n=2,
hence we have 22 =4 rows as following-
X Y
0 0
0 1
1 0
1 1
In case we have a 3 input variables say X , Y and Z, we
have n=3, hence we have 23 =8 rows as following-
X Y Z
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
SOLVING SIMPLE QUESTIONS
While evaluating Boolean expression there is a
precedence order which has to be taken care of always. The
order of evaluation of logical operators is –
first NOT
then AND
then OR
If there are parenthesis, then the expression in the parenthesis
is evaluated first.
Qs. Create a truth table for the Boolean expression –
F = A.B’+ C
Steps-
1. In the given expression, there are three variables – A, B & C
2. Draw three columns for each possible input variable
combination and three columns for each of the logical
expression given – NOT, OR & AND
3. Since there are three variables, we have 23 = 8 rows
A B C Create a three column table,
we will add some more
columns.
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
Enter appropriate values into
the input variables.
A B C B’ A.B’ 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
Add columns B’, A.B’, A.B’+ C
A B C B’ A.B’ A.B’+C
0 0 0 1
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 1
1 1 0 0
1 1 1 0
Evaluate value for B’
A B C B’ A.B’ A.B’+C
0 0 0 1
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 1
1 1 0 0
1 1 1 0
Evaluate value for A . B’
A B C B’ A.B’ A.B’+C
0 0 0 1 0
0 0 1 1 0
0 1 0 0 0
0 1 1 0 0
1 0 0 1 1
1 0 1 1 1
1 1 0 0 0
1 1 1 0 0
Put values for A . B’
A B C B’ A.B’ A.B’+C
0 0 0 1 0
0 0 1 1 0
0 1 0 0 0
0 1 1 0 0
1 0 0 1 1
1 0 1 1 1
1 1 0 0 0
1 1 1 0 0
Finally, evaluate the value for A . B’+ C
A B C B’ A.B’ A.B’+C
0 0 0 1 0 0
0 0 1 1 0 1
0 1 0 0 0 0
0 1 1 0 0 1
1 0 0 1 1 1
1 0 1 1 1 1
1 1 0 0 0 0
1 1 1 0 0 1
Finally, evaluate the value for A . B’+ C
A B C B’ A.B’ A.B’+C
0 0 0 1 0 0
0 0 1 1 0 1
0 1 0 0 0 0
0 1 1 0 0 1
1 0 0 1 1 1
1 0 1 1 1 1
1 1 0 0 0 0
1 1 1 0 0 1
Finally, the solution for F = A . B’+ C
RULES REVISITED
While evaluating Boolean expression the rules which is required
to be followed are –
a) Evaluate the Boolean expression from
left to right ->
b) Evaluate the Boolean expression in the
parenthesis / brackets first
c) Perform all NOT expression
d) Perform all AND expression
e) Perform all OR expression
Basic Boolean Logic

More Related Content

What's hot

Trigonometric Function Of Any Angle
Trigonometric Function Of Any AngleTrigonometric Function Of Any Angle
Trigonometric Function Of Any Angle
Yelena Melnichenko
 
t2 sine and cosine law inverse trig-functions
t2 sine and cosine law inverse trig-functionst2 sine and cosine law inverse trig-functions
t2 sine and cosine law inverse trig-functions
math260
 
Equations of Straight Lines
Equations of Straight LinesEquations of Straight Lines
Equations of Straight Lines
itutor
 
Trigonometry functions of general angles reference angles
Trigonometry functions of general angles reference anglesTrigonometry functions of general angles reference angles
Trigonometry functions of general angles reference angles
Jessica Garcia
 
t4 sum and double half-angle formulas
t4 sum and double half-angle formulast4 sum and double half-angle formulas
t4 sum and double half-angle formulas
math260
 

What's hot (20)

straight lines
straight lines straight lines
straight lines
 
Integers
IntegersIntegers
Integers
 
Freddy Meza
Freddy Meza Freddy Meza
Freddy Meza
 
Trigonometric Function Of Any Angle
Trigonometric Function Of Any AngleTrigonometric Function Of Any Angle
Trigonometric Function Of Any Angle
 
NUMBER SYSTEM
NUMBER SYSTEMNUMBER SYSTEM
NUMBER SYSTEM
 
PI THE MATHEMATICAL CONSTANT
PI THE MATHEMATICAL CONSTANTPI THE MATHEMATICAL CONSTANT
PI THE MATHEMATICAL CONSTANT
 
t2 sine and cosine law inverse trig-functions
t2 sine and cosine law inverse trig-functionst2 sine and cosine law inverse trig-functions
t2 sine and cosine law inverse trig-functions
 
11th Maths - Probability - BAYE’S THEOREM
11th Maths - Probability - BAYE’S THEOREM11th Maths - Probability - BAYE’S THEOREM
11th Maths - Probability - BAYE’S THEOREM
 
Equations of Straight Lines
Equations of Straight LinesEquations of Straight Lines
Equations of Straight Lines
 
Math12 lesson2
Math12 lesson2Math12 lesson2
Math12 lesson2
 
Nota math f1 bab 13 theorem phytagoras
Nota math f1 bab 13 theorem phytagorasNota math f1 bab 13 theorem phytagoras
Nota math f1 bab 13 theorem phytagoras
 
Corr And Regress
Corr And RegressCorr And Regress
Corr And Regress
 
Trigonometry functions of general angles reference angles
Trigonometry functions of general angles reference anglesTrigonometry functions of general angles reference angles
Trigonometry functions of general angles reference angles
 
t4 sum and double half-angle formulas
t4 sum and double half-angle formulast4 sum and double half-angle formulas
t4 sum and double half-angle formulas
 
Vector Geometry
Vector GeometryVector Geometry
Vector Geometry
 
Maths in english
Maths in englishMaths in english
Maths in english
 
Grade 10 Trig.
Grade 10 Trig.Grade 10 Trig.
Grade 10 Trig.
 
Math: Theorem 10 about Circles
Math: Theorem 10 about CirclesMath: Theorem 10 about Circles
Math: Theorem 10 about Circles
 
Coordinate geometry
Coordinate geometryCoordinate geometry
Coordinate geometry
 
Coordinate geometry
Coordinate geometryCoordinate geometry
Coordinate geometry
 

Similar to Basic Boolean Logic

DigitalLogic_BooleanAlgebra_P.pdf
DigitalLogic_BooleanAlgebra_P.pdfDigitalLogic_BooleanAlgebra_P.pdf
DigitalLogic_BooleanAlgebra_P.pdf
k vimal kumar
 
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
KMJ Science Computer
 
presentation on (Boolean rules & laws)
presentation on (Boolean rules & laws)presentation on (Boolean rules & laws)
presentation on (Boolean rules & laws)
kinza arshad
 

Similar to Basic Boolean Logic (20)

DigitalLogic_BooleanAlgebra_P.pdf
DigitalLogic_BooleanAlgebra_P.pdfDigitalLogic_BooleanAlgebra_P.pdf
DigitalLogic_BooleanAlgebra_P.pdf
 
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
 
Chapter2 (1).pptx
Chapter2 (1).pptxChapter2 (1).pptx
Chapter2 (1).pptx
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Boolean logic
Boolean logicBoolean logic
Boolean logic
 
boolean-algebra.pdf
boolean-algebra.pdfboolean-algebra.pdf
boolean-algebra.pdf
 
Boolean Algebra.pdf
Boolean Algebra.pdfBoolean Algebra.pdf
Boolean Algebra.pdf
 
Chapter 2.pdf
Chapter 2.pdfChapter 2.pdf
Chapter 2.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
 
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
 
Lec1 n
Lec1 nLec1 n
Lec1 n
 
13 Boolean Algebra
13 Boolean Algebra13 Boolean Algebra
13 Boolean Algebra
 
Boolean Algebra DLD
Boolean Algebra DLDBoolean Algebra DLD
Boolean Algebra DLD
 
Digital 1 8
Digital 1 8Digital 1 8
Digital 1 8
 
Chapter_11.pdf
Chapter_11.pdfChapter_11.pdf
Chapter_11.pdf
 
Sop and pos
Sop and posSop and pos
Sop and pos
 
07 boolean algebra
07 boolean algebra07 boolean algebra
07 boolean algebra
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
presentation on (Boolean rules & laws)
presentation on (Boolean rules & laws)presentation on (Boolean rules & laws)
presentation on (Boolean rules & laws)
 
Boolean Algebra Terminologies.pdf
Boolean Algebra Terminologies.pdfBoolean Algebra Terminologies.pdf
Boolean Algebra Terminologies.pdf
 

Recently uploaded

Recently uploaded (20)

Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptx
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptx
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
demyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptxdemyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptx
 
Book Review of Run For Your Life Powerpoint
Book Review of Run For Your Life PowerpointBook Review of Run For Your Life Powerpoint
Book Review of Run For Your Life Powerpoint
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
 

Basic Boolean Logic

  • 2.
  • 3.
  • 4.
  • 5. TRUTH TABLE Truth Table is a table which represents all the possible values of logical variables/ statements along with all the possible results of the given combinations of values. With the help of truth table we can know all the possible combinations of values and results of logical statements.
  • 6. Logic variables are combined by the means of logical operators (AND, OR, NOT) to form a Boolean expression. For example X + YZ + XY is a Boolean expression. It is often convenient to write X.Y.Z as XYZ In order to study a Boolean expression, it is useful to construct a table of values for the variables and then evaluate the expression for each possible combination of values. Evaluating Boolean expression
  • 7. NOTE : A truth table of n input variables will have 2n input combinations i.e. 2n rows, for e.g. a 4-variable truth table will have 2n i.e. 16 rows in it. So if we have a 2 input variables say X and Y we have n=2, hence we have 22 =4 rows as following- X Y 0 0 0 1 1 0 1 1
  • 8. In case we have a 3 input variables say X , Y and Z, we have n=3, hence we have 23 =8 rows as following- X Y Z 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1
  • 9.
  • 10.
  • 11.
  • 12. SOLVING SIMPLE QUESTIONS While evaluating Boolean expression there is a precedence order which has to be taken care of always. The order of evaluation of logical operators is – first NOT then AND then OR If there are parenthesis, then the expression in the parenthesis is evaluated first.
  • 13. Qs. Create a truth table for the Boolean expression – F = A.B’+ C Steps- 1. In the given expression, there are three variables – A, B & C 2. Draw three columns for each possible input variable combination and three columns for each of the logical expression given – NOT, OR & AND 3. Since there are three variables, we have 23 = 8 rows
  • 14. A B C Create a three column table, we will add some more columns.
  • 15. 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 Enter appropriate values into the input variables.
  • 16. A B C B’ A.B’ 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 Add columns B’, A.B’, A.B’+ C
  • 17. A B C B’ A.B’ A.B’+C 0 0 0 1 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 1 1 1 0 0 1 1 1 0 Evaluate value for B’
  • 18. A B C B’ A.B’ A.B’+C 0 0 0 1 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 1 1 1 0 0 1 1 1 0 Evaluate value for A . B’
  • 19. A B C B’ A.B’ A.B’+C 0 0 0 1 0 0 0 1 1 0 0 1 0 0 0 0 1 1 0 0 1 0 0 1 1 1 0 1 1 1 1 1 0 0 0 1 1 1 0 0 Put values for A . B’
  • 20. A B C B’ A.B’ A.B’+C 0 0 0 1 0 0 0 1 1 0 0 1 0 0 0 0 1 1 0 0 1 0 0 1 1 1 0 1 1 1 1 1 0 0 0 1 1 1 0 0 Finally, evaluate the value for A . B’+ C
  • 21. A B C B’ A.B’ A.B’+C 0 0 0 1 0 0 0 0 1 1 0 1 0 1 0 0 0 0 0 1 1 0 0 1 1 0 0 1 1 1 1 0 1 1 1 1 1 1 0 0 0 0 1 1 1 0 0 1 Finally, evaluate the value for A . B’+ C
  • 22. A B C B’ A.B’ A.B’+C 0 0 0 1 0 0 0 0 1 1 0 1 0 1 0 0 0 0 0 1 1 0 0 1 1 0 0 1 1 1 1 0 1 1 1 1 1 1 0 0 0 0 1 1 1 0 0 1 Finally, the solution for F = A . B’+ C
  • 23. RULES REVISITED While evaluating Boolean expression the rules which is required to be followed are – a) Evaluate the Boolean expression from left to right -> b) Evaluate the Boolean expression in the parenthesis / brackets first c) Perform all NOT expression d) Perform all AND expression e) Perform all OR expression