SlideShare a Scribd company logo
CH# 03
BOOLEAN ALGEBRA
Saeed Ullah Jan
(PhD – Scholar University of Malakand)
Lecturer in Computer Science
Govt Degree College Wari (Dir Upper)
Email: saeedullah@uom.edu.pk // saeedjan03@gmail.com
Phone: 0944-840488
Course Title: Digital Logic & Computer Design
Program: BS – Computer Science 3rd Semester
 We will cover here in this chapter:
 Boolean algebra
 Axioms
 Useful laws and theorems
 Examples
THE “WHY” SLIDE
 Boolean Algebra
 When we learned numbers like 1, 2, 3, we also then learned
how to add, multiply, etc. with them. Boolean Algebra
covers operations that we can do with 0’s and 1’s.
Computers do these operations ALL THE TIME and they are
basic building blocks of computation inside your computer
program.
 Axioms, laws, theorems
 We need to know some rules about how those 0’s and 1’s
can be operated on together. There are similar axioms to
decimal number algebra, and there are some laws and
theorems that are good for you to use to simplify your
operation.
HOW DOES BOOLEAN ALGEBRA FIT INTO
THE BIG PICTURE?
 It is part of the Combinational Logic topics
(memoryless)
 Different from the Sequential logic topics (can store
information)
 Learning Axioms and theorems of Boolean algebra
 Allows you to design logic functions
 Allows you to know how to combine different logic gates
 Allows you to simplify or optimize on the complex operations
BOOLEAN ALGEBRA
 A Boolean algebra comprises...
 A set of elements B
 Binary operators {+ , •} Boolean sum and
