SlideShare a Scribd company logo
1CSE370, Lecture 3
Lecture 3: Boolean Algebra
Logistics
Last lecture --- Numbers
Binary numbers
Base conversion
Number systems for negative numbers
A/D and D/A conversion
Today’s lecture
Boolean algebra
Axioms
Useful laws and theorems
Examples
2CSE370, Lecture 3
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.
3CSE370, Lecture 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
4CSE370, Lecture 3
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)+c a•(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
_ _
5CSE370, Lecture 3
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
6CSE370, Lecture 3
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
7CSE370, Lecture 3
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')
8CSE370, Lecture 3
Some notation
Priorities:
Variables and their complements are sometimes called
literals
A B+ C = ((A) B) + C• •
9CSE370, Lecture 3
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
10CSE370, Lecture 3
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
11CSE370, Lecture 3
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)
12CSE370, Lecture 3
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
13CSE370, Lecture 3
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
14CSE370, Lecture 3
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
15CSE370, Lecture 3
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

Binomial theorem for any index
Binomial theorem for any indexBinomial theorem for any index
Binomial theorem for any index
indu psthakur
 
267 4 determinant and cross product-n
267 4 determinant and cross product-n267 4 determinant and cross product-n
267 4 determinant and cross product-n
math260
 
Number theory lecture (part 1)
Number theory lecture (part 1)Number theory lecture (part 1)
Number theory lecture (part 1)
Aleksandr Yampolskiy
 
Basic galois field arithmatics required for error control codes
Basic galois field arithmatics required for error control codesBasic galois field arithmatics required for error control codes
Basic galois field arithmatics required for error control codes
Madhumita Tamhane
 
Digital Electronics
Digital ElectronicsDigital Electronics
Digital Electronics
sudarmani rajagopal
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
Debarati Das
 
1543 integration in mathematics b
1543 integration in mathematics b1543 integration in mathematics b
1543 integration in mathematics b
Dr Fereidoun Dejahang
 
Commutative and Associative Laws
Commutative and Associative LawsCommutative and Associative Laws
Commutative and Associative Laws
castillosekel
 
Quadratic equation
Quadratic equation Quadratic equation
Quadratic equation
Shivangi Tidke
 
Mathematics 9 Lesson 1-D: System of Equations Involving Quadratic Equations
Mathematics 9 Lesson 1-D: System of Equations Involving Quadratic EquationsMathematics 9 Lesson 1-D: System of Equations Involving Quadratic Equations
Mathematics 9 Lesson 1-D: System of Equations Involving Quadratic Equations
Juan Miguel Palero
 
Solving systems by substitution
Solving systems by substitutionSolving systems by substitution
Solving systems by substitution
joannahstevens
 
Class xii practice questions
Class xii practice questionsClass xii practice questions
Class xii practice questions
indu psthakur
 
Complex Number's Applications
Complex Number's ApplicationsComplex Number's Applications
Complex Number's Applications
Nikhil Deswal
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
gavhays
 
Week 6
Week 6Week 6
Week 6
EasyStudy3
 
Chap4
Chap4Chap4
Chap4
nathanurag
 
Applications of Linear Algebra
Applications of Linear AlgebraApplications of Linear Algebra
Applications of Linear Algebra
Naveenchandra Halemani
 
Daa chapter 3
Daa chapter 3Daa chapter 3
Daa chapter 3
B.Kirron Reddi
 
Understanding the "Chain Rule" for Derivatives by Deriving Your Own Version
Understanding the "Chain Rule" for Derivatives by Deriving Your Own VersionUnderstanding the "Chain Rule" for Derivatives by Deriving Your Own Version
Understanding the "Chain Rule" for Derivatives by Deriving Your Own Version
James Smith
 

What's hot (19)

Binomial theorem for any index
Binomial theorem for any indexBinomial theorem for any index
Binomial theorem for any index
 
267 4 determinant and cross product-n
267 4 determinant and cross product-n267 4 determinant and cross product-n
267 4 determinant and cross product-n
 
Number theory lecture (part 1)
Number theory lecture (part 1)Number theory lecture (part 1)
Number theory lecture (part 1)
 
Basic galois field arithmatics required for error control codes
Basic galois field arithmatics required for error control codesBasic galois field arithmatics required for error control codes
Basic galois field arithmatics required for error control codes
 
Digital Electronics
Digital ElectronicsDigital Electronics
Digital Electronics
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
1543 integration in mathematics b
1543 integration in mathematics b1543 integration in mathematics b
1543 integration in mathematics b
 
Commutative and Associative Laws
Commutative and Associative LawsCommutative and Associative Laws
Commutative and Associative Laws
 
Quadratic equation
Quadratic equation Quadratic equation
Quadratic equation
 
