SlideShare a Scribd company logo
1 of 21
Boolean AlgebraBoolean Algebra
IntroductionIntroduction
 1854:1854: Logical algebraLogical algebra was published bywas published by GeorgeGeorge
BooleBoole  known today as “Boolean Algebra”known today as “Boolean Algebra”
 It’s a convenient way and systematic way ofIt’s a convenient way and systematic way of
expressing and analyzing the operation of logicexpressing and analyzing the operation of logic
circuits.circuits.
 1938:1938: Claude ShannonClaude Shannon was the first to applywas the first to apply
Boole’s work to the analysis and design of logicBoole’s work to the analysis and design of logic
circuits.circuits.
Boolean Operations & ExpressionsBoolean Operations & Expressions
 VariableVariable – a symbol used to represent a logical– a symbol used to represent a logical
quantity.quantity.
 ComplementComplement – the inverse of a variable and is– the inverse of a variable and is
indicated by a bar over the variable.indicated by a bar over the variable.
 LiteralLiteral – a variable or the complement of a– a variable or the complement of a
variable.variable.
Boolean AdditionBoolean Addition
 Boolean addition is equivalent to the OR operationBoolean addition is equivalent to the OR operation
 AA sum termsum term is produced by an OR operation with nois produced by an OR operation with no
AND ops involved.AND ops involved.
 i.e.i.e.
 AA sum termsum term is equal to 1 when one or more of the literals in theis equal to 1 when one or more of the literals in the
term are 1.term are 1.
 AA sum termsum term is equal to 0 only if each of the literals is 0.is equal to 0 only if each of the literals is 0.
0+0 = 0 0+1 = 1 1+0 = 1 1+1 = 1
DCBACBABABA +++++++ ,,,
Boolean MultiplicationBoolean Multiplication
 Boolean multiplication is equivalent to the ANDBoolean multiplication is equivalent to the AND
operationoperation
 AA product termproduct term is produced by an AND operation with nois produced by an AND operation with no
OR ops involved.OR ops involved.
 i.e.i.e.
 AA product termproduct term is equal to 1 only if each of the literals in theis equal to 1 only if each of the literals in the
term is 1.term is 1.
 AA product termproduct term is equal to 0 when one or more of the literals areis equal to 0 when one or more of the literals are
0.0.
0·0 = 0
DBCACABBAAB ,,,
0·1 = 0 1·0 = 0 1·1 = 1
Laws & Rules of Boolean AlgebraLaws & Rules of Boolean Algebra
 The basic laws of Boolean algebra:The basic laws of Boolean algebra:
 TheThe commutativecommutative lawslaws ((กฏการสลับที่กฏการสลับที่))
 TheThe associativeassociative lawslaws ((กฏการจัดกลุ่มกฏการจัดกลุ่ม))
 TheThe distributivedistributive lawslaws ((กฏการกระจายกฏการกระจาย))
Commutative LawsCommutative Laws
 TheThe commutative law of additioncommutative law of addition for two variablesfor two variables
is written as:is written as: A+B = B+AA+B = B+A
 TheThe commutative law of multiplicationcommutative law of multiplication for twofor two
variables is written as:variables is written as: AB = BAAB = BA
A
B
A+B
B
A
B+A≡
A
B
AB
B
A
B+A≡
Associative LawsAssociative Laws
 TheThe associative law of additionassociative law of addition for 3 variables isfor 3 variables is
written as:written as: A+(B+C) = (A+B)+CA+(B+C) = (A+B)+C
 TheThe associative law of multiplicationassociative law of multiplication for 3 variables isfor 3 variables is
written as:written as: A(BC) = (AB)CA(BC) = (AB)C
A
B
A+(B+C)
C
A
B
(A+B)+C
C
A
B
A(BC)
C
A
B
(AB)C
C
≡
≡
B+C
A+B
BC
AB
Distributive LawsDistributive Laws
 TheThe distributive lawdistributive law is written for 3 variables as follows:is written for 3 variables as follows:
