SlideShare a Scribd company logo
1 of 20
BOOLEAN ALGEBRA
Boolean Algebra
 The basis for Boolean algebra:
 Boolean algebra is the algebra of binary values.
 we refer to these values as 0 and 1
 although we could also refer to them as true and false
 the basic Boolean algebra operations are
 AND, OR, NOT.
Basic Boolean Identities
 As with algebra, there will be Boolean
operations that we will want to simplify
 We apply the following Boolean identities to help
 For instance, in algebra, x = y * (z + 0) + (z * 0) can be
simplified to just x = y * z
Terminology
 Element 0 is called “FALSE”.
 Element 1 is called “TRUE”.
 ‘+’ operation “OR”,‘*’ operation “AND” and ’ operation “NOT”.
 Juxtaposition implies * operation: ab = a * b
 Operator order of precedence is: (), ’, *, +.
a+bc = a+(b*c) ≠ (a+b)*c
ab’ = a(b’) ≠ (a*b)’
 Single Bit Boolean Algebra(1’ = 0 and 0’ = 1)
+ 0 1
0 0 1
1 1 1
* 0 1
0 0 0
1 0 1
Truth Tables
xy = x AND y = x * y x + y = x OR y x bar = NOT x
AND is true only if OR is true if either NOT inverts the bit
both inputs are true inputs are true We will denote x bar as ~X
Boolean Functions and
Expressions
Definition: Let B = {0, 1}. The variable x is called
a Boolean variable if it assumes values only from
B.
A function from Bn, the set {(x1, x2, …, xn) |xiB,
1  i  n}, to B is called a Boolean function of
degree n.
Boolean functions can be represented using
expressions made up from the variables and
Boolean operations.
Boolean Functions and
Expressions
The Boolean expressions in the variables x1,
x2, …, xn are defined recursively as follows:
 0, 1, x1, x2, …, xn are Boolean expressions.
 If E1 and E2 are Boolean expressions, then (-
E1),
(E1E2), and (E1 + E2) are Boolean expressions.
Each Boolean expression represents a Boolean
function. The values of this function are obtained
by substituting 0 and 1 for the variables in the
expression.
Boolean Expressions
 We form Boolean expressions out of Boolean
operations on Boolean variables or Boolean values
 So, like algebraic expressions, we can create more
complex Boolean expressions as we might need
 Consider the expression:
 F = X + ~Y*Z
 What is it’s truth table?