Mathematics 9 Lesson 1-D: System of Equations Involving Quadratic Equations
Mathematics 9 Lesson 1-D: System of Equations Involving Quadratic EquationsMathematics 9 Lesson 1-D: System of Equations Involving Quadratic Equations
Mathematics 9 Lesson 1-D: System of Equations Involving Quadratic Equations
 
Solving systems by substitution
Solving systems by substitutionSolving systems by substitution
Solving systems by substitution
 
Class xii practice questions
Class xii practice questionsClass xii practice questions
Class xii practice questions
 
Complex Number's Applications
Complex Number's ApplicationsComplex Number's Applications
Complex Number's Applications
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
Week 6
Week 6Week 6
Week 6
 
Chap4
Chap4Chap4
Chap4
 
Applications of Linear Algebra
Applications of Linear AlgebraApplications of Linear Algebra
Applications of Linear Algebra
 
Daa chapter 3
Daa chapter 3Daa chapter 3
Daa chapter 3
 
Understanding the "Chain Rule" for Derivatives by Deriving Your Own Version
Understanding the "Chain Rule" for Derivatives by Deriving Your Own VersionUnderstanding the "Chain Rule" for Derivatives by Deriving Your Own Version
Understanding the "Chain Rule" for Derivatives by Deriving Your Own Version
 

Similar to 03 boolean algebra

Boolean algebra And Logic Gates
Boolean algebra And Logic GatesBoolean algebra And Logic Gates
Boolean algebra And Logic Gates
Kumar
 
Chapter 2.pptx
Chapter 2.pptxChapter 2.pptx
Chapter 2.pptx
AliaaTarek5
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
blaircomp2003
 
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
 
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
 
Digital Logic.pptxghuuhhhhhhuu7ffghhhhhg
Digital Logic.pptxghuuhhhhhhuu7ffghhhhhgDigital Logic.pptxghuuhhhhhhuu7ffghhhhhg
Digital Logic.pptxghuuhhhhhhuu7ffghhhhhg
AnujyotiDe
 
sop_pos(DE).pptx
sop_pos(DE).pptxsop_pos(DE).pptx
sop_pos(DE).pptx
HarsimranKaur362773
 
IS 151 lecture 4
IS 151   lecture 4IS 151   lecture 4
IS 151 lecture 4
wajanga
 
DM2020 boolean algebra
DM2020 boolean algebraDM2020 boolean algebra
DM2020 boolean algebra
Robert Geofroy
 
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
 
Ch4.pdf
Ch4.pdfCh4.pdf
Ch4.pdf
SnehSinha6
 
Introduction-to-Boolean-Algebra.ppt
Introduction-to-Boolean-Algebra.pptIntroduction-to-Boolean-Algebra.ppt
Introduction-to-Boolean-Algebra.ppt
Sanjay446332
 
Boolean Algebra DLD
Boolean Algebra DLDBoolean Algebra DLD
Boolean Algebra DLD
Rokonuzzaman Rony
 
Chapter 4 logic design
Chapter 4   logic designChapter 4   logic design
Chapter 4 logic design
Burhanuddin Mohammad
 
Admission for mba
Admission for mbaAdmission for mba
Admission for mba
Edhole.com
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
Ganesh Mummidi
 
555_Spring12_topic06.ppt
555_Spring12_topic06.ppt555_Spring12_topic06.ppt
555_Spring12_topic06.ppt
SnehSinha6
 
Introduction to Python Programming.pptx
Introduction to Python Programming.pptxIntroduction to Python Programming.pptx
Introduction to Python Programming.pptx
Python Homework Help
 

Similar to 03 boolean algebra (20)

Boolean algebra And Logic Gates
Boolean algebra And Logic GatesBoolean algebra And Logic Gates
Boolean algebra And Logic Gates
 
Chapter 2.pptx
Chapter 2.pptxChapter 2.pptx
Chapter 2.pptx
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
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
 
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 Logic.pptxghuuhhhhhhuu7ffghhhhhg
Digital Logic.pptxghuuhhhhhhuu7ffghhhhhgDigital Logic.pptxghuuhhhhhhuu7ffghhhhhg
Digital Logic.pptxghuuhhhhhhuu7ffghhhhhg
 
sop_pos(DE).pptx
sop_pos(DE).pptxsop_pos(DE).pptx
sop_pos(DE).pptx
 
IS 151 lecture 4
IS 151   lecture 4IS 151   lecture 4
IS 151 lecture 4
 
DM2020 boolean algebra
DM2020 boolean algebraDM2020 boolean algebra
DM2020 boolean algebra
 
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
 
Ch4.pdf
Ch4.pdfCh4.pdf
Ch4.pdf
 
Introduction-to-Boolean-Algebra.ppt
Introduction-to-Boolean-Algebra.pptIntroduction-to-Boolean-Algebra.ppt
Introduction-to-Boolean-Algebra.ppt
 