A(B+C) = AB + ACA(B+C) = AB + AC
B
C
A
B+C
≡
A
B
C
A
X
X
AB
AC
X=A(B+C) X=AB+AC
Rules of Boolean AlgebraRules of Boolean Algebra
1.6
.5
1.4
00.3
11.2
0.1
=+
=+
=•
=•
=+
=+
AA
AAA
AA
A
A
AA
BCACABA
BABAA
AABA
AA
AA
AAA
+=++
+=+
=+
=
=•
=•
))(.(12
.11
.10
.9
0.8
.7
___________________________________________________________
A, B, and C can represent a single variable or a combination of variables.
DeMorgan’s TheoremsDeMorgan’s Theorems
 DeMorgan’s theorems provide mathematicalDeMorgan’s theorems provide mathematical
verification of:verification of:
 the equivalency of the NAND and negative-ORthe equivalency of the NAND and negative-OR
gatesgates
 the equivalency of the NOR and negative-ANDthe equivalency of the NOR and negative-AND
gates.gates.
DeMorgan’s TheoremsDeMorgan’s Theorems
 The complement of two orThe complement of two or
more ANDed variables ismore ANDed variables is
equivalent to the OR of theequivalent to the OR of the
complements of thecomplements of the
individual variables.individual variables.
 The complement of two orThe complement of two or
more ORed variables ismore ORed variables is
equivalent to the AND of theequivalent to the AND of the
complements of thecomplements of the
individual variables.individual variables.
YXYX +=•
YXYX •=+
NAND Negative-OR
Negative-ANDNOR
DeMorgan’s Theorems (Exercises)DeMorgan’s Theorems (Exercises)
 Apply DeMorgan’s theorems to the expressions:Apply DeMorgan’s theorems to the expressions:
ZYXW
ZYX
ZYX
ZYX
•••
++
++
••
DeMorgan’s Theorems (Exercises)DeMorgan’s Theorems (Exercises)
 Apply DeMorgan’s theorems to the expressions:Apply DeMorgan’s theorems to the expressions:
)(
)(
FEDCBA
EFDCBA
DEFABC
DCBA
+++
++
+
++
Boolean Analysis of Logic CircuitsBoolean Analysis of Logic Circuits
 Boolean algebra provides a concise way toBoolean algebra provides a concise way to
express the operation of a logic circuit formedexpress the operation of a logic circuit formed
by a combination of logic gatesby a combination of logic gates
 so that the output can be determined for variousso that the output can be determined for various
combinations of input values.combinations of input values.
Boolean Expression for a Logic CircuitBoolean Expression for a Logic Circuit
 To derive the Boolean expression for a givenTo derive the Boolean expression for a given
logic circuit, begin at the left-most inputs andlogic circuit, begin at the left-most inputs and
work toward the final output, writing thework toward the final output, writing the
expression for each gate.expression for each gate.
C
D
B
A
CD
B+CD
A(B+CD)
Constructing a Truth Table for aConstructing a Truth Table for a
Logic CircuitLogic Circuit
 Once the Boolean expression for a given logicOnce the Boolean expression for a given logic
circuit has been determined, a truth table thatcircuit has been determined, a truth table that
shows the output for all possible values of theshows the output for all possible values of the
input variables can be developed.input variables can be developed.
 Let’s take the previous circuit as the example:Let’s take the previous circuit as the example:
A(B+CD)A(B+CD)
 There are four variables, hence 16 (2There are four variables, hence 16 (244
) combinations) combinations
of values are possible.of values are possible.
Constructing a Truth Table for aConstructing a Truth Table for a
Logic CircuitLogic Circuit
 Evaluating the expressionEvaluating the expression
 To evaluate the expressionTo evaluate the expression A(B+CD)A(B+CD), first find the, first find the
values of the variables that make the expressionvalues of the variables that make the expression
equal to 1 (using the rules for Boolean add & mult).equal to 1 (using the rules for Boolean add & mult).
 In this case, the expression equals 1 only if A=1 andIn this case, the expression equals 1 only if A=1 and
B+CD=1 becauseB+CD=1 because
A(B+CD) = 1A(B+CD) = 1··1 = 11 = 1
Constructing a Truth Table for aConstructing a Truth Table for a
Logic CircuitLogic Circuit
 Evaluating the expression (cont’)Evaluating the expression (cont’)
 Now, determine whenNow, determine when B+CDB+CD term equals 1.term equals 1.
 The termThe term B+CD=1B+CD=1 if eitherif either B=1B=1 oror CD=1CD=1 or if bothor if both
BB andand CDCD equal 1 becauseequal 1 because
B+CD = 1+0 = 1B+CD = 1+0 = 1
B+CD = 0+1 = 1B+CD = 0+1 = 1
B+CD = 1+1 = 1B+CD = 1+1 = 1
 The termThe term CD=1CD=1 only ifonly if C=1C=1 andand D=1D=1
Constructing a Truth Table for aConstructing a Truth Table for a
Logic CircuitLogic Circuit
 Evaluating the expression (cont’)Evaluating the expression (cont’)
 Summary:Summary:
 A(B+CD)=1A(B+CD)=1
 WhenWhen A=1A=1 andand B=1B=1 regardless of the values ofregardless of the values of CC andand DD
 When A=1When A=1 andand C=1C=1 andand D=1D=1 regardless of the value ofregardless of the value of BB
 The expressionThe expression A(B+CD)=0A(B+CD)=0 for all other valuefor all other value
combinations of the variables.combinations of the variables.
Constructing a Truth Table for aConstructing a Truth Table for a
Logic CircuitLogic Circuit
 Putting the results inPutting the results in
truth table formattruth table format
INPUTSINPUTS OUTPUTOUTPUT
AA BB CC DD A(B+CD)A(B+CD)
00 00 00 00
00 00 00 11
00 00 11 00
00 00 11 11
00 11 00 00
00 11 00 11
00 11 11 00
00 11 11 11
11 00 00 00
11 00 00 11
11 00 11 00
11 00 11 11
11 11 00 00
11 11 00 11
11 11 11 00
11 11 11 11
INPUTSINPUTS OUTPUTOUTPUT
AA BB CC DD A(B+CD)A(B+CD)
00 00 00 00
00 00 00 11
00 00 11 00
00 00 11 11
00 11 00 00
00 11 00 11
00 11 11 00
00 11 11 11
11 00 00 00
11 00 00 11
11 00 11 00
11 00 11 11
11 11 00 00 11
11 11 00 11 11
11 11 11 00 11
11 11 11 11 11
When A=1 and
B=1 regardless
of the values of
C and D
When A=1 and C=1
and D=1 regardless of
the value of B
A(B+CD)=1
INPUTSINPUTS OUTPUTOUTPUT
AA BB CC DD A(B+CD)A(B+CD)
00 00 00 00
00 00 00 11
00 00 11 00
00 00 11 11
00 11 00 00
00 11 00 11
00 11 11 00
00 11 11 11
11 00 00 00
11 00 00 11
11 00 11 00
11 00 11 11 11
11 11 00 00 11
11 11 00 11 11
11 11 11 00 11
11 11 11 11 11
INPUTSINPUTS OUTPUTOUTPUT
AA BB CC DD A(B+CD)A(B+CD)
00 00 00 00 00
00 00 00 11 00
00 00 11 00 00
00 00 11 11 00
00 11 00 00 00
00 11 00 11 00
00 11 11 00 00
00 11 11 11 00
11 00 00 00 00
11 00 00 11 00
11 00 11 00 00
11 00 11 11 11
11 11 00 00 11
11 11 00 11 11
11 11 11 00 11
11 11 11 11 11

More Related Content

What's hot

BCA_Semester-II-Discrete Mathematics_unit-iii_Lattices and boolean algebra
BCA_Semester-II-Discrete Mathematics_unit-iii_Lattices and boolean algebraBCA_Semester-II-Discrete Mathematics_unit-iii_Lattices and boolean algebra
BCA_Semester-II-Discrete Mathematics_unit-iii_Lattices and boolean algebraRai University
 
Boolean algebra And Logic Gates
Boolean algebra And Logic GatesBoolean algebra And Logic Gates
Boolean algebra And Logic GatesKumar
 
simplification of boolean algebra
simplification of boolean algebrasimplification of boolean algebra
simplification of boolean algebramayannpolisticoLNU
 
FYBSC IT Digital Electronics Unit II Chapter I Boolean Algebra and Logic Gates
FYBSC IT Digital Electronics Unit II Chapter I Boolean Algebra and Logic GatesFYBSC IT Digital Electronics Unit II Chapter I Boolean Algebra and Logic Gates
FYBSC IT Digital Electronics Unit II Chapter I Boolean Algebra and Logic GatesArti Parab Academics
 
Basic theorems and properties of boolean algebra
Basic theorems and properties of boolean algebraBasic theorems and properties of boolean algebra
Basic theorems and properties of boolean algebraHanu Kavi
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebramdaglis
 
Boolean algebra simplification and combination circuits
Boolean algebra simplification and combination circuitsBoolean algebra simplification and combination circuits
Boolean algebra simplification and combination circuitsJaipal Dhobale
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebraGagan Deep
 
Chapter 03 Boolean Algebra and Combinational Logic
Chapter 03 Boolean Algebra and Combinational LogicChapter 03 Boolean Algebra and Combinational Logic
Chapter 03 Boolean Algebra and Combinational LogicSSE_AndyLi
 
Computer Architecture & Organization
Computer Architecture & OrganizationComputer Architecture & Organization
Computer Architecture & OrganizationNANDINI SHARMA
 
Subject seminar boolean algebra by :-shivanshu
Subject seminar  boolean algebra  by :-shivanshuSubject seminar  boolean algebra  by :-shivanshu
Subject seminar boolean algebra by :-shivanshuShivanshu Dixit
 

What's hot (20)

boolean algebra
boolean algebraboolean algebra
boolean algebra
 
BCA_Semester-II-Discrete Mathematics_unit-iii_Lattices and boolean algebra
BCA_Semester-II-Discrete Mathematics_unit-iii_Lattices and boolean algebraBCA_Semester-II-Discrete Mathematics_unit-iii_Lattices and boolean algebra
BCA_Semester-II-Discrete Mathematics_unit-iii_Lattices and boolean algebra
 
Boolean algebra And Logic Gates
Boolean algebra And Logic GatesBoolean algebra And Logic Gates
Boolean algebra And Logic Gates
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Boolean Algebra DLD
Boolean Algebra DLDBoolean Algebra DLD
Boolean Algebra DLD
 
Theorems in DE
Theorems in DETheorems in DE
Theorems in DE
 
simplification of boolean algebra
simplification of boolean algebrasimplification of boolean algebra
simplification of boolean algebra
 
FYBSC IT Digital Electronics Unit II Chapter I Boolean Algebra and Logic Gates
FYBSC IT Digital Electronics Unit II Chapter I Boolean Algebra and Logic GatesFYBSC IT Digital Electronics Unit II Chapter I Boolean Algebra and Logic Gates
FYBSC IT Digital Electronics Unit II Chapter I Boolean Algebra and Logic Gates
 
Boolean algebra and Logic gates
Boolean algebra and Logic gatesBoolean algebra and Logic gates
Boolean algebra and Logic gates
 
Basic theorems and properties of boolean algebra
Basic theorems and properties of boolean algebraBasic theorems and properties of boolean algebra
Basic theorems and properties of boolean algebra
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Digital logic mohammed salim ch4
Digital logic mohammed salim ch4Digital logic mohammed salim ch4
Digital logic mohammed salim ch4
 
Boolean algebra simplification and combination circuits
Boolean algebra simplification and combination circuitsBoolean algebra simplification and combination circuits
Boolean algebra simplification and combination circuits
 
B sc ii sem unit 2(b) ba
B sc ii sem unit 2(b) baB sc ii sem unit 2(b) ba
B sc ii sem unit 2(b) ba
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Chapter 03 Boolean Algebra and Combinational Logic
Chapter 03 Boolean Algebra and Combinational LogicChapter 03 Boolean Algebra and Combinational Logic
Chapter 03 Boolean Algebra and Combinational Logic
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
Computer Architecture & Organization
Computer Architecture & OrganizationComputer Architecture & Organization
Computer Architecture & Organization
 
Subject seminar boolean algebra by :-shivanshu
Subject seminar  boolean algebra  by :-shivanshuSubject seminar  boolean algebra  by :-shivanshu
Subject seminar boolean algebra by :-shivanshu
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 

Viewers also liked

Boolean algebra
Boolean algebraBoolean algebra
Boolean algebraRania H
 
Jif 317 2015/2016 webex 1 slides
Jif 317 2015/2016 webex 1 slidesJif 317 2015/2016 webex 1 slides
Jif 317 2015/2016 webex 1 slidesKurenai Ryu
 
Material Science SNU korea chapter 1
Material Science SNU korea chapter 1Material Science SNU korea chapter 1
Material Science SNU korea chapter 1Kurenai Ryu
 
Jif 315 lesson 1 Laplace and fourier transform
Jif 315 lesson 1 Laplace and fourier transformJif 315 lesson 1 Laplace and fourier transform
Jif 315 lesson 1 Laplace and fourier transformKurenai Ryu
 
BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE Tamim Tanvir
 
Number system utm notes
Number system utm notesNumber system utm notes
Number system utm notesKurenai Ryu
 
De Morgan Theorem B[1]
De Morgan Theorem B[1]De Morgan Theorem B[1]
De Morgan Theorem B[1]Mr. Bullerman
 
BOOLEAN ALGEBRA
BOOLEAN ALGEBRA BOOLEAN ALGEBRA
BOOLEAN ALGEBRA Shaik Aman
 

Viewers also liked (11)

Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Multsim pertama
Multsim pertamaMultsim pertama
Multsim pertama
 
Jif 317 2015/2016 webex 1 slides
Jif 317 2015/2016 webex 1 slidesJif 317 2015/2016 webex 1 slides
Jif 317 2015/2016 webex 1 slides
 
Material Science SNU korea chapter 1
Material Science SNU korea chapter 1Material Science SNU korea chapter 1
Material Science SNU korea chapter 1
 
Boolean algebra
 Boolean algebra Boolean algebra
Boolean algebra
 
Jif 315 lesson 1 Laplace and fourier transform
Jif 315 lesson 1 Laplace and fourier transformJif 315 lesson 1 Laplace and fourier transform
Jif 315 lesson 1 Laplace and fourier transform
 
BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE
 
Number system utm notes
Number system utm notesNumber system utm notes
Number system utm notes
 
De Morgan Theorem B[1]
De Morgan Theorem B[1]De Morgan Theorem B[1]
De Morgan Theorem B[1]
 
BOOLEAN ALGEBRA
BOOLEAN ALGEBRA BOOLEAN ALGEBRA
BOOLEAN ALGEBRA
 

Similar to 07 boolean algebra

Digital logic design lecture 06
Digital logic design   lecture 06 Digital logic design   lecture 06
Digital logic design lecture 06 FarhatUllah27
 
Boolean Algebra - R.D.Sivakumar
Boolean Algebra - R.D.SivakumarBoolean Algebra - R.D.Sivakumar
Boolean Algebra - R.D.SivakumarSivakumar R D .
 
Lecture 05-Logic expression and Boolean Algebra.pptx
Lecture 05-Logic expression and Boolean Algebra.pptxLecture 05-Logic expression and Boolean Algebra.pptx
Lecture 05-Logic expression and Boolean Algebra.pptxWilliamJosephat1
 
Gerbang Logika Dasar
Gerbang Logika DasarGerbang Logika Dasar
Gerbang Logika DasarArif Hakim
 
NOTA TOPIK 2_SSK20152 (3).pptx
NOTA TOPIK 2_SSK20152 (3).pptxNOTA TOPIK 2_SSK20152 (3).pptx
NOTA TOPIK 2_SSK20152 (3).pptxeedayaya1
 
Boolean Algebra.pdf
Boolean Algebra.pdfBoolean Algebra.pdf
Boolean Algebra.pdfssusere02873
 
Digital electronics lesson 2
Digital electronics lesson 2Digital electronics lesson 2
Digital electronics lesson 2Sukriti Dhang
 
Digital electronics
Digital electronicsDigital electronics
Digital electronicsnanishajieha
 
Digital logic design lecture 07
Digital logic design   lecture 07 Digital logic design   lecture 07
Digital logic design lecture 07 FarhatUllah27
 
Unit 2 Boolean Algebra and Logic Gates.pdf
Unit 2 Boolean Algebra and Logic Gates.pdfUnit 2 Boolean Algebra and Logic Gates.pdf
Unit 2 Boolean Algebra and Logic Gates.pdfShirazHusain4
 
IS 151 Lecture 5
IS 151 Lecture 5IS 151 Lecture 5
IS 151 Lecture 5wajanga
 
Boolen Algebra Lecture Notes.pdf
Boolen Algebra Lecture Notes.pdfBoolen Algebra Lecture Notes.pdf
Boolen Algebra Lecture Notes.pdfnyamuonatinashe
 
Boolean variables r010
Boolean variables   r010Boolean variables   r010
Boolean variables r010arunachalamr16
 
discrete_BOOLEAN ALGEBRA
discrete_BOOLEAN ALGEBRAdiscrete_BOOLEAN ALGEBRA
discrete_BOOLEAN ALGEBRAZULFIQ RASHID
 
IS 151 lecture 4
IS 151   lecture 4IS 151   lecture 4
IS 151 lecture 4wajanga
 

Similar to 07 boolean algebra (20)

Digital logic design lecture 06
Digital logic design   lecture 06 Digital logic design   lecture 06
Digital logic design lecture 06
 
9402730.ppt
9402730.ppt9402730.ppt
9402730.ppt
 
Boolean Algebra - R.D.Sivakumar
Boolean Algebra - R.D.SivakumarBoolean Algebra - R.D.Sivakumar
Boolean Algebra - R.D.Sivakumar
 
Lecture 05-Logic expression and Boolean Algebra.pptx
Lecture 05-Logic expression and Boolean Algebra.pptxLecture 05-Logic expression and Boolean Algebra.pptx
Lecture 05-Logic expression and Boolean Algebra.pptx
 
PPT 1.pptx
PPT 1.pptxPPT 1.pptx
PPT 1.pptx
 
Dld (1)
Dld (1)Dld (1)
Dld (1)
 
Gerbang Logika Dasar
Gerbang Logika DasarGerbang Logika Dasar
Gerbang Logika Dasar
 
14 Lec11 2003
14 Lec11 200314 Lec11 2003
14 Lec11 2003
 
NOTA TOPIK 2_SSK20152 (3).pptx
NOTA TOPIK 2_SSK20152 (3).pptxNOTA TOPIK 2_SSK20152 (3).pptx
NOTA TOPIK 2_SSK20152 (3).pptx
 
Boolean Algebra.pdf
Boolean Algebra.pdfBoolean Algebra.pdf
Boolean Algebra.pdf
 
Digital electronics lesson 2
Digital electronics lesson 2Digital electronics lesson 2
Digital electronics lesson 2
 
Digital electronics
Digital electronicsDigital electronics
Digital electronics
 
Digital logic design lecture 07
Digital logic design   lecture 07 Digital logic design   lecture 07
Digital logic design lecture 07
 
Unit 2 Boolean Algebra and Logic Gates.pdf
Unit 2 Boolean Algebra and Logic Gates.pdfUnit 2 Boolean Algebra and Logic Gates.pdf
Unit 2 Boolean Algebra and Logic Gates.pdf
 
IS 151 Lecture 5
IS 151 Lecture 5IS 151 Lecture 5
IS 151 Lecture 5
 
Boolen Algebra Lecture Notes.pdf
Boolen Algebra Lecture Notes.pdfBoolen Algebra Lecture Notes.pdf
Boolen Algebra Lecture Notes.pdf
 
Boolean variables r010
Boolean variables   r010Boolean variables   r010
Boolean variables r010
 
Lec1 n
Lec1 nLec1 n
Lec1 n
 
discrete_BOOLEAN ALGEBRA
discrete_BOOLEAN ALGEBRAdiscrete_BOOLEAN ALGEBRA
discrete_BOOLEAN ALGEBRA
 
IS 151 lecture 4
IS 151   lecture 4IS 151   lecture 4
IS 151 lecture 4
 

More from Sohail Akbar Goheer

GEOSERVER - DOWNLOAD AND INSTALLATION STEP BY STEP TUTORIAL
GEOSERVER - DOWNLOAD AND INSTALLATION STEP BY STEP TUTORIALGEOSERVER - DOWNLOAD AND INSTALLATION STEP BY STEP TUTORIAL
GEOSERVER - DOWNLOAD AND INSTALLATION STEP BY STEP TUTORIALSohail Akbar Goheer
 
Building a Spatial Database in PostgreSQL
Building a Spatial Database in PostgreSQLBuilding a Spatial Database in PostgreSQL
Building a Spatial Database in PostgreSQLSohail Akbar Goheer
 
CV-GIS-Job-Muhammad Sohail Akbar
CV-GIS-Job-Muhammad Sohail AkbarCV-GIS-Job-Muhammad Sohail Akbar
CV-GIS-Job-Muhammad Sohail AkbarSohail Akbar Goheer
 

More from Sohail Akbar Goheer (6)

GIS Dictionary
GIS Dictionary GIS Dictionary
GIS Dictionary
 
GEOSERVER - DOWNLOAD AND INSTALLATION STEP BY STEP TUTORIAL
GEOSERVER - DOWNLOAD AND INSTALLATION STEP BY STEP TUTORIALGEOSERVER - DOWNLOAD AND INSTALLATION STEP BY STEP TUTORIAL
GEOSERVER - DOWNLOAD AND INSTALLATION STEP BY STEP TUTORIAL
 
Cv for mis and gis position
Cv for mis and gis positionCv for mis and gis position
Cv for mis and gis position
 
Scope of gis in pakistan
Scope of gis in pakistan Scope of gis in pakistan
Scope of gis in pakistan
 
Building a Spatial Database in PostgreSQL
Building a Spatial Database in PostgreSQLBuilding a Spatial Database in PostgreSQL
Building a Spatial Database in PostgreSQL
 
CV-GIS-Job-Muhammad Sohail Akbar
CV-GIS-Job-Muhammad Sohail AkbarCV-GIS-Job-Muhammad Sohail Akbar
CV-GIS-Job-Muhammad Sohail Akbar
 

Recently uploaded

APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 

Recently uploaded (20)

APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 

07 boolean algebra

  • 2. IntroductionIntroduction  1854:1854: Logical algebraLogical algebra was published bywas published by GeorgeGeorge BooleBoole  known today as “Boolean Algebra”known today as “Boolean Algebra”  It’s a convenient way and systematic way ofIt’s a convenient way and systematic way of expressing and analyzing the operation of logicexpressing and analyzing the operation of logic circuits.circuits.  1938:1938: Claude ShannonClaude Shannon was the first to applywas the first to apply Boole’s work to the analysis and design of logicBoole’s work to the analysis and design of logic circuits.circuits.
  • 3. Boolean Operations & ExpressionsBoolean Operations & Expressions  VariableVariable – a symbol used to represent a logical– a symbol used to represent a logical quantity.quantity.  ComplementComplement – the inverse of a variable and is– the inverse of a variable and is indicated by a bar over the variable.indicated by a bar over the variable.  LiteralLiteral – a variable or the complement of a– a variable or the complement of a variable.variable.
  • 4. Boolean AdditionBoolean Addition  Boolean addition is equivalent to the OR operationBoolean addition is equivalent to the OR operation  AA sum termsum term is produced by an OR operation with nois produced by an OR operation with no AND ops involved.AND ops involved.  i.e.i.e.  AA sum termsum term is equal to 1 when one or more of the literals in theis equal to 1 when one or more of the literals in the term are 1.term are 1.  AA sum termsum term is equal to 0 only if each of the literals is 0.is equal to 0 only if each of the literals is 0. 0+0 = 0 0+1 = 1 1+0 = 1 1+1 = 1 DCBACBABABA +++++++ ,,,
  • 5. Boolean MultiplicationBoolean Multiplication  Boolean multiplication is equivalent to the ANDBoolean multiplication is equivalent to the AND operationoperation  AA product termproduct term is produced by an AND operation with nois produced by an AND operation with no OR ops involved.OR ops involved.  i.e.i.e.  AA product termproduct term is equal to 1 only if each of the literals in theis equal to 1 only if each of the literals in the term is 1.term is 1.  AA product termproduct term is equal to 0 when one or more of the literals areis equal to 0 when one or more of the literals are 0.0. 0·0 = 0 DBCACABBAAB ,,, 0·1 = 0 1·0 = 0 1·1 = 1
  • 6. Laws & Rules of Boolean AlgebraLaws & Rules of Boolean Algebra  The basic laws of Boolean algebra:The basic laws of Boolean algebra:  TheThe commutativecommutative lawslaws ((กฏการสลับที่กฏการสลับที่))  TheThe associativeassociative lawslaws ((กฏการจัดกลุ่มกฏการจัดกลุ่ม))  TheThe distributivedistributive lawslaws ((กฏการกระจายกฏการกระจาย))
  • 7. Commutative LawsCommutative Laws  TheThe commutative law of additioncommutative law of addition for two variablesfor two variables is written as:is written as: A+B = B+AA+B = B+A  TheThe commutative law of multiplicationcommutative law of multiplication for twofor two variables is written as:variables is written as: AB = BAAB = BA A B A+B B A B+A≡ A B AB B A B+A≡
  • 8. Associative LawsAssociative Laws  TheThe associative law of additionassociative law of addition for 3 variables isfor 3 variables is written as:written as: A+(B+C) = (A+B)+CA+(B+C) = (A+B)+C  TheThe associative law of multiplicationassociative law of multiplication for 3 variables isfor 3 variables is written as:written as: A(BC) = (AB)CA(BC) = (AB)C A B A+(B+C) C A B (A+B)+C C A B A(BC) C A B (AB)C C ≡ ≡ B+C A+B BC AB
  • 9. Distributive LawsDistributive Laws  TheThe distributive lawdistributive law is written for 3 variables as follows:is written for 3 variables as follows: A(B+C) = AB + ACA(B+C) = AB + AC B C A B+C ≡ A B C A X X AB AC X=A(B+C) X=AB+AC
  • 10. Rules of Boolean AlgebraRules of Boolean Algebra 1.6 .5 1.4 00.3 11.2 0.1 =+ =+ =• =• =+ =+ AA AAA AA A A AA BCACABA BABAA AABA AA AA AAA +=++ +=+ =+ = =• =• ))(.(12 .11 .10 .9 0.8 .7 ___________________________________________________________ A, B, and C can represent a single variable or a combination of variables.
  • 11. DeMorgan’s TheoremsDeMorgan’s Theorems  DeMorgan’s theorems provide mathematicalDeMorgan’s theorems provide mathematical verification of:verification of:  the equivalency of the NAND and negative-ORthe equivalency of the NAND and negative-OR gatesgates  the equivalency of the NOR and negative-ANDthe equivalency of the NOR and negative-AND gates.gates.
  • 12. DeMorgan’s TheoremsDeMorgan’s Theorems  The complement of two orThe complement of two or more ANDed variables ismore ANDed variables is equivalent to the OR of theequivalent to the OR of the complements of thecomplements of the individual variables.individual variables.  The complement of two orThe complement of two or more ORed variables ismore ORed variables is equivalent to the AND of theequivalent to the AND of the complements of thecomplements of the individual variables.individual variables. YXYX +=• YXYX •=+ NAND Negative-OR Negative-ANDNOR
  • 13. DeMorgan’s Theorems (Exercises)DeMorgan’s Theorems (Exercises)  Apply DeMorgan’s theorems to the expressions:Apply DeMorgan’s theorems to the expressions: ZYXW ZYX ZYX ZYX ••• ++ ++ ••
  • 14. DeMorgan’s Theorems (Exercises)DeMorgan’s Theorems (Exercises)  Apply DeMorgan’s theorems to the expressions:Apply DeMorgan’s theorems to the expressions: )( )( FEDCBA EFDCBA DEFABC DCBA +++ ++ + ++
  • 15. Boolean Analysis of Logic CircuitsBoolean Analysis of Logic Circuits  Boolean algebra provides a concise way toBoolean algebra provides a concise way to express the operation of a logic circuit formedexpress the operation of a logic circuit formed by a combination of logic gatesby a combination of logic gates  so that the output can be determined for variousso that the output can be determined for various combinations of input values.combinations of input values.
  • 16. Boolean Expression for a Logic CircuitBoolean Expression for a Logic Circuit  To derive the Boolean expression for a givenTo derive the Boolean expression for a given logic circuit, begin at the left-most inputs andlogic circuit, begin at the left-most inputs and work toward the final output, writing thework toward the final output, writing the expression for each gate.expression for each gate. C D B A CD B+CD A(B+CD)
  • 17. Constructing a Truth Table for aConstructing a Truth Table for a Logic CircuitLogic Circuit  Once the Boolean expression for a given logicOnce the Boolean expression for a given logic circuit has been determined, a truth table thatcircuit has been determined, a truth table that shows the output for all possible values of theshows the output for all possible values of the input variables can be developed.input variables can be developed.  Let’s take the previous circuit as the example:Let’s take the previous circuit as the example: A(B+CD)A(B+CD)  There are four variables, hence 16 (2There are four variables, hence 16 (244 ) combinations) combinations of values are possible.of values are possible.
  • 18. Constructing a Truth Table for aConstructing a Truth Table for a Logic CircuitLogic Circuit  Evaluating the expressionEvaluating the expression  To evaluate the expressionTo evaluate the expression A(B+CD)A(B+CD), first find the, first find the values of the variables that make the expressionvalues of the variables that make the expression equal to 1 (using the rules for Boolean add & mult).equal to 1 (using the rules for Boolean add & mult).  In this case, the expression equals 1 only if A=1 andIn this case, the expression equals 1 only if A=1 and B+CD=1 becauseB+CD=1 because A(B+CD) = 1A(B+CD) = 1··1 = 11 = 1
  • 19. Constructing a Truth Table for aConstructing a Truth Table for a Logic CircuitLogic Circuit  Evaluating the expression (cont’)Evaluating the expression (cont’)  Now, determine whenNow, determine when B+CDB+CD term equals 1.term equals 1.  The termThe term B+CD=1B+CD=1 if eitherif either B=1B=1 oror CD=1CD=1 or if bothor if both BB andand CDCD equal 1 becauseequal 1 because B+CD = 1+0 = 1B+CD = 1+0 = 1 B+CD = 0+1 = 1B+CD = 0+1 = 1 B+CD = 1+1 = 1B+CD = 1+1 = 1  The termThe term CD=1CD=1 only ifonly if C=1C=1 andand D=1D=1
  • 20. Constructing a Truth Table for aConstructing a Truth Table for a Logic CircuitLogic Circuit  Evaluating the expression (cont’)Evaluating the expression (cont’)  Summary:Summary:  A(B+CD)=1A(B+CD)=1  WhenWhen A=1A=1 andand B=1B=1 regardless of the values ofregardless of the values of CC andand DD  When A=1When A=1 andand C=1C=1 andand D=1D=1 regardless of the value ofregardless of the value of BB  The expressionThe expression A(B+CD)=0A(B+CD)=0 for all other valuefor all other value combinations of the variables.combinations of the variables.
  • 21. Constructing a Truth Table for aConstructing a Truth Table for a Logic CircuitLogic Circuit  Putting the results inPutting the results in truth table formattruth table format INPUTSINPUTS OUTPUTOUTPUT AA BB CC DD A(B+CD)A(B+CD) 00 00 00 00 00 00 00 11 00 00 11 00 00 00 11 11 00 11 00 00 00 11 00 11 00 11 11 00 00 11 11 11 11 00 00 00 11 00 00 11 11 00 11 00 11 00 11 11 11 11 00 00 11 11 00 11 11 11 11 00 11 11 11 11 INPUTSINPUTS OUTPUTOUTPUT AA BB CC DD A(B+CD)A(B+CD) 00 00 00 00 00 00 00 11 00 00 11 00 00 00 11 11 00 11 00 00 00 11 00 11 00 11 11 00 00 11 11 11 11 00 00 00 11 00 00 11 11 00 11 00 11 00 11 11 11 11 00 00 11 11 11 00 11 11 11 11 11 00 11 11 11 11 11 11 When A=1 and B=1 regardless of the values of C and D When A=1 and C=1 and D=1 regardless of the value of B A(B+CD)=1 INPUTSINPUTS OUTPUTOUTPUT AA BB CC DD A(B+CD)A(B+CD) 00 00 00 00 00 00 00 11 00 00 11 00 00 00 11 11 00 11 00 00 00 11 00 11 00 11 11 00 00 11 11 11 11 00 00 00 11 00 00 11 11 00 11 00 11 00 11 11 11 11 11 00 00 11 11 11 00 11 11 11 11 11 00 11 11 11 11 11 11 INPUTSINPUTS OUTPUTOUTPUT AA BB CC DD A(B+CD)A(B+CD) 00 00 00 00 00 00 00 00 11 00 00 00 11 00 00 00 00 11 11 00 00 11 00 00 00 00 11 00 11 00 00 11 11 00 00 00 11 11 11 00 11 00 00 00 00 11 00 00 11 00 11 00 11 00 00 11 00 11 11 11 11 11 00 00 11 11 11 00 11 11 11 11 11 00 11 11 11 11 11 11