product
 A unary operation { ' } (or { }) example: A’ or A
 …and the following axioms
 1. The set B contains at least two elements {a b} with a  b
 2. Closure: a+b is in B a•b is in B
 3. Commutative: a+b = b+a a•b = b•a
 4. Associative: a+(b+c) = (a+b)+ca•(b•c) = (a•b)•c
 5. Identity: a+0 = a a•1 = a
 6. Distributive: a+(b•c)=(a+b)•(a+c) a•(b+c)=(a•b)+(a•c)
 7. Complementarity: a+a' = 1 a•a' = 0
_ _
DIGITAL (BINARY) LOGIC IS A BOOLEAN
ALGEBRA
 Substitute
 {0, 1} for B
 AND for • Boolean Product. In CSE 321 this was 
 OR for + Boolean Sum. In CSE 321 this was 
 NOT for ‘ Complement. In CSE 321 this was 
 All the axioms hold for binary logic
 Definitions
 Boolean function
 Maps inputs from the set {0,1} to the set {0,1}
 Boolean expression
 An algebraic statement of Boolean variables and operators
X Y Z
0 0 0
0 1 0
1 0 0
1 1 1
X
Y Z
X Y Z
0 0 0
0 1 1
1 0 1
1 1 1
X
Y
Z
LOGIC GATES (AND, OR, NOT) & TRUTH
TABLE
 AND X•Y XY
 OR X+Y
 NOT X X'
X Y
0 1
1 0
X Y
X Y X' Y' X • Y X' •Y' Z
0 0 1 1 0 1 1
0 1 1 0 0 0 0
1 0 0 1 0 0 0
1 1 0 0 1 0 1
X Y X' Z
0 0 1 0
0 1 1 1
1 0 0 0
1 1 0 0
X Y Z
0 0 0
0 1 0
1 0 0
1 1 1
LOGIC FUNCTIONS AND BOOLEAN ALGEBRA
 Any logic function that is expressible as a truth table
can be written in Boolean algebra using +, •, and '
Z=X•Y Z=X'•Y
Z=(X•Y)+(X' •Y')
SOME NOTATION
 Priorities:
 Variables and their complements are
sometimes called literals
A B+C = ((A) B)+C 
TWO KEY CONCEPTS
 Duality (a meta-theorem— a theorem about theorems)
 All Boolean expressions have logical duals
 Any theorem that can be proved is also proved for its dual
 Replace: • with +, + with •, 0 with 1, and 1 with 0
 Leave the variables unchanged
 de Morgan’s Theorem
 Procedure for complementing Boolean functions
 Replace: • with +, + with •, 0 with 1, and 1 with 0
 Replace all variables with their complements
USEFUL LAWS AND THEOREMS
Identity: X + 0 = X Dual: X • 1 = X
Null: X + 1 = 1 Dual: X • 0 = 0
Idempotent: X + X = X Dual: X • X = X
Involution: (X')' = X
Complementarity: X + X' = 1 Dual: X • X' = 0
Commutative: X + Y = Y + X Dual: X • Y = Y • X
Associative: (X+Y)+Z=X+(Y+Z) Dual: (X•Y)•Z=X•(Y•Z)
Distributive: X•(Y+Z)=(X•Y)+(X•Z) Dual: X+(Y•Z)=(X+Y)•(X+Z)
Uniting: X•Y+X•Y'=X Dual: (X+Y)•(X+Y')=X
USEFUL LAWS AND THEOREMS (CON’T)
Absorption: X+X•Y=X Dual: X•(X+Y)=X
Absorption (#2): (X+Y')•Y=X•Y Dual: (X•Y')+Y=X+Y
de Morgan's: (X+Y+...)'=X'•Y'•... Dual: (X•Y•...)'=X'+Y'+...
Duality: (X+Y+...)D=X•Y•... Dual: (X•Y•...)D=X+Y+…
Multiplying & factoring: (X+Y)•(X'+Z)=X•Z+X'•Y
Dual:
X•Y+X'•Z=(X+Z)•(X'+Y)
Consensus: (X•Y)+(Y•Z)+(X'•Z)= X•Y+X'•Z
Dual:
(X+Y)•(Y+Z)•(X'+Z)=(X+Y)•(X'+Z)
PROVING THEOREMS
 Example 1: Prove the uniting theorem--
X•Y+X•Y'=X
Distributive X•Y+X•Y' = X•(Y+Y')
Complementarity = X•(1)
Identity = X
 Example 2: Prove the absorption theorem--
X+X•Y=X
Identity X+X•Y = (X•1)+(X•Y)
Distributive = X•(1+Y)
Null = X•(1)
Identity = X
PROVING THEOREMS
 Example 3: Prove the consensus theorem--
(XY)+(YZ)+(X'Z)= XY+X'Z
Complementarity XY+YZ+X'Z = XY+(X+X')YZ + X'Z
Distributive = XYZ+XY+X'YZ+X'Z
 Use absorption {AB+A=A} with A=XY and B=Z
= XY+X'YZ+X'Z
Rearrange terms = XY+X'ZY+X'Z
 Use absorption {AB+A=A} with A=X'Z and B=Y
XY+YZ+X'Z = XY+X'Z
DE MORGAN’S THEOREM
 Use de Morgan’s Theorem to find complements
 Example: F=(A+B)•(A’+C), so F’=(A’•B’)+(A•C’)
A B C F
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 0
1 1 1 1
A B C F’
0 0 0 1
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 0
ONE MORE EXAMPLE OF LOGIC
SIMPLIFICATION
 Example:
Z = A'BC + AB'C' + AB'C + ABC' + ABC
= A'BC + AB'(C’ + C) + AB(C' + C) distributive
= A'BC + AB’ + AB complementary
= A'BC + A(B' + B) distributive
= A'BC + A complementary
= BC + A absorption #2 Duality
(X •Y')+Y=X+Y with X=BC and
Y=A

More Related Content

What's hot

Pair of linear equation in two variables (sparsh singh)
Pair of linear equation in two variables (sparsh singh)Pair of linear equation in two variables (sparsh singh)
Pair of linear equation in two variables (sparsh singh)Sparsh Singh
 
Indices and laws of logarithms
Indices and laws of logarithmsIndices and laws of logarithms
Indices and laws of logarithms
JJkedst
 
Linear cong slide 2
Linear cong slide 2Linear cong slide 2
Linear cong slide 2Vi Aspe
 
FACTORING CRYPTOSYSTEM MODULI WHEN THE CO-FACTORS DIFFERENCE IS BOUNDED
FACTORING CRYPTOSYSTEM MODULI WHEN THE CO-FACTORS DIFFERENCE IS BOUNDEDFACTORING CRYPTOSYSTEM MODULI WHEN THE CO-FACTORS DIFFERENCE IS BOUNDED
FACTORING CRYPTOSYSTEM MODULI WHEN THE CO-FACTORS DIFFERENCE IS BOUNDED
Zac Darcy
 
Applications of Linear Algebra
Applications of Linear AlgebraApplications of Linear Algebra
Applications of Linear Algebra
Naveenchandra Halemani
 
Properties of addition and multiplication
Properties of addition and multiplicationProperties of addition and multiplication
Properties of addition and multiplicationShiara Agosto
 
Boolean algebra.pptx
Boolean algebra.pptxBoolean algebra.pptx
Boolean algebra.pptx
Mhhh7
 
Lesson 1.3 properties of real numbers
Lesson 1.3   properties of real numbersLesson 1.3   properties of real numbers
Lesson 1.3 properties of real numbers
JohnnyBallecer
 
Indices and logarithms
Indices and logarithmsIndices and logarithms
Indices and logarithmsAwais Khan
 
Unit2.polynomials.algebraicfractions
Unit2.polynomials.algebraicfractionsUnit2.polynomials.algebraicfractions
Unit2.polynomials.algebraicfractions
Mari Carmen Perez Mañez
 
Commutative And Associative Properties
Commutative And  Associative  PropertiesCommutative And  Associative  Properties
Commutative And Associative PropertiesEunice Myers
 
number theory.ppt
number theory.pptnumber theory.ppt
number theory.ppt
Shishu
 
Boolean+logic
Boolean+logicBoolean+logic
Boolean+logic
Bilal Maqbool ツ
 
The binomial expansion
The binomial expansionThe binomial expansion
The binomial expansion
JJkedst
 
Solving systems by substitution
Solving systems by substitutionSolving systems by substitution
Solving systems by substitutionjoannahstevens
 
Quadratic equations class 10
Quadratic equations class 10Quadratic equations class 10
Quadratic equations class 10
AadhiSXA
 
Ncert solutions for class 7 maths chapter 1 integers exercise 1.2
Ncert solutions for class 7 maths chapter 1 integers exercise 1.2Ncert solutions for class 7 maths chapter 1 integers exercise 1.2
Ncert solutions for class 7 maths chapter 1 integers exercise 1.2
jobazine India
 

What's hot (19)

Pair of linear equation in two variables (sparsh singh)
Pair of linear equation in two variables (sparsh singh)Pair of linear equation in two variables (sparsh singh)
Pair of linear equation in two variables (sparsh singh)
 
Indices and laws of logarithms
Indices and laws of logarithmsIndices and laws of logarithms
Indices and laws of logarithms
 
Linear cong slide 2
Linear cong slide 2Linear cong slide 2
Linear cong slide 2
 
FACTORING CRYPTOSYSTEM MODULI WHEN THE CO-FACTORS DIFFERENCE IS BOUNDED
FACTORING CRYPTOSYSTEM MODULI WHEN THE CO-FACTORS DIFFERENCE IS BOUNDEDFACTORING CRYPTOSYSTEM MODULI WHEN THE CO-FACTORS DIFFERENCE IS BOUNDED
FACTORING CRYPTOSYSTEM MODULI WHEN THE CO-FACTORS DIFFERENCE IS BOUNDED
 
Applications of Linear Algebra
Applications of Linear AlgebraApplications of Linear Algebra
Applications of Linear Algebra
 
Properties of addition and multiplication
Properties of addition and multiplicationProperties of addition and multiplication
Properties of addition and multiplication
 
Boolean algebra.pptx
Boolean algebra.pptxBoolean algebra.pptx
Boolean algebra.pptx
 
Lesson 1.3 properties of real numbers
Lesson 1.3   properties of real numbersLesson 1.3   properties of real numbers
Lesson 1.3 properties of real numbers
 
Indices and logarithms
Indices and logarithmsIndices and logarithms
Indices and logarithms
 
Maths
MathsMaths
Maths
 
Unit2.polynomials.algebraicfractions
Unit2.polynomials.algebraicfractionsUnit2.polynomials.algebraicfractions
Unit2.polynomials.algebraicfractions
 
Commutative And Associative Properties
Commutative And  Associative  PropertiesCommutative And  Associative  Properties
Commutative And Associative Properties
 
Ch03 4
Ch03 4Ch03 4
Ch03 4
 
number theory.ppt
number theory.pptnumber theory.ppt
number theory.ppt
 
Boolean+logic
Boolean+logicBoolean+logic
Boolean+logic
 
The binomial expansion
The binomial expansionThe binomial expansion
The binomial expansion
 
Solving systems by substitution
Solving systems by substitutionSolving systems by substitution
Solving systems by substitution
 
Quadratic equations class 10
Quadratic equations class 10Quadratic equations class 10
Quadratic equations class 10
 
Ncert solutions for class 7 maths chapter 1 integers exercise 1.2
Ncert solutions for class 7 maths chapter 1 integers exercise 1.2Ncert solutions for class 7 maths chapter 1 integers exercise 1.2
Ncert solutions for class 7 maths chapter 1 integers exercise 1.2
 

Similar to Boolean algebra

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).ppt
michaelaaron25322
 
Chapter 2.pptx
Chapter 2.pptxChapter 2.pptx
Chapter 2.pptx
AliaaTarek5
 
Boolean Algebra SOP POS_Computer Architecture.pdf
Boolean Algebra SOP POS_Computer Architecture.pdfBoolean Algebra SOP POS_Computer Architecture.pdf
Boolean Algebra SOP POS_Computer Architecture.pdf
SangitaBose2
 
Boolean Algebra DLD
Boolean Algebra DLDBoolean Algebra DLD
Boolean Algebra DLD
Rokonuzzaman Rony
 
sop_pos(DE).pptx
sop_pos(DE).pptxsop_pos(DE).pptx
sop_pos(DE).pptx
HarsimranKaur362773
 
Digital Electronics
Digital ElectronicsDigital Electronics
Digital Electronics
sudarmani rajagopal
 
Introduction-to-Boolean-Algebra.ppt
Introduction-to-Boolean-Algebra.pptIntroduction-to-Boolean-Algebra.ppt
Introduction-to-Boolean-Algebra.ppt
Sanjay446332
 
M3 PPT 22ESC143.docx
M3 PPT 22ESC143.docxM3 PPT 22ESC143.docx
M3 PPT 22ESC143.docx
Jyothi122118
 
M3 PPT 22ESC143.docx
M3 PPT 22ESC143.docxM3 PPT 22ESC143.docx
M3 PPT 22ESC143.docx
Jyothi122118
 
Chapter 4 logic design
Chapter 4   logic designChapter 4   logic design
Chapter 4 logic design
Burhanuddin Mohammad
 
DM2020 boolean algebra
DM2020 boolean algebraDM2020 boolean algebra
DM2020 boolean algebra
Robert Geofroy
 
digital logic circuits, digital component
 digital logic circuits, digital component digital logic circuits, digital component
digital logic circuits, digital component
Rai University
 
B.sc cs-ii-u-1.5 digital logic circuits, digital component
B.sc cs-ii-u-1.5 digital logic circuits, digital componentB.sc cs-ii-u-1.5 digital logic circuits, digital component
B.sc cs-ii-u-1.5 digital logic circuits, digital component
Rai University
 
B sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gatesB sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gates
Rai University
 
Admission for mba
Admission for mbaAdmission for mba
Admission for mba
Edhole.com
 
Bca 2nd sem-u-1.5 digital logic circuits, digital component
Bca 2nd sem-u-1.5 digital logic circuits, digital componentBca 2nd sem-u-1.5 digital logic circuits, digital component
Bca 2nd sem-u-1.5 digital logic circuits, digital component
Rai University
 
13 Boolean Algebra
13 Boolean Algebra13 Boolean Algebra
13 Boolean Algebra
Praveen M Jigajinni
 
IS 151 lecture 4
IS 151   lecture 4IS 151   lecture 4
IS 151 lecture 4
wajanga
 
Boolean Algebra - R.D.Sivakumar
Boolean Algebra - R.D.SivakumarBoolean Algebra - R.D.Sivakumar
Boolean Algebra - R.D.Sivakumar
Sivakumar R D .
 

Similar to Boolean algebra (20)

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
 
Chapter 2.pptx
Chapter 2.pptxChapter 2.pptx
Chapter 2.pptx
 
Boolean Algebra SOP POS_Computer Architecture.pdf
Boolean Algebra SOP POS_Computer Architecture.pdfBoolean Algebra SOP POS_Computer Architecture.pdf
Boolean Algebra SOP POS_Computer Architecture.pdf
 
Boolean Algebra DLD
Boolean Algebra DLDBoolean Algebra DLD
Boolean Algebra DLD
 
sop_pos(DE).pptx
sop_pos(DE).pptxsop_pos(DE).pptx
sop_pos(DE).pptx
 
Digital Electronics
Digital ElectronicsDigital Electronics
Digital Electronics
 
Introduction-to-Boolean-Algebra.ppt
Introduction-to-Boolean-Algebra.pptIntroduction-to-Boolean-Algebra.ppt
Introduction-to-Boolean-Algebra.ppt
 
M3 PPT 22ESC143.docx
M3 PPT 22ESC143.docxM3 PPT 22ESC143.docx
M3 PPT 22ESC143.docx
 
M3 PPT 22ESC143.docx
M3 PPT 22ESC143.docxM3 PPT 22ESC143.docx
M3 PPT 22ESC143.docx
 
Chapter 4 logic design
Chapter 4   logic designChapter 4   logic design
Chapter 4 logic design
 
DM2020 boolean algebra
DM2020 boolean algebraDM2020 boolean algebra
DM2020 boolean algebra
 
digital logic circuits, digital component
 digital logic circuits, digital component digital logic circuits, digital component
digital logic circuits, digital component
 
B.sc cs-ii-u-1.5 digital logic circuits, digital component
B.sc cs-ii-u-1.5 digital logic circuits, digital componentB.sc cs-ii-u-1.5 digital logic circuits, digital component
B.sc cs-ii-u-1.5 digital logic circuits, digital component
 
B sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gatesB sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gates
 
Admission for mba
Admission for mbaAdmission for mba
Admission for mba
 
Bca 2nd sem-u-1.5 digital logic circuits, digital component
Bca 2nd sem-u-1.5 digital logic circuits, digital componentBca 2nd sem-u-1.5 digital logic circuits, digital component
Bca 2nd sem-u-1.5 digital logic circuits, digital component
 
13 Boolean Algebra
13 Boolean Algebra13 Boolean Algebra
13 Boolean Algebra
 
IS 151 lecture 4
IS 151   lecture 4IS 151   lecture 4
IS 151 lecture 4
 
Boolean Algebra - R.D.Sivakumar
Boolean Algebra - R.D.SivakumarBoolean Algebra - R.D.Sivakumar
Boolean Algebra - R.D.Sivakumar
 

Recently uploaded

Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 

Recently uploaded (20)

Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 

Boolean algebra

  • 1. CH# 03 BOOLEAN ALGEBRA Saeed Ullah Jan (PhD – Scholar University of Malakand) Lecturer in Computer Science Govt Degree College Wari (Dir Upper) Email: saeedullah@uom.edu.pk // saeedjan03@gmail.com Phone: 0944-840488 Course Title: Digital Logic & Computer Design Program: BS – Computer Science 3rd Semester  We will cover here in this chapter:  Boolean algebra  Axioms  Useful laws and theorems  Examples
  • 2. THE “WHY” SLIDE  Boolean Algebra  When we learned numbers like 1, 2, 3, we also then learned how to add, multiply, etc. with them. Boolean Algebra covers operations that we can do with 0’s and 1’s. Computers do these operations ALL THE TIME and they are basic building blocks of computation inside your computer program.  Axioms, laws, theorems  We need to know some rules about how those 0’s and 1’s can be operated on together. There are similar axioms to decimal number algebra, and there are some laws and theorems that are good for you to use to simplify your operation.
  • 3. HOW DOES BOOLEAN ALGEBRA FIT INTO THE BIG PICTURE?  It is part of the Combinational Logic topics (memoryless)  Different from the Sequential logic topics (can store information)  Learning Axioms and theorems of Boolean algebra  Allows you to design logic functions  Allows you to know how to combine different logic gates  Allows you to simplify or optimize on the complex operations
  • 4. BOOLEAN ALGEBRA  A Boolean algebra comprises...  A set of elements B  Binary operators {+ , •} Boolean sum and product  A unary operation { ' } (or { }) example: A’ or A  …and the following axioms  1. The set B contains at least two elements {a b} with a  b  2. Closure: a+b is in B a•b is in B  3. Commutative: a+b = b+a a•b = b•a  4. Associative: a+(b+c) = (a+b)+ca•(b•c) = (a•b)•c  5. Identity: a+0 = a a•1 = a  6. Distributive: a+(b•c)=(a+b)•(a+c) a•(b+c)=(a•b)+(a•c)  7. Complementarity: a+a' = 1 a•a' = 0 _ _
  • 5. DIGITAL (BINARY) LOGIC IS A BOOLEAN ALGEBRA  Substitute  {0, 1} for B  AND for • Boolean Product. In CSE 321 this was   OR for + Boolean Sum. In CSE 321 this was   NOT for ‘ Complement. In CSE 321 this was   All the axioms hold for binary logic  Definitions  Boolean function  Maps inputs from the set {0,1} to the set {0,1}  Boolean expression  An algebraic statement of Boolean variables and operators
  • 6. X Y Z 0 0 0 0 1 0 1 0 0 1 1 1 X Y Z X Y Z 0 0 0 0 1 1 1 0 1 1 1 1 X Y Z LOGIC GATES (AND, OR, NOT) & TRUTH TABLE  AND X•Y XY  OR X+Y  NOT X X' X Y 0 1 1 0 X Y
  • 7. X Y X' Y' X • Y X' •Y' Z 0 0 1 1 0 1 1 0 1 1 0 0 0 0 1 0 0 1 0 0 0 1 1 0 0 1 0 1 X Y X' Z 0 0 1 0 0 1 1 1 1 0 0 0 1 1 0 0 X Y Z 0 0 0 0 1 0 1 0 0 1 1 1 LOGIC FUNCTIONS AND BOOLEAN ALGEBRA  Any logic function that is expressible as a truth table can be written in Boolean algebra using +, •, and ' Z=X•Y Z=X'•Y Z=(X•Y)+(X' •Y')
  • 8. SOME NOTATION  Priorities:  Variables and their complements are sometimes called literals A B+C = ((A) B)+C 
  • 9. TWO KEY CONCEPTS  Duality (a meta-theorem— a theorem about theorems)  All Boolean expressions have logical duals  Any theorem that can be proved is also proved for its dual  Replace: • with +, + with •, 0 with 1, and 1 with 0  Leave the variables unchanged  de Morgan’s Theorem  Procedure for complementing Boolean functions  Replace: • with +, + with •, 0 with 1, and 1 with 0  Replace all variables with their complements
  • 10. USEFUL LAWS AND THEOREMS Identity: X + 0 = X Dual: X • 1 = X Null: X + 1 = 1 Dual: X • 0 = 0 Idempotent: X + X = X Dual: X • X = X Involution: (X')' = X Complementarity: X + X' = 1 Dual: X • X' = 0 Commutative: X + Y = Y + X Dual: X • Y = Y • X Associative: (X+Y)+Z=X+(Y+Z) Dual: (X•Y)•Z=X•(Y•Z) Distributive: X•(Y+Z)=(X•Y)+(X•Z) Dual: X+(Y•Z)=(X+Y)•(X+Z) Uniting: X•Y+X•Y'=X Dual: (X+Y)•(X+Y')=X
  • 11. USEFUL LAWS AND THEOREMS (CON’T) Absorption: X+X•Y=X Dual: X•(X+Y)=X Absorption (#2): (X+Y')•Y=X•Y Dual: (X•Y')+Y=X+Y de Morgan's: (X+Y+...)'=X'•Y'•... Dual: (X•Y•...)'=X'+Y'+... Duality: (X+Y+...)D=X•Y•... Dual: (X•Y•...)D=X+Y+… Multiplying & factoring: (X+Y)•(X'+Z)=X•Z+X'•Y Dual: X•Y+X'•Z=(X+Z)•(X'+Y) Consensus: (X•Y)+(Y•Z)+(X'•Z)= X•Y+X'•Z Dual: (X+Y)•(Y+Z)•(X'+Z)=(X+Y)•(X'+Z)
  • 12. PROVING THEOREMS  Example 1: Prove the uniting theorem-- X•Y+X•Y'=X Distributive X•Y+X•Y' = X•(Y+Y') Complementarity = X•(1) Identity = X  Example 2: Prove the absorption theorem-- X+X•Y=X Identity X+X•Y = (X•1)+(X•Y) Distributive = X•(1+Y) Null = X•(1) Identity = X
  • 13. PROVING THEOREMS  Example 3: Prove the consensus theorem-- (XY)+(YZ)+(X'Z)= XY+X'Z Complementarity XY+YZ+X'Z = XY+(X+X')YZ + X'Z Distributive = XYZ+XY+X'YZ+X'Z  Use absorption {AB+A=A} with A=XY and B=Z = XY+X'YZ+X'Z Rearrange terms = XY+X'ZY+X'Z  Use absorption {AB+A=A} with A=X'Z and B=Y XY+YZ+X'Z = XY+X'Z
  • 14. DE MORGAN’S THEOREM  Use de Morgan’s Theorem to find complements  Example: F=(A+B)•(A’+C), so F’=(A’•B’)+(A•C’) A B C F 0 0 0 0 0 0 1 0 0 1 0 1 0 1 1 1 1 0 0 0 1 0 1 1 1 1 0 0 1 1 1 1 A B C F’ 0 0 0 1 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 1 1 1 1 0
  • 15. ONE MORE EXAMPLE OF LOGIC SIMPLIFICATION  Example: Z = A'BC + AB'C' + AB'C + ABC' + ABC = A'BC + AB'(C’ + C) + AB(C' + C) distributive = A'BC + AB’ + AB complementary = A'BC + A(B' + B) distributive = A'BC + A complementary = BC + A absorption #2 Duality (X •Y')+Y=X+Y with X=BC and Y=A