Boolean Algebra DLD
Boolean Algebra DLDBoolean Algebra DLD
Boolean Algebra DLD
 
Chapter 4 logic design
Chapter 4   logic designChapter 4   logic design
Chapter 4 logic design
 
Admission for mba
Admission for mbaAdmission for mba
Admission for mba
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
555_Spring12_topic06.ppt
555_Spring12_topic06.ppt555_Spring12_topic06.ppt
555_Spring12_topic06.ppt
 
Introduction to Python Programming.pptx
Introduction to Python Programming.pptxIntroduction to Python Programming.pptx
Introduction to Python Programming.pptx
 

Recently uploaded

E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
Hornet Dynamics
 
What is Master Data Management by PiLog Group
What is Master Data Management by PiLog GroupWhat is Master Data Management by PiLog Group
What is Master Data Management by PiLog Group
aymanquadri279
 
socradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdfsocradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdf
SOCRadar
 
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CDKuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
rodomar2
 
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, FactsALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
Green Software Development
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
TheSMSPoint
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Crescat
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j
 
Why Choose Odoo 17 Community & How it differs from Odoo 17 Enterprise Edition
Why Choose Odoo 17 Community & How it differs from Odoo 17 Enterprise EditionWhy Choose Odoo 17 Community & How it differs from Odoo 17 Enterprise Edition
Why Choose Odoo 17 Community & How it differs from Odoo 17 Enterprise Edition
Envertis Software Solutions
 
What is Augmented Reality Image Tracking
What is Augmented Reality Image TrackingWhat is Augmented Reality Image Tracking
What is Augmented Reality Image Tracking
pavan998932
 
Using Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query PerformanceUsing Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query Performance
Grant Fritchey
 
Revolutionizing Visual Effects Mastering AI Face Swaps.pdf
Revolutionizing Visual Effects Mastering AI Face Swaps.pdfRevolutionizing Visual Effects Mastering AI Face Swaps.pdf
Revolutionizing Visual Effects Mastering AI Face Swaps.pdf
Undress Baby
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
lorraineandreiamcidl
 
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian CompaniesE-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
Quickdice ERP
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
Neo4j
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
Sven Peters
 
Oracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptxOracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptx
Remote DBA Services
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
Ayan Halder
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
Shane Coughlan
 

Recently uploaded (20)

E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
 
What is Master Data Management by PiLog Group
What is Master Data Management by PiLog GroupWhat is Master Data Management by PiLog Group
What is Master Data Management by PiLog Group
 
socradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdfsocradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdf
 
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CDKuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
 
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, FactsALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
 
Why Choose Odoo 17 Community & How it differs from Odoo 17 Enterprise Edition
Why Choose Odoo 17 Community & How it differs from Odoo 17 Enterprise EditionWhy Choose Odoo 17 Community & How it differs from Odoo 17 Enterprise Edition
Why Choose Odoo 17 Community & How it differs from Odoo 17 Enterprise Edition
 
What is Augmented Reality Image Tracking
What is Augmented Reality Image TrackingWhat is Augmented Reality Image Tracking
What is Augmented Reality Image Tracking
 
Using Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query PerformanceUsing Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query Performance
 
Revolutionizing Visual Effects Mastering AI Face Swaps.pdf
Revolutionizing Visual Effects Mastering AI Face Swaps.pdfRevolutionizing Visual Effects Mastering AI Face Swaps.pdf
Revolutionizing Visual Effects Mastering AI Face Swaps.pdf
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
 
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian CompaniesE-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
 
Oracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptxOracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptx
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
 

03 boolean algebra

  • 1. 1CSE370, Lecture 3 Lecture 3: Boolean Algebra Logistics Last lecture --- Numbers Binary numbers Base conversion Number systems for negative numbers A/D and D/A conversion Today’s lecture Boolean algebra Axioms Useful laws and theorems Examples
  • 2. 2CSE370, Lecture 3 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. 3CSE370, Lecture 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. 4CSE370, Lecture 3 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)+c a•(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. 5CSE370, Lecture 3 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. 6CSE370, Lecture 3 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. 7CSE370, Lecture 3 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. 8CSE370, Lecture 3 Some notation Priorities: Variables and their complements are sometimes called literals A B+ C = ((A) B) + C• •
  • 9. 9CSE370, Lecture 3 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. 10CSE370, Lecture 3 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. 11CSE370, Lecture 3 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. 12CSE370, Lecture 3 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. 13CSE370, Lecture 3 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. 14CSE370, Lecture 3 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. 15CSE370, Lecture 3 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

Editor's Notes

  1. Class rule: Interrupt when you don’t understand why we are doing something
  2. Class rule: Interrupt when you don’t understand why we are doing something