Notice that it is easier to derive the
truth table for the entire expression
by breaking it into subexpressions
So first we determine ~Y
next, ~Y * Z
finally, X + ~Y*Z
Boolean Functions and
Expressions
Example: Give a Boolean expression for the
Boolean function F(x, y) as defined by the
following table:
x y F(x, y)
0 0 0
0 1 1
1 0 0
1 1 0
Possible solution: F(x, y) = (-x)y
Boolean Functions and
Expressions
Another Example: Possible solution I:
F(x, y, z) = -(xz + y)
0
0
1
1
F(x, y, z)
1
0
1
0
z
0
0
1
0
1
0
0
0
y
x
0
0
0
1
1
0
1
0
1
1
1
1
0
1
0
1
Possible solution II:
F(x, y, z) = (-(xz))(-y)
Duality
The dual of a Boolean expression is obtained by
interchanging Boolean sums and Boolean
products and interchanging 0s and 1s.
Examples:
The dual of x(y + z) is x +( yz)
The dual of -x1 + (-y + z) is (-x + 0)((-y)z).
The dual of a Boolean function F represented by a Boolean
expression is the function represented by the dual of this expression.
The dual of a statement S is obtained by interchanging * and +; 0
and 1.
Dual of (a*1)*(0+a’) = 0 is (a+0)+(1*a’) = 1
Dual of any theorem in a Boolean Algebra is also a theorem.
This is called the Principle of Duality.
Principle of Duality
Theorem 1
The complement of x is unique
Proof :
Assume x1' and x2' are both complements of x.
x + x1' = 1, x • x1' = 0, x + x2' = 1, x • x2' = 0
x1' = x1' • 1 1 is the identity for AND
= x1' • (x + x2') substitution, x + x2' = 1
= (x1' • x) + (x1' • x2') AND distributes over OR
= (x • x1') + (x1' • x2') AND is commutative
= 0 + (x1' • x2') substitution, x • x1' = 0
= (x • x2') + (x1' • x2') substitution, x • x2' = 0
= (x2' • x) + (x2' • x1') AND is commutative, twice
= x2' • (x + x1') AND distributes over OR
= x2' • 1 substitution, x + x1' = 1
= x2' 1 is the identity for AND
Thus, any two elements that are the complement of x are equal.
This implies that x' is unique
Theorem 2
x + 1 = 1
Proof:
x + 1 = 1 • (x + 1) 1 is the identity for AND
= (x + x') • (x + 1) Complement, x + x' = 1
= x + (x' • 1) OR distributes over AND
= x + x' 1 is the identity for AND
= 1 Complement, x + x' = 1
Theorem 3
AND's identity is the complement of OR's identity
0' = 1
Proof:
0' = 0 + 0' 0 is the identity for OR
= 1 Complement, x + x' = 1
Theorem 4
Idempotent
x + x = x
Proof:
x + x = (x + x) • 1 1 is the identity for AND
= (x + x) • (x + x') Complement, x + x' = 1
= x + (x • x') OR distributes over AND
= x + 0 Complement, x • x' = 0
= x 0 is the identity for OR
Theorem 5
Involution
(x')' = x
Proof:
Let x' be the complement of x and (x')' be the complement of x'.
x + x' = 1, xx' = 0, x' + (x')' = 1, and x'(x')' = 0
(x')' = (x')' + 0 0 is the identity for OR
= (x')' + xx' Substitution, xx' = 0
= [(x')' + x][(x')' + x'] OR distributes over AND
= [x + (x')'][x' + (x')'] OR is commutative (P3), twice
= [x + (x')'] • 1 Substitution, x' + (x')' = 1
= [x + (x')'][x + x'] Substitution, x + x' = 1
= x + [(x')' • x'] OR distributes over AND
= x + [x' • (x')'] AND is commutative
= x + 0 Substitution, x'(x')' = 0
= x 0 is the identity for OR
Theorem 6
Absorption
x + xy = x
Proof:
x + xy = (x • 1) + xy 1 is the identity for AND
= x(1 + y) AND distributes over OR
= x(y + 1) OR is commutative
= x • 1 x + 1 = 1 (Thm 2-1)
= x 1 is the identity for AND
Theorem 7
x + x'y = x + y
Proof:
x + x'y = (x + x') (x + y) OR distributes over AND
= 1 • (x + y) Complement x + x' = 1
= x + y 1 is the identity for AND
Theorem 8
DeMorgan's Law 1
(x + y)' = x' y'
Proof:
By Theorem 1 (complements are unique) and Postulate P9 (complement), for every x in a Boolean
algebra there is a unique x' such that
x + x' = 1 and x • x' = 0
So it is sufficient to show that x'y' is the complement of x + y. We'll do this by showing that (x + y)
+
(x'y') = 1 and (x + y) • (x'y') = 0
(x + y) + (x'y') = [(x + y) + x'] [(x + y) + y'] OR distributes over AND
= [(y + x) + x'] [(x + y) + y'] OR is commutative
= [y + (x + x')] [x + (y + y')] OR is associative,twice
= (y + 1)(x + 1) Complement, x + x' = 1, twice
= 1 • 1 x + 1 = 1 (Thm 2-1), twice
= 1 Idempotent, x • x = x (Thm 4-2)
Also,
(x + y)(x'y') = (x'y')(x + y) AND is commutative
= [(x'y')x] + [(x'y')y] AND distributes over OR
= [(y'x')x] + [(x'y')y] AND is commutative
= [y'(x'x)] + [x'(y'y)] AND is associative (Thm 8-2),twice
= [y'(xx')] + [x'(yy')] AND is commutative, twice
= [y' • 0] + [x' • 0] Complement, x • x' = 0, twice
= 0 + 0 x • 0 = 0 (Thm 2-2), twice
= 0 Idempotent, x + x = x (Thm 4-1)
Prove x + yz = (x + y)(x + z)
x + yz = (x + y)(x + z)
= xx + xz + xy + yz
= x + xz + xy + yz
= x (1 + z + y) + yz
= x (1) + yz
= x + yz
Prove (x + y) · (x + y') = x
x = (x + y) · (x + y')
= xx + xy + xy' + yy'
= x + xy + xy' + yy'
= x + xy + xy' + 0
= x (1 + y + y')
= x (1)
= x

More Related Content

What's hot

Functions in discrete mathematics
Functions in discrete mathematicsFunctions in discrete mathematics
Functions in discrete mathematicsRachana Pathak
 
Sum of subsets problem by backtracking 
Sum of subsets problem by backtracking Sum of subsets problem by backtracking 
Sum of subsets problem by backtracking Hasanain Alshadoodee
 
Binaty Arithmetic and Binary coding schemes
Binaty Arithmetic and Binary coding schemesBinaty Arithmetic and Binary coding schemes
Binaty Arithmetic and Binary coding schemesDr. Anita Goel
 
11. Hashing - Data Structures using C++ by Varsha Patil
11. Hashing - Data Structures using C++ by Varsha Patil11. Hashing - Data Structures using C++ by Varsha Patil
11. Hashing - Data Structures using C++ by Varsha Patilwidespreadpromotion
 
Gaussian Elimination Method
Gaussian Elimination MethodGaussian Elimination Method
Gaussian Elimination MethodAndi Firdaus
 
Logic simplification sop and pos forms
Logic simplification sop and pos formsLogic simplification sop and pos forms
Logic simplification sop and pos formsManesh T
 
Minterm and maxterm
Minterm and maxtermMinterm and maxterm
Minterm and maxtermparsa.khan64
 
Recursion tree method
Recursion tree methodRecursion tree method
Recursion tree methodRajendran
 
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical MethodsGauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical MethodsJanki Shah
 
how to calclute time complexity of algortihm
how to calclute time complexity of algortihmhow to calclute time complexity of algortihm
how to calclute time complexity of algortihmSajid Marwat
 
Fixed point and floating-point numbers
Fixed point and  floating-point numbersFixed point and  floating-point numbers
Fixed point and floating-point numbersMOHAN MOHAN
 
Applications of stack
Applications of stackApplications of stack
Applications of stackeShikshak
 
Major and Minor Elements of Object Model
Major and Minor Elements of Object ModelMajor and Minor Elements of Object Model
Major and Minor Elements of Object Modelsohailsaif
 

What's hot (20)

Functions in discrete mathematics
Functions in discrete mathematicsFunctions in discrete mathematics
Functions in discrete mathematics
 
Sum of subsets problem by backtracking 
Sum of subsets problem by backtracking Sum of subsets problem by backtracking 
Sum of subsets problem by backtracking 
 
Binaty Arithmetic and Binary coding schemes
Binaty Arithmetic and Binary coding schemesBinaty Arithmetic and Binary coding schemes
Binaty Arithmetic and Binary coding schemes
 
11. Hashing - Data Structures using C++ by Varsha Patil
11. Hashing - Data Structures using C++ by Varsha Patil11. Hashing - Data Structures using C++ by Varsha Patil
11. Hashing - Data Structures using C++ by Varsha Patil
 
Gaussian Elimination Method
Gaussian Elimination MethodGaussian Elimination Method
Gaussian Elimination Method
 
b+ tree
b+ treeb+ tree
b+ tree
 
Logic simplification sop and pos forms
Logic simplification sop and pos formsLogic simplification sop and pos forms
Logic simplification sop and pos forms
 
Cs419 lec10 left recursion and left factoring
Cs419 lec10   left recursion and left factoringCs419 lec10   left recursion and left factoring
Cs419 lec10 left recursion and left factoring
 
Minterm and maxterm
Minterm and maxtermMinterm and maxterm
Minterm and maxterm
 
Recursion tree method
Recursion tree methodRecursion tree method
Recursion tree method
 
Boolean algebra and Logic gates
Boolean algebra and Logic gatesBoolean algebra and Logic gates
Boolean algebra and Logic gates
 
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical MethodsGauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
 
how to calclute time complexity of algortihm
how to calclute time complexity of algortihmhow to calclute time complexity of algortihm
how to calclute time complexity of algortihm
 
Branch & bound
Branch & boundBranch & bound
Branch & bound
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
Bisection method
Bisection methodBisection method
Bisection method
 
Fixed point and floating-point numbers
Fixed point and  floating-point numbersFixed point and  floating-point numbers
Fixed point and floating-point numbers
 
Binary tree
Binary treeBinary tree
Binary tree
 
Applications of stack
Applications of stackApplications of stack
Applications of stack
 
Major and Minor Elements of Object Model
Major and Minor Elements of Object ModelMajor and Minor Elements of Object Model
Major and Minor Elements of Object Model
 

Similar to BOOLEAN ALGEBRA.ppt

18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theoremsarunachalamr16
 
Class 10 Maths Ch Polynomial PPT
Class 10 Maths Ch Polynomial PPTClass 10 Maths Ch Polynomial PPT
Class 10 Maths Ch Polynomial PPTSanjayraj Balasara
 
presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve Mukuldev Khunte
 
ON OPTIMALITY OF THE INDEX OF SUM, PRODUCT, MAXIMUM, AND MINIMUM OF FINITE BA...
ON OPTIMALITY OF THE INDEX OF SUM, PRODUCT, MAXIMUM, AND MINIMUM OF FINITE BA...ON OPTIMALITY OF THE INDEX OF SUM, PRODUCT, MAXIMUM, AND MINIMUM OF FINITE BA...
ON OPTIMALITY OF THE INDEX OF SUM, PRODUCT, MAXIMUM, AND MINIMUM OF FINITE BA...UniversitasGadjahMada
 
DM2020 boolean algebra
DM2020 boolean algebraDM2020 boolean algebra
DM2020 boolean algebraRobert Geofroy
 
Boolean Algebra logic and De Morgan theorem
Boolean Algebra logic and De Morgan theoremBoolean Algebra logic and De Morgan theorem
Boolean Algebra logic and De Morgan theorembalafet
 
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.pdfSangitaBose2
 
Boolean expression org.
Boolean expression org.Boolean expression org.
Boolean expression org.mshoaib15
 
boolean_algebra.pdf for discrete mathematics
boolean_algebra.pdf for discrete mathematicsboolean_algebra.pdf for discrete mathematics
boolean_algebra.pdf for discrete mathematicssomnathmule3
 
Chapter2 (1).pptx
Chapter2 (1).pptxChapter2 (1).pptx
Chapter2 (1).pptxMitKumar2
 
Engineering Mathematics - Total derivatives, chain rule and derivative of imp...
Engineering Mathematics - Total derivatives, chain rule and derivative of imp...Engineering Mathematics - Total derivatives, chain rule and derivative of imp...
Engineering Mathematics - Total derivatives, chain rule and derivative of imp...Jayanshu Gundaniya
 
Lesson 14: Derivatives of Logarithmic and Exponential Functions (slides)
Lesson 14: Derivatives of Logarithmic and Exponential Functions (slides)Lesson 14: Derivatives of Logarithmic and Exponential Functions (slides)
Lesson 14: Derivatives of Logarithmic and Exponential Functions (slides)Matthew Leingang
 

Similar to BOOLEAN ALGEBRA.ppt (20)

boolean algebra
boolean algebraboolean algebra
boolean algebra
 
Chapter 2.pptx
Chapter 2.pptxChapter 2.pptx
Chapter 2.pptx
 
Boolean
BooleanBoolean
Boolean
 
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
 
boolean.pdf
boolean.pdfboolean.pdf
boolean.pdf
 
Class 10 Maths Ch Polynomial PPT
Class 10 Maths Ch Polynomial PPTClass 10 Maths Ch Polynomial PPT
Class 10 Maths Ch Polynomial PPT
 
presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve
 
ON OPTIMALITY OF THE INDEX OF SUM, PRODUCT, MAXIMUM, AND MINIMUM OF FINITE BA...
ON OPTIMALITY OF THE INDEX OF SUM, PRODUCT, MAXIMUM, AND MINIMUM OF FINITE BA...ON OPTIMALITY OF THE INDEX OF SUM, PRODUCT, MAXIMUM, AND MINIMUM OF FINITE BA...
ON OPTIMALITY OF THE INDEX OF SUM, PRODUCT, MAXIMUM, AND MINIMUM OF FINITE BA...
 
DM2020 boolean algebra
DM2020 boolean algebraDM2020 boolean algebra
DM2020 boolean algebra
 
Boolean Algebra logic and De Morgan theorem
Boolean Algebra logic and De Morgan theoremBoolean Algebra logic and De Morgan theorem
Boolean Algebra logic and De Morgan theorem
 
Digital Electronics
Digital ElectronicsDigital Electronics
Digital Electronics
 
Boolean alebra
Boolean alebraBoolean alebra
Boolean alebra
 
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
 
Daa chapter7
Daa chapter7Daa chapter7
Daa chapter7
 
Boolean expression org.
Boolean expression org.Boolean expression org.
Boolean expression org.
 
Chapter 4 logic design
Chapter 4   logic designChapter 4   logic design
Chapter 4 logic design
 
boolean_algebra.pdf for discrete mathematics
boolean_algebra.pdf for discrete mathematicsboolean_algebra.pdf for discrete mathematics
boolean_algebra.pdf for discrete mathematics
 
Chapter2 (1).pptx
Chapter2 (1).pptxChapter2 (1).pptx
Chapter2 (1).pptx
 
Engineering Mathematics - Total derivatives, chain rule and derivative of imp...
Engineering Mathematics - Total derivatives, chain rule and derivative of imp...Engineering Mathematics - Total derivatives, chain rule and derivative of imp...
Engineering Mathematics - Total derivatives, chain rule and derivative of imp...
 
Lesson 14: Derivatives of Logarithmic and Exponential Functions (slides)
Lesson 14: Derivatives of Logarithmic and Exponential Functions (slides)Lesson 14: Derivatives of Logarithmic and Exponential Functions (slides)
Lesson 14: Derivatives of Logarithmic and Exponential Functions (slides)
 

Recently uploaded

Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
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
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
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
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
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
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
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
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
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
 
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
 

Recently uploaded (20)

Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
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
 
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
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
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
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
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
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
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🔝
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
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 🔝✔️✔️
 
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
 

BOOLEAN ALGEBRA.ppt

  • 2. Boolean Algebra  The basis for Boolean algebra:  Boolean algebra is the algebra of binary values.  we refer to these values as 0 and 1  although we could also refer to them as true and false  the basic Boolean algebra operations are  AND, OR, NOT.
  • 3. Basic Boolean Identities  As with algebra, there will be Boolean operations that we will want to simplify  We apply the following Boolean identities to help  For instance, in algebra, x = y * (z + 0) + (z * 0) can be simplified to just x = y * z
  • 4.
  • 5. Terminology  Element 0 is called “FALSE”.  Element 1 is called “TRUE”.  ‘+’ operation “OR”,‘*’ operation “AND” and ’ operation “NOT”.  Juxtaposition implies * operation: ab = a * b  Operator order of precedence is: (), ’, *, +. a+bc = a+(b*c) ≠ (a+b)*c ab’ = a(b’) ≠ (a*b)’  Single Bit Boolean Algebra(1’ = 0 and 0’ = 1) + 0 1 0 0 1 1 1 1 * 0 1 0 0 0 1 0 1
  • 6. Truth Tables xy = x AND y = x * y x + y = x OR y x bar = NOT x AND is true only if OR is true if either NOT inverts the bit both inputs are true inputs are true We will denote x bar as ~X
  • 7. Boolean Functions and Expressions Definition: Let B = {0, 1}. The variable x is called a Boolean variable if it assumes values only from B. A function from Bn, the set {(x1, x2, …, xn) |xiB, 1  i  n}, to B is called a Boolean function of degree n. Boolean functions can be represented using expressions made up from the variables and Boolean operations.
  • 8. Boolean Functions and Expressions The Boolean expressions in the variables x1, x2, …, xn are defined recursively as follows:  0, 1, x1, x2, …, xn are Boolean expressions.  If E1 and E2 are Boolean expressions, then (- E1), (E1E2), and (E1 + E2) are Boolean expressions. Each Boolean expression represents a Boolean function. The values of this function are obtained by substituting 0 and 1 for the variables in the expression.
  • 9. Boolean Expressions  We form Boolean expressions out of Boolean operations on Boolean variables or Boolean values  So, like algebraic expressions, we can create more complex Boolean expressions as we might need  Consider the expression:  F = X + ~Y*Z  What is it’s truth table? Notice that it is easier to derive the truth table for the entire expression by breaking it into subexpressions So first we determine ~Y next, ~Y * Z finally, X + ~Y*Z
  • 10. Boolean Functions and Expressions Example: Give a Boolean expression for the Boolean function F(x, y) as defined by the following table: x y F(x, y) 0 0 0 0 1 1 1 0 0 1 1 0 Possible solution: F(x, y) = (-x)y
  • 11. Boolean Functions and Expressions Another Example: Possible solution I: F(x, y, z) = -(xz + y) 0 0 1 1 F(x, y, z) 1 0 1 0 z 0 0 1 0 1 0 0 0 y x 0 0 0 1 1 0 1 0 1 1 1 1 0 1 0 1 Possible solution II: F(x, y, z) = (-(xz))(-y)
  • 12. Duality The dual of a Boolean expression is obtained by interchanging Boolean sums and Boolean products and interchanging 0s and 1s. Examples: The dual of x(y + z) is x +( yz) The dual of -x1 + (-y + z) is (-x + 0)((-y)z). The dual of a Boolean function F represented by a Boolean expression is the function represented by the dual of this expression.
  • 13. The dual of a statement S is obtained by interchanging * and +; 0 and 1. Dual of (a*1)*(0+a’) = 0 is (a+0)+(1*a’) = 1 Dual of any theorem in a Boolean Algebra is also a theorem. This is called the Principle of Duality. Principle of Duality
  • 14. Theorem 1 The complement of x is unique Proof : Assume x1' and x2' are both complements of x. x + x1' = 1, x • x1' = 0, x + x2' = 1, x • x2' = 0 x1' = x1' • 1 1 is the identity for AND = x1' • (x + x2') substitution, x + x2' = 1 = (x1' • x) + (x1' • x2') AND distributes over OR = (x • x1') + (x1' • x2') AND is commutative = 0 + (x1' • x2') substitution, x • x1' = 0 = (x • x2') + (x1' • x2') substitution, x • x2' = 0 = (x2' • x) + (x2' • x1') AND is commutative, twice = x2' • (x + x1') AND distributes over OR = x2' • 1 substitution, x + x1' = 1 = x2' 1 is the identity for AND Thus, any two elements that are the complement of x are equal. This implies that x' is unique
  • 15. Theorem 2 x + 1 = 1 Proof: x + 1 = 1 • (x + 1) 1 is the identity for AND = (x + x') • (x + 1) Complement, x + x' = 1 = x + (x' • 1) OR distributes over AND = x + x' 1 is the identity for AND = 1 Complement, x + x' = 1 Theorem 3 AND's identity is the complement of OR's identity 0' = 1 Proof: 0' = 0 + 0' 0 is the identity for OR = 1 Complement, x + x' = 1
  • 16. Theorem 4 Idempotent x + x = x Proof: x + x = (x + x) • 1 1 is the identity for AND = (x + x) • (x + x') Complement, x + x' = 1 = x + (x • x') OR distributes over AND = x + 0 Complement, x • x' = 0 = x 0 is the identity for OR
  • 17. Theorem 5 Involution (x')' = x Proof: Let x' be the complement of x and (x')' be the complement of x'. x + x' = 1, xx' = 0, x' + (x')' = 1, and x'(x')' = 0 (x')' = (x')' + 0 0 is the identity for OR = (x')' + xx' Substitution, xx' = 0 = [(x')' + x][(x')' + x'] OR distributes over AND = [x + (x')'][x' + (x')'] OR is commutative (P3), twice = [x + (x')'] • 1 Substitution, x' + (x')' = 1 = [x + (x')'][x + x'] Substitution, x + x' = 1 = x + [(x')' • x'] OR distributes over AND = x + [x' • (x')'] AND is commutative = x + 0 Substitution, x'(x')' = 0 = x 0 is the identity for OR
  • 18. Theorem 6 Absorption x + xy = x Proof: x + xy = (x • 1) + xy 1 is the identity for AND = x(1 + y) AND distributes over OR = x(y + 1) OR is commutative = x • 1 x + 1 = 1 (Thm 2-1) = x 1 is the identity for AND Theorem 7 x + x'y = x + y Proof: x + x'y = (x + x') (x + y) OR distributes over AND = 1 • (x + y) Complement x + x' = 1 = x + y 1 is the identity for AND
  • 19. Theorem 8 DeMorgan's Law 1 (x + y)' = x' y' Proof: By Theorem 1 (complements are unique) and Postulate P9 (complement), for every x in a Boolean algebra there is a unique x' such that x + x' = 1 and x • x' = 0 So it is sufficient to show that x'y' is the complement of x + y. We'll do this by showing that (x + y) + (x'y') = 1 and (x + y) • (x'y') = 0 (x + y) + (x'y') = [(x + y) + x'] [(x + y) + y'] OR distributes over AND = [(y + x) + x'] [(x + y) + y'] OR is commutative = [y + (x + x')] [x + (y + y')] OR is associative,twice = (y + 1)(x + 1) Complement, x + x' = 1, twice = 1 • 1 x + 1 = 1 (Thm 2-1), twice = 1 Idempotent, x • x = x (Thm 4-2) Also, (x + y)(x'y') = (x'y')(x + y) AND is commutative = [(x'y')x] + [(x'y')y] AND distributes over OR = [(y'x')x] + [(x'y')y] AND is commutative = [y'(x'x)] + [x'(y'y)] AND is associative (Thm 8-2),twice = [y'(xx')] + [x'(yy')] AND is commutative, twice = [y' • 0] + [x' • 0] Complement, x • x' = 0, twice = 0 + 0 x • 0 = 0 (Thm 2-2), twice = 0 Idempotent, x + x = x (Thm 4-1)
  • 20. Prove x + yz = (x + y)(x + z) x + yz = (x + y)(x + z) = xx + xz + xy + yz = x + xz + xy + yz = x (1 + z + y) + yz = x (1) + yz = x + yz Prove (x + y) · (x + y') = x x = (x + y) · (x + y') = xx + xy + xy' + yy' = x + xy + xy' + yy' = x + xy + xy' + 0 = x (1 + y + y') = x (1) = x