SlideShare a Scribd company logo
1 of 20
Download to read offline
Boolean Algebra
Boolean algebra (named after G. Boole for his work in 1854) is a
mathematical system for specifying and transforming logic functions.
Boolean (switching) algebra: An algebra structure dened on a set
of elements, B, together with two binary operators (denoted + and )
provided the following axioms are satised:
1. Closure with respect to (wrt) + and 
2. Identity elements exist for + and 
3. Commutative wrt + and 
4. Operator + distributes over , and  distributes over +.
5. Every element of B has a complement.
6. B has at least two distinct elements.
Purpose: Studying Boolean algebra to specify the design of digital
systems!
3
Algebric Properties: Axioms 1{3 (by Huntington, 1904)
1. Closure Property: A set S is closed wrt to a binary operator
if and only if (i) for every x y 2 S x y 2 S.
Axiom 1(a): B is closed wrt the operator +
Axiom 1(b): B is closed wrt the operator 
2. Identity Element: A set S is said to have an identity element wrt to
a particular binary operator whenever there exists an element e 2 S
such that for every x 2 S e x = x e = x.
Axiom 2(a): B has an identity element wrt +, denoted by 0
Axiom 2(b): B has an identity element wrt , denoted by 1
3. Commutativity Property: A binary operator dened on a set S is
said to be commutative i for every x y 2 S x y = y x.
Axiom 3(a): B is commutative wrt the operator +
Axiom 3(b): B is commutative wrt the operator 
4
Algebric Properties: Axioms 4{6
4. Distributivity Property: If and  are two binary operators on a set
S, is said to be distributive over  if for all x y z 2 S x (y  z) =
(x y) (x z).
{ Axiom 4(a): The operator is distributive over + Axiom 4(b): The operator
+ is distributive over .
5. Complement Element: For every x 2 B, there exists an element
x0
2 B such that x+x0
= 1 and xx0
= 0. x0
is called the complement
of x.
6. Cardinality Bound: There are at least two elements x y 2 B such
that x 6= y.
Other notes:
{ The Associative Law x + (y +z) = (x +y) + z and x (y z) = (x y) z hold
and can be derived from the above axioms.
{ Axioms 4(b) and 5 are not available in ordinary algebra.
{ Boolean algebra applies to a nite set of elements ordinary algebra applies to
the in nite set of real numbers.
5
Duality and Basic Identities
Duality Property: Every algebraic identity deducible from the previ-
ous axioms remains valid after dual operations.
{ The DUAL of an algebraic expression is formed by interchanging AND ( ) 
!
OR (+) and 0 
! 1, with all previous operation orderings maintained.
{ Exp: x+y = y + x 
! x y = y x x +x0
= 1 
! x x0
= 0.
f(x1 x2 xn 0 1 + )]D = f(x1 x2 xn 1 0 +)
 =  i D = D
Identities of Boolean algebra:
1. x +0 = x 2. x 1 = x
3. x +1 = 1 4. x 0 = 0
5. x +x = x 6. x x = x
7. x +
x = 1 8. x 
x = 0
9. 
x = x
10. x +y = y +x 11. xy = yx Commutative
12. x +(y +z) = (x +y)+z 13 x(yz) = (xy)z Associative
14. x(y +z) = xy +xz 15. x +yz = (x+ y)(x +z) Distributive
16. x +y = 
x 
y 17. x y = 
x + 
y DeMorgan's
18. x +xy = x 19. x(x +y) = x Absorption
20. xy +x
y = x 21. (x +y)(x + 
y) = x
22. x +
xy = x +y 23. x(
x +y) = xy
Operator precedence: parenthese () ! NOT ! AND ! OR.
6
DeMorgan's Law
Truth tables to verify DeMorgan's Law: X +Y = 
X  
Y
A) X
0
0
1
1
X+Y
1
0
0
0
B) X
0
0
1
1
Y
0
1
0
1
X
1
1
0
0
Y
1
0
1
0
X Y
1
0
0
0
X+Y
0
1
1
1
Y
0
1
0
1
DeMorgan's Law can be extended to multiple variables.
{ X1 +X2 +::: +Xn = 
X1 
X2 ::: 
Xn.
{ X1X2 :::Xn = 
X1 + 
X2 +:::+ 
Xn.
7
Algebraic Manipulation to Minimize Literals
Literal: A single variable within a term that may or may not be
complemented.
Minimize # of terms and literals: 
xyz + 
xy
z +xz
F = 
xyz + 
xy
z +xz
= 
xy(z + 
z)+xz Identity 14
= 
xy  1+xz Identity 7
= 
xy +xz Identity 2
# of terms reduced from 3 (
xyz 
xy
z xz) to 2 (
xy xz).
# of literals reduced from 8 (
x y z 
x y 
z x z) to 4 (
x y x z).
F
X
Y
Z
(a) F=XYZ+XYZ+XZ
X
Y
Z
F
(b) F=XY+XZ
8
Consensus Theorem
(notion: A consensus term is a redundant term that can be added or
removed without changing functionality.)
xy + 
xz +yz = xy +
xz
xy +
xz + yz = xy + 
xz +yz(x + 
x)
= xy + 
xz +xyz + 
xyz
= xy +xyz + 
xz + 
xyz
= xy(1+z)+ 
xz(1+y)
= xy + 
xz
Dual: (x +y)(
x +z)(y +z) = (x + y)(
x +z)
Exp: (A+B)(
A +C) = AC + 
AB
(A +B)( 
A +C) = A
A+AC + 
AB +BC
= AC + 
AB +BC
= AC + 
AB
9
Function Complement
Use DeMorgan's Law to complement a function
1. Interchange AND and OR operators (duality operation).
2. Complement each literal.
Applying DeMorgan's Law: F = 
XY 
Z + 
X
YZ

F = 
XY 
Z + 
X
YZ = 
XY 
Z  
X
Y Z
= (X + 
Y +Z)(X +Y + 
Z)
Taking duals and complementing literals: F = 
XY 
Z + 
X
YZ
F = 
XY 
Z + 
X
Y Z
Taking dual: ( 
X +Y + 
Z)( 
X + 
Y +Z)
Complementing literals: (X + 
Y +Z)(X +Y + 
Z) = 
F
10
Function Complement
Example:
F = 
A
B
C 
D + 
AB
C 
D + 
ABD + 
AB 
CD + ABCD +AC 
D + 
BC 
D
(Let x = 
A
C 
D, y = 
ABD)
= x
B +xB +y +y
C + ABCD +AC 
D + 
BC 
D
=
11
What is a Boolean function?
Bn f
;! B B = 1 0 n : # of vars
e.g.
x y
0 0
0 1
1 0
1 1
n = 2
B
2
1
0
f(0 0) = f(1 0) = 1
f = 
x
y+x
y = m0 +m2
or f = (x+
y)(
x+
y) =
M1  M3
e.g. If g(x y z) =
m0 + m1 + m2 + m5 +
m7 ) g = M3  M4  M6
(maxterm) (minterm)
Mi mi x y f
x +y(M0) 
x
y(m0) 0 0 1
x + 
y(M1) 
xy(m1) 0 1 0

x +y(M2) x
y(m2) 1 0 1
x +y(M3) xy(m3) 1 1 0
12
What is a Boolean function?
e.g. n = 3, 23 truth table entries, 23 mts, 23 Mts.
id x y z F 
F
0 0 0 0 0 1
1 0 0 1 1 0
2 0 1 0 0 1
3 0 1 1 0 1
4 1 0 0 1 0
5 1 0 1 1 0
6 1 1 0 1 0
7 1 1 1 1 0
F = m1 +m4 +m5 +m6 +m7 = M0  M2  M3
F = Pm(1 4 5 6 7) = QM(0 2 3)

F = m0 +m2 +m3 = M1  M4  M5  M6  M7
13
Minterm and Maxterm
Minterms: Terms with all variables present, combined with AND.
1. For n variables combined with AND, there are 2n combinations.
Each unique combination is called a minterm.
2. Exp: X  Y  Z, 
abc
d.
Maxterms: Terms with all variables present, combined with OR.
1. For n variables combined with OR, there are 2n combinations.
Each unique combination is called a maxterm.
2. Exp: X +Y +Z, 
a+b +c+ 
d.
Exp: Two-variable terms
Index Minterm Maxterm
0 
x
y x+y
1 
xy x+ 
y
2 x
y 
x+y
3 xy 
x+ 
y
14
Standard Order
Given n variables, we use an n-bit expansion of the index, i, to indicate
normal (true) or complement states for the variables.
Minterms: 1 ) true 0 ) complemented.
{ m0 (minterm 0): 
x 
y  
z m3 (minterm 3): 
x y  z.
Maxterms: 0 ) true 1 ) complemented.
{ M0 (maxterm 0): x +y +z M3 (maxterm 3): x+ 
y +
z.
mi is the complement of Mi (mi = 
Mi).
15
Minterms and Maxterms
Minterms for three variables.
X
0
0
0
0
1
1
1
1
Y
0
0
1
1
0
0
1
1
Z
0
1
0
1
0
1
0
1
Symbol
m0
m1
m2
m3
m4
m5
m6
m7
m0
1
0
0
0
0
0
0
0
m1
0
1
0
0
0
0
0
0
m2
0
0
1
0
0
0
0
0
m3
0
0
0
1
0
0
0
0
m4
0
0
0
0
1
0
0
0
m5
0
0
0
0
0
1
0
0
m6
0
0
0
0
0
0
1
0
m7
0
0
0
0
0
0
0
1
Product
Term
XYZ
XYZ
XYZ
XYZ
XYZ
XYZ
XYZ
XYZ
Maxterms for three variables.
X
0
0
0
0
1
1
1
1
Y
0
0
1
1
0
0
1
1
Z
0
1
0
1
0
1
0
1
Sum Term
X+Y+Z
X+Y+Z
X+Y+Z
X+Y+Z
X+Y+Z
X+Y+Z
X+Y+Z
X+Y+Z
Symbol
M0
M1
M2
M3
M4
M5
M6
M7
M0
0
1
1
1
1
1
1
1
M1
1
0
1
1
1
1
1
1
M2
1
1
0
1
1
1
1
1
M3
1
1
1
0
1
1
1
1
M4
1
1
1
1
0
1
1
1
M5
1
1
1
1
1
0
1
1
M6
1
1
1
1
1
1
0
1
M7
1
1
1
1
1
1
1
0
16
Sum of Minterms
Any Boolean function can be expressed as a sum of minterms.
Exp: F = A+ 
BC.
{ Expand the terms with missing variables and collect terms:
F = A+ 
BC
= A(B + 
B)(C + 
C)+(A + 
A)
BC
= ABC +AB
C +A
BC +A
B 
C + 
A
BC
{ Sum of minterms: F = m7 +m6 +m5 +m4 +m1 =) F(A B C) =
Pm(1 4 5 6 7).
The complement of a function contains those minterms not included
in the original function.
{ F(A B C) = Pm(1 4 5 6 7) =) 
F(A B C) = Pm(0 2 3).
17
Product of Maxterms
Any Boolean function can be expressed as a product of maxterms.
Exp: G = AB + 
A
B.
AB + 
A
B = (AB + 
A)(AB + 
B)
= (
A+AB)(
B +AB)
= (
A+A)(
A +B)(
B +A)(
B +B)
= 1 (
A +B)(
B +A) 1
= (
A+B)(
B +A)
= M2  M1
Product of maxterms: G = M2  M1 =) G(A B) = M(1 2).
The complement of a function contains those maxterms not included
in the original function.
{ G(A B) = M(1 2) =) 
G(A B) = M(0 3).
G(A B) = M(1 2) = Pm(0 3) 
G(A B) = M(0 3) = Pm(1 2).
18
Standard Forms
Canonical forms (Sum-of-Minterms or Product-of-Maxterms) have
one and only one representation.
{ Sum-of-Minterms: xyz + 
xy
z +x
yz, A
B + 
AB.
{ Product-of-Maxterms: (x+y+z)(
x+y+
z)(x+
y+z), (A+
B)( 
A+B)
Standard Sum-of-Products (SOP) form: Equations are written as
AND terms summed with OR operators.
{ SOPs: xyz +
xy
z + 
y, A
B + 
AB
Standard Product-of-Sums (POS) form: Equations are written as
OR terms, all ANDed together.
{ POSs: (x +y +z)(
x +y + 
z)(
y), (A + 
B)(
A +B)
Mixed forms: not SOP or POS
{ (x
y +z)(
x +y), AB 
C +C(
A +B)
19
Canonical Sum of Minterms
Two-level vs. three-level implementation.
{ Exp: F = AB +CD +CE (2-level) F = AB +C(D +E) (3-level)
A
B
C
D
E
A
B
C
D
C
E
(b) AB+C(D+E)
(a) AB+CD+CE
A canonical sum-of-minterms form implies a 2-level network of gates
implementation (1st level: AND 2nd level: OR).
{ Usually not a minimum literal Boolean expression =) more ex-
pensive implementation.
{ Exp: F = ABC + AB 
C + A
BC + A
B
C + 
A
BC = A + 
BC (Why?
Duplicate A
BC!)
{ The canonical sum-of-minterms form had 15 literals and 5 terms
the reduced SOP form had 3 literals and 2 terms.
20
Canonical Product of Maxterms
Two-level product-of-sums implementation.
{ Exp: F = X(
Y +Z)(X +Y + 
Z)
X
Y
Z
X
Y
Z
F
A canonical product-of-maxterms form implies a 2-level network of
gates implementation (1st level: OR 2nd level: AND).
{ Usually not a minimum literal Boolean expression =) more ex-
pensive implementation.
{ Exp: F = (A+B +C)(A+ 
B +C)(A+ 
B + 
C) = (A+C)(A+ 
B)
(Why? Duplicate (A + 
B +C)!)
{ The canonical product-of-maxterms form had 9 literals and 3
terms the reduced POS form had 4 literals and 2 terms.
21
Equivalent Literal Cost Network
Questions:
{ Is there only one minimum cost network?
{ How can we obtain a or the minimum literal expression?
Minimize F(A B C) = P(0 2 3 4 5 7)
F = 
A
B
C + 
AB 
C + 
ABC +A
B 
C +A
BC +ABC
= 
A
B
C + 
AB 
C + 
ABC +ABC +A
B 
C +A
BC
= 
A
C(B + 
B)+BC( 
A +A)+A
B(C + 
C)
= 
A
C +BC +A
B
Pairing F's terms dierently
F = 
A
B
C + 
AB 
C + 
ABC +A
B 
C +A
BC +ABC
= 
A
B
C +A
B
C + 
ABC + 
AB 
C +A
BC +ABC
= 
B 
C(
A+A)+ 
AB(C + 
C) +AC(B + 
B)
= 
B 
C + 
AB +AC
Both have the same numbers of literals and terms!
22

More Related Content

Similar to ESTUDO DE ALGEBRA BOOLEANA PARA ESTUDOS.

Digital Logic.pptxghuuhhhhhhuu7ffghhhhhg
Digital Logic.pptxghuuhhhhhhuu7ffghhhhhgDigital Logic.pptxghuuhhhhhhuu7ffghhhhhg
Digital Logic.pptxghuuhhhhhhuu7ffghhhhhgAnujyotiDe
 
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
 
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
 
2.hyperbolic functions Further Mathematics Zimbabwe Zimsec Cambridge
2.hyperbolic functions  Further Mathematics Zimbabwe Zimsec Cambridge2.hyperbolic functions  Further Mathematics Zimbabwe Zimsec Cambridge
2.hyperbolic functions Further Mathematics Zimbabwe Zimsec Cambridgealproelearning
 
Chapter2 (1).pptx
Chapter2 (1).pptxChapter2 (1).pptx
Chapter2 (1).pptxMitKumar2
 
Las expresiones algebraicas y Factorización de productos notables
Las expresiones algebraicas y Factorización de productos notables Las expresiones algebraicas y Factorización de productos notables
Las expresiones algebraicas y Factorización de productos notables MariannaPatacnMosque
 
Linearprog, Reading Materials for Operational Research
Linearprog, Reading Materials for Operational Research Linearprog, Reading Materials for Operational Research
Linearprog, Reading Materials for Operational Research Derbew Tesfa
 
2nd PUC computer science chapter 2 boolean algebra
2nd PUC computer science chapter 2  boolean algebra 2nd PUC computer science chapter 2  boolean algebra
2nd PUC computer science chapter 2 boolean algebra Aahwini Esware gowda
 
02 combinational logic
02 combinational logic02 combinational logic
02 combinational logicZainab Noor
 
ISI MSQE Entrance Question Paper (2008)
ISI MSQE Entrance Question Paper (2008)ISI MSQE Entrance Question Paper (2008)
ISI MSQE Entrance Question Paper (2008)CrackDSE
 
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
 
ISI MSQE Entrance Question Paper (2013)
ISI MSQE Entrance Question Paper (2013)ISI MSQE Entrance Question Paper (2013)
ISI MSQE Entrance Question Paper (2013)CrackDSE
 
Calculus of variation problems
Calculus of variation   problemsCalculus of variation   problems
Calculus of variation problemsSolo Hermelin
 
01. Functions-Theory & Solved Examples Module-4.pdf
01. Functions-Theory & Solved Examples Module-4.pdf01. Functions-Theory & Solved Examples Module-4.pdf
01. Functions-Theory & Solved Examples Module-4.pdfRajuSingh806014
 
Using Eulers formula, exp(ix)=cos(x)+isin.docx
Using Eulers formula, exp(ix)=cos(x)+isin.docxUsing Eulers formula, exp(ix)=cos(x)+isin.docx
Using Eulers formula, exp(ix)=cos(x)+isin.docxcargillfilberto
 

Similar to ESTUDO DE ALGEBRA BOOLEANA PARA ESTUDOS. (20)

Chapter 2.pptx
Chapter 2.pptxChapter 2.pptx
Chapter 2.pptx
 
Digital Logic.pptxghuuhhhhhhuu7ffghhhhhg
Digital Logic.pptxghuuhhhhhhuu7ffghhhhhgDigital Logic.pptxghuuhhhhhhuu7ffghhhhhg
Digital Logic.pptxghuuhhhhhhuu7ffghhhhhg
 
boolean.pdf
boolean.pdfboolean.pdf
boolean.pdf
 
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
 
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
 
2.hyperbolic functions Further Mathematics Zimbabwe Zimsec Cambridge
2.hyperbolic functions  Further Mathematics Zimbabwe Zimsec Cambridge2.hyperbolic functions  Further Mathematics Zimbabwe Zimsec Cambridge
2.hyperbolic functions Further Mathematics Zimbabwe Zimsec Cambridge
 
Chapter2 (1).pptx
Chapter2 (1).pptxChapter2 (1).pptx
Chapter2 (1).pptx
 
Digital Electronics
Digital ElectronicsDigital Electronics
Digital Electronics
 
Las expresiones algebraicas y Factorización de productos notables
Las expresiones algebraicas y Factorización de productos notables Las expresiones algebraicas y Factorización de productos notables
Las expresiones algebraicas y Factorización de productos notables
 
Linearprog, Reading Materials for Operational Research
Linearprog, Reading Materials for Operational Research Linearprog, Reading Materials for Operational Research
Linearprog, Reading Materials for Operational Research
 
Limits, Continuity & Differentiation (Theory)
Limits, Continuity & Differentiation (Theory)Limits, Continuity & Differentiation (Theory)
Limits, Continuity & Differentiation (Theory)
 
2nd PUC computer science chapter 2 boolean algebra
2nd PUC computer science chapter 2  boolean algebra 2nd PUC computer science chapter 2  boolean algebra
2nd PUC computer science chapter 2 boolean algebra
 
Chapter 4 logic design
Chapter 4   logic designChapter 4   logic design
Chapter 4 logic design
 
02 combinational logic
02 combinational logic02 combinational logic
02 combinational logic
 
ISI MSQE Entrance Question Paper (2008)
ISI MSQE Entrance Question Paper (2008)ISI MSQE Entrance Question Paper (2008)
ISI MSQE Entrance Question Paper (2008)
 
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
 
ISI MSQE Entrance Question Paper (2013)
ISI MSQE Entrance Question Paper (2013)ISI MSQE Entrance Question Paper (2013)
ISI MSQE Entrance Question Paper (2013)
 
Calculus of variation problems
Calculus of variation   problemsCalculus of variation   problems
Calculus of variation problems
 
01. Functions-Theory & Solved Examples Module-4.pdf
01. Functions-Theory & Solved Examples Module-4.pdf01. Functions-Theory & Solved Examples Module-4.pdf
01. Functions-Theory & Solved Examples Module-4.pdf
 
Using Eulers formula, exp(ix)=cos(x)+isin.docx
Using Eulers formula, exp(ix)=cos(x)+isin.docxUsing Eulers formula, exp(ix)=cos(x)+isin.docx
Using Eulers formula, exp(ix)=cos(x)+isin.docx
 

Recently uploaded

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 

Recently uploaded (20)

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 

ESTUDO DE ALGEBRA BOOLEANA PARA ESTUDOS.

  • 1. Boolean Algebra Boolean algebra (named after G. Boole for his work in 1854) is a mathematical system for specifying and transforming logic functions. Boolean (switching) algebra: An algebra structure dened on a set of elements, B, together with two binary operators (denoted + and ) provided the following axioms are satised: 1. Closure with respect to (wrt) + and 2. Identity elements exist for + and 3. Commutative wrt + and 4. Operator + distributes over , and distributes over +. 5. Every element of B has a complement. 6. B has at least two distinct elements. Purpose: Studying Boolean algebra to specify the design of digital systems! 3
  • 2. Algebric Properties: Axioms 1{3 (by Huntington, 1904) 1. Closure Property: A set S is closed wrt to a binary operator if and only if (i) for every x y 2 S x y 2 S. Axiom 1(a): B is closed wrt the operator + Axiom 1(b): B is closed wrt the operator 2. Identity Element: A set S is said to have an identity element wrt to a particular binary operator whenever there exists an element e 2 S such that for every x 2 S e x = x e = x. Axiom 2(a): B has an identity element wrt +, denoted by 0 Axiom 2(b): B has an identity element wrt , denoted by 1 3. Commutativity Property: A binary operator dened on a set S is said to be commutative i for every x y 2 S x y = y x. Axiom 3(a): B is commutative wrt the operator + Axiom 3(b): B is commutative wrt the operator 4
  • 3. Algebric Properties: Axioms 4{6 4. Distributivity Property: If and are two binary operators on a set S, is said to be distributive over if for all x y z 2 S x (y z) = (x y) (x z). { Axiom 4(a): The operator is distributive over + Axiom 4(b): The operator + is distributive over . 5. Complement Element: For every x 2 B, there exists an element x0 2 B such that x+x0 = 1 and xx0 = 0. x0 is called the complement of x. 6. Cardinality Bound: There are at least two elements x y 2 B such that x 6= y. Other notes: { The Associative Law x + (y +z) = (x +y) + z and x (y z) = (x y) z hold and can be derived from the above axioms. { Axioms 4(b) and 5 are not available in ordinary algebra. { Boolean algebra applies to a nite set of elements ordinary algebra applies to the in nite set of real numbers. 5
  • 4. Duality and Basic Identities Duality Property: Every algebraic identity deducible from the previ- ous axioms remains valid after dual operations. { The DUAL of an algebraic expression is formed by interchanging AND ( ) ! OR (+) and 0 ! 1, with all previous operation orderings maintained. { Exp: x+y = y + x ! x y = y x x +x0 = 1 ! x x0 = 0. f(x1 x2 xn 0 1 + )]D = f(x1 x2 xn 1 0 +) = i D = D Identities of Boolean algebra: 1. x +0 = x 2. x 1 = x 3. x +1 = 1 4. x 0 = 0 5. x +x = x 6. x x = x 7. x + x = 1 8. x x = 0 9. x = x 10. x +y = y +x 11. xy = yx Commutative 12. x +(y +z) = (x +y)+z 13 x(yz) = (xy)z Associative 14. x(y +z) = xy +xz 15. x +yz = (x+ y)(x +z) Distributive 16. x +y = x y 17. x y = x + y DeMorgan's 18. x +xy = x 19. x(x +y) = x Absorption 20. xy +x y = x 21. (x +y)(x + y) = x 22. x + xy = x +y 23. x( x +y) = xy Operator precedence: parenthese () ! NOT ! AND ! OR. 6
  • 5. DeMorgan's Law Truth tables to verify DeMorgan's Law: X +Y = X Y A) X 0 0 1 1 X+Y 1 0 0 0 B) X 0 0 1 1 Y 0 1 0 1 X 1 1 0 0 Y 1 0 1 0 X Y 1 0 0 0 X+Y 0 1 1 1 Y 0 1 0 1 DeMorgan's Law can be extended to multiple variables. { X1 +X2 +::: +Xn = X1 X2 ::: Xn. { X1X2 :::Xn = X1 + X2 +:::+ Xn. 7
  • 6. Algebraic Manipulation to Minimize Literals Literal: A single variable within a term that may or may not be complemented. Minimize # of terms and literals: xyz + xy z +xz F = xyz + xy z +xz = xy(z + z)+xz Identity 14 = xy 1+xz Identity 7 = xy +xz Identity 2 # of terms reduced from 3 ( xyz xy z xz) to 2 ( xy xz). # of literals reduced from 8 ( x y z x y z x z) to 4 ( x y x z). F X Y Z (a) F=XYZ+XYZ+XZ X Y Z F (b) F=XY+XZ 8
  • 7. Consensus Theorem (notion: A consensus term is a redundant term that can be added or removed without changing functionality.) xy + xz +yz = xy + xz xy + xz + yz = xy + xz +yz(x + x) = xy + xz +xyz + xyz = xy +xyz + xz + xyz = xy(1+z)+ xz(1+y) = xy + xz Dual: (x +y)( x +z)(y +z) = (x + y)( x +z) Exp: (A+B)( A +C) = AC + AB (A +B)( A +C) = A A+AC + AB +BC = AC + AB +BC = AC + AB 9
  • 8. Function Complement Use DeMorgan's Law to complement a function 1. Interchange AND and OR operators (duality operation). 2. Complement each literal. Applying DeMorgan's Law: F = XY Z + X YZ F = XY Z + X YZ = XY Z X Y Z = (X + Y +Z)(X +Y + Z) Taking duals and complementing literals: F = XY Z + X YZ F = XY Z + X Y Z Taking dual: ( X +Y + Z)( X + Y +Z) Complementing literals: (X + Y +Z)(X +Y + Z) = F 10
  • 9. Function Complement Example: F = A B C D + AB C D + ABD + AB CD + ABCD +AC D + BC D (Let x = A C D, y = ABD) = x B +xB +y +y C + ABCD +AC D + BC D = 11
  • 10. What is a Boolean function? Bn f ;! B B = 1 0 n : # of vars e.g. x y 0 0 0 1 1 0 1 1 n = 2 B 2 1 0 f(0 0) = f(1 0) = 1 f = x y+x y = m0 +m2 or f = (x+ y)( x+ y) = M1 M3 e.g. If g(x y z) = m0 + m1 + m2 + m5 + m7 ) g = M3 M4 M6 (maxterm) (minterm) Mi mi x y f x +y(M0) x y(m0) 0 0 1 x + y(M1) xy(m1) 0 1 0 x +y(M2) x y(m2) 1 0 1 x +y(M3) xy(m3) 1 1 0 12
  • 11. What is a Boolean function? e.g. n = 3, 23 truth table entries, 23 mts, 23 Mts. id x y z F F 0 0 0 0 0 1 1 0 0 1 1 0 2 0 1 0 0 1 3 0 1 1 0 1 4 1 0 0 1 0 5 1 0 1 1 0 6 1 1 0 1 0 7 1 1 1 1 0 F = m1 +m4 +m5 +m6 +m7 = M0 M2 M3 F = Pm(1 4 5 6 7) = QM(0 2 3) F = m0 +m2 +m3 = M1 M4 M5 M6 M7 13
  • 12. Minterm and Maxterm Minterms: Terms with all variables present, combined with AND. 1. For n variables combined with AND, there are 2n combinations. Each unique combination is called a minterm. 2. Exp: X Y Z, abc d. Maxterms: Terms with all variables present, combined with OR. 1. For n variables combined with OR, there are 2n combinations. Each unique combination is called a maxterm. 2. Exp: X +Y +Z, a+b +c+ d. Exp: Two-variable terms Index Minterm Maxterm 0 x y x+y 1 xy x+ y 2 x y x+y 3 xy x+ y 14
  • 13. Standard Order Given n variables, we use an n-bit expansion of the index, i, to indicate normal (true) or complement states for the variables. Minterms: 1 ) true 0 ) complemented. { m0 (minterm 0): x y z m3 (minterm 3): x y z. Maxterms: 0 ) true 1 ) complemented. { M0 (maxterm 0): x +y +z M3 (maxterm 3): x+ y + z. mi is the complement of Mi (mi = Mi). 15
  • 14. Minterms and Maxterms Minterms for three variables. X 0 0 0 0 1 1 1 1 Y 0 0 1 1 0 0 1 1 Z 0 1 0 1 0 1 0 1 Symbol m0 m1 m2 m3 m4 m5 m6 m7 m0 1 0 0 0 0 0 0 0 m1 0 1 0 0 0 0 0 0 m2 0 0 1 0 0 0 0 0 m3 0 0 0 1 0 0 0 0 m4 0 0 0 0 1 0 0 0 m5 0 0 0 0 0 1 0 0 m6 0 0 0 0 0 0 1 0 m7 0 0 0 0 0 0 0 1 Product Term XYZ XYZ XYZ XYZ XYZ XYZ XYZ XYZ Maxterms for three variables. X 0 0 0 0 1 1 1 1 Y 0 0 1 1 0 0 1 1 Z 0 1 0 1 0 1 0 1 Sum Term X+Y+Z X+Y+Z X+Y+Z X+Y+Z X+Y+Z X+Y+Z X+Y+Z X+Y+Z Symbol M0 M1 M2 M3 M4 M5 M6 M7 M0 0 1 1 1 1 1 1 1 M1 1 0 1 1 1 1 1 1 M2 1 1 0 1 1 1 1 1 M3 1 1 1 0 1 1 1 1 M4 1 1 1 1 0 1 1 1 M5 1 1 1 1 1 0 1 1 M6 1 1 1 1 1 1 0 1 M7 1 1 1 1 1 1 1 0 16
  • 15. Sum of Minterms Any Boolean function can be expressed as a sum of minterms. Exp: F = A+ BC. { Expand the terms with missing variables and collect terms: F = A+ BC = A(B + B)(C + C)+(A + A) BC = ABC +AB C +A BC +A B C + A BC { Sum of minterms: F = m7 +m6 +m5 +m4 +m1 =) F(A B C) = Pm(1 4 5 6 7). The complement of a function contains those minterms not included in the original function. { F(A B C) = Pm(1 4 5 6 7) =) F(A B C) = Pm(0 2 3). 17
  • 16. Product of Maxterms Any Boolean function can be expressed as a product of maxterms. Exp: G = AB + A B. AB + A B = (AB + A)(AB + B) = ( A+AB)( B +AB) = ( A+A)( A +B)( B +A)( B +B) = 1 ( A +B)( B +A) 1 = ( A+B)( B +A) = M2 M1 Product of maxterms: G = M2 M1 =) G(A B) = M(1 2). The complement of a function contains those maxterms not included in the original function. { G(A B) = M(1 2) =) G(A B) = M(0 3). G(A B) = M(1 2) = Pm(0 3) G(A B) = M(0 3) = Pm(1 2). 18
  • 17. Standard Forms Canonical forms (Sum-of-Minterms or Product-of-Maxterms) have one and only one representation. { Sum-of-Minterms: xyz + xy z +x yz, A B + AB. { Product-of-Maxterms: (x+y+z)( x+y+ z)(x+ y+z), (A+ B)( A+B) Standard Sum-of-Products (SOP) form: Equations are written as AND terms summed with OR operators. { SOPs: xyz + xy z + y, A B + AB Standard Product-of-Sums (POS) form: Equations are written as OR terms, all ANDed together. { POSs: (x +y +z)( x +y + z)( y), (A + B)( A +B) Mixed forms: not SOP or POS { (x y +z)( x +y), AB C +C( A +B) 19
  • 18. Canonical Sum of Minterms Two-level vs. three-level implementation. { Exp: F = AB +CD +CE (2-level) F = AB +C(D +E) (3-level) A B C D E A B C D C E (b) AB+C(D+E) (a) AB+CD+CE A canonical sum-of-minterms form implies a 2-level network of gates implementation (1st level: AND 2nd level: OR). { Usually not a minimum literal Boolean expression =) more ex- pensive implementation. { Exp: F = ABC + AB C + A BC + A B C + A BC = A + BC (Why? Duplicate A BC!) { The canonical sum-of-minterms form had 15 literals and 5 terms the reduced SOP form had 3 literals and 2 terms. 20
  • 19. Canonical Product of Maxterms Two-level product-of-sums implementation. { Exp: F = X( Y +Z)(X +Y + Z) X Y Z X Y Z F A canonical product-of-maxterms form implies a 2-level network of gates implementation (1st level: OR 2nd level: AND). { Usually not a minimum literal Boolean expression =) more ex- pensive implementation. { Exp: F = (A+B +C)(A+ B +C)(A+ B + C) = (A+C)(A+ B) (Why? Duplicate (A + B +C)!) { The canonical product-of-maxterms form had 9 literals and 3 terms the reduced POS form had 4 literals and 2 terms. 21
  • 20. Equivalent Literal Cost Network Questions: { Is there only one minimum cost network? { How can we obtain a or the minimum literal expression? Minimize F(A B C) = P(0 2 3 4 5 7) F = A B C + AB C + ABC +A B C +A BC +ABC = A B C + AB C + ABC +ABC +A B C +A BC = A C(B + B)+BC( A +A)+A B(C + C) = A C +BC +A B Pairing F's terms dierently F = A B C + AB C + ABC +A B C +A BC +ABC = A B C +A B C + ABC + AB C +A BC +ABC = B C( A+A)+ AB(C + C) +AC(B + B) = B C + AB +AC Both have the same numbers of literals and terms! 22