SlideShare a Scribd company logo
1 of 20
* 
Chapter 2 
Boolean Algebra
* 
Boolean Algebra 
• To define a Boolean algebra 
– The set B 
– Rules for two binary operations 
– The elements of B and rules should conform to 
our axioms 
• Two-valued Boolean algebra 
– B = {0, 1} 
x y x · y 
0 0 0 
0 1 0 
1 0 0 
1 1 1 
x y x + y 
0 0 0 
0 1 1 
1 0 1 
1 1 1 
x x’ 
0 1 
1 0
* 
Operator Precedence 
1. Parentheses 
2. NOT 
3. AND 
4. OR 
• Example: 
– (x + y)’ 
– x’ · y’ 
– x + x · y’
* 
Boolean Functions 
• Consists of 
– binary variables (normal or complement form) 
– the constants, 0 and 1 
– logic operation symbols, “+” and “·” 
• Example: 
– F1(x, y, z) = x + y’ z 
– F2(x, y, z) = x’ y’ z + x’ y z + xy’ 
x y z F1 F2 
0 0 0 0 0 
1 
0 
0 
1 
1 
1 
1 
1 
0 
1 
1 
1 
0 
0 
0 0 1 
0 1 0 
0 1 1 
1 0 0 
1 0 1 
1 1 0 
1 1 1
* 
Logic Circuit Diagram of F1 
F1(x, y, z) = x + y’ z 
x 
y 
z 
y’z 
x + y’ z 
Gate Implementation of F1 = x + y’ z
* 
Logic Circuit Diagram of F2 
F2 = x’ y’ z + x’ y z + xy’ 
x 
y 
z 
– Algebraic manipulation 
– F2 = x’ y’ z + x’ y z + xy’ 
F2 = x’ z + xy’ 
F2
* 
Alternative Implementation of F2 
x 
y 
F2 
z 
F2 = x’ y’ z + x’ y z + xy’ 
F2 
x 
y 
z
* 
Logic Gate Symbols 
NOT 
AND 
OR 
NAND 
NOR 
TRANSFER 
XOR 
XNOR
* 
Universal Gates 
• NAND and NOR gates are universal 
• We know any Boolean function can be written in 
terms of three logic operations: 
– AND, OR, NOT 
• In return, NAND gate can implement these three 
logic gates by itself 
– So can NOR gate 
x y (xy)’ x’ y ’ (x’ y’ )’ 
1 1 
1 0 
0 1 
0 0 
1 
1 
1 
0 
0 0 
0 1 
1 0 
1 1
* 
NAND Gate 
x 
xy 
x 
y 
NOT 
OR 
AND
* 
NOR Gate 
x 
xy 
x 
y
* 
Canonical & Standard Forms 
• Minterms 
– A product term: all variables appear (either in its normal, 
x, or its complement form, x’) 
– How many different terms we can get with x and y? 
• x’y’ → 00 → m0 
• x’y → 01 → m1 
• xy’ → 10 → m2 
• xy → 11 → m3 
– m0, m1, m2, m3 (minterms or AND terms, standard 
product) 
– n variables can be combined to form 2n minterms
Canonical & Standard Forms 
• Maxterms (OR terms, standard sums) 
– M0 = x + y → 00 
– M1 = x + y’ → 01 
– M2 = x’ + y →10 
– M3 = x’ + y’ → 11 
– n variables can be combined to form 2n 
maxterms 
• m0’ = M0 
• m1’ = M1 
• m2’ = M2 
• m3’ = M3 
*
* 
Min- & Maxterms with n = 3 
x y z 
Minterms Maxterms 
term designation term designation 
0 0 0 x’y’z’ m0 x + y + z M0 
0 0 1 x’y’z m1 x + y + z’ M1 
0 1 0 x’yz’ m2 x + y’ + z M2 
0 1 1 x’yz m3 x + y’ + z’ M3 
1 0 0 xy’z’ m4 x’ + y + z M4 
1 0 1 xy’z m5 x’ + y + z’ M5 
1 1 0 xyz’ m6 x’ + y’ + z M6 
1 1 1 xyz m7 x’ + y’ + 
z’ 
M7
* 
Important Properties 
• Any Boolean function can be expressed as a sum of 
minterms 
• Any Boolean function can be expressed as a product 
of maxterms 
• Example: 
– F’ = Σ (0, 2, 3, 5, 6) 
= x’y’z’ + x’yz’ + x’yz + xy’z + xyz’ 
– How do we find the complement of F’? 
– F = (x + y + z)(x + y’ + z)(x + y’ + z’)(x’ + y + z’)(x’ + y’ 
+ z)
* 
Canonical Form 
• If a Boolean function is expressed as a sum of 
minterms or product of maxterms the function is 
said to be in canonical form. 
• Example: F = x + y’z → canonical form? 
– No 
– But we can put it in canonical form. 
– F = x + y’z = Σ (7, 6, 5, 4, 1) 
• Alternative way: 
– Obtain the truth table first and then the canonical term.
* 
Standard Forms 
• Fact: 
– Canonical forms are very seldom the ones with 
the least number of literals 
• Alternative representation: 
– Standard form 
• a term may contain any number of literals 
– Two types 
1. the sum of products 
2. the product of sums 
– Examples: 
• F1 = y’ + xy + x’yz’ 
• F2 = x(y’ + z)(x’ + y + z’)
* 
Standard Forms 
• F1 = y’ + xy + x’yz’ 
• F2 = x(y’ + z)(x’ + y + z’) 
‘
* 
Nonstandard Forms 
A 
B 
C 
D 
F 
3 
D 
E 
C 
– The standard form: F3 = ABC + ABD + CD + CE 
ABC 
F 
3 
AB 
D 
C 
D 
C 
E 
– F3 = AB(C+D) + C(D + E) 
– This hybrid form yields three-level 
implementation
By : 
Debarati Das 
1PI13CS052 
PES University

More Related Content

What's hot

Conversion of Infix to Prefix and Postfix with Stack
Conversion of Infix to Prefix and Postfix with StackConversion of Infix to Prefix and Postfix with Stack
Conversion of Infix to Prefix and Postfix with Stacksahil kumar
 
Convert decimal to binary
Convert decimal to binary Convert decimal to binary
Convert decimal to binary tcc_joemarie
 
Hands on Session on Python
Hands on Session on PythonHands on Session on Python
Hands on Session on PythonSumit Raj
 
presentation on (Boolean rules & laws)
presentation on (Boolean rules & laws)presentation on (Boolean rules & laws)
presentation on (Boolean rules & laws)kinza arshad
 
Infix prefix postfix
Infix prefix postfixInfix prefix postfix
Infix prefix postfixSelf-Employed
 
Polynomial reppresentation using Linkedlist-Application of LL.pptx
Polynomial reppresentation using Linkedlist-Application of LL.pptxPolynomial reppresentation using Linkedlist-Application of LL.pptx
Polynomial reppresentation using Linkedlist-Application of LL.pptxAlbin562191
 
Linear search algorithm
Linear search algorithmLinear search algorithm
Linear search algorithmNeoClassical
 
List , tuples, dictionaries and regular expressions in python
List , tuples, dictionaries and regular expressions in pythonList , tuples, dictionaries and regular expressions in python
List , tuples, dictionaries and regular expressions in pythonchanna basava
 
Os lab file c programs
Os lab file c programsOs lab file c programs
Os lab file c programsKandarp Tiwari
 
Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1Qundeel
 
String in python use of split method
String in python use of split methodString in python use of split method
String in python use of split methodvikram mahendra
 

What's hot (20)

Conversion of Infix to Prefix and Postfix with Stack
Conversion of Infix to Prefix and Postfix with StackConversion of Infix to Prefix and Postfix with Stack
Conversion of Infix to Prefix and Postfix with Stack
 
Convert decimal to binary
Convert decimal to binary Convert decimal to binary
Convert decimal to binary
 
Binary search
Binary searchBinary search
Binary search
 
13 Boolean Algebra
13 Boolean Algebra13 Boolean Algebra
13 Boolean Algebra
 
Hands on Session on Python
Hands on Session on PythonHands on Session on Python
Hands on Session on Python
 
BINARY SUBTRACTION
BINARY SUBTRACTIONBINARY SUBTRACTION
BINARY SUBTRACTION
 
presentation on (Boolean rules & laws)
presentation on (Boolean rules & laws)presentation on (Boolean rules & laws)
presentation on (Boolean rules & laws)
 
Infix prefix postfix
Infix prefix postfixInfix prefix postfix
Infix prefix postfix
 
Boolean Algebra DLD
Boolean Algebra DLDBoolean Algebra DLD
Boolean Algebra DLD
 
Polynomial reppresentation using Linkedlist-Application of LL.pptx
Polynomial reppresentation using Linkedlist-Application of LL.pptxPolynomial reppresentation using Linkedlist-Application of LL.pptx
Polynomial reppresentation using Linkedlist-Application of LL.pptx
 
Karnaugh map
Karnaugh mapKarnaugh map
Karnaugh map
 
Multiplexers & Demultiplexers
Multiplexers & DemultiplexersMultiplexers & Demultiplexers
Multiplexers & Demultiplexers
 
Linear search algorithm
Linear search algorithmLinear search algorithm
Linear search algorithm
 
List , tuples, dictionaries and regular expressions in python
List , tuples, dictionaries and regular expressions in pythonList , tuples, dictionaries and regular expressions in python
List , tuples, dictionaries and regular expressions in python
 
Os lab file c programs
Os lab file c programsOs lab file c programs
Os lab file c programs
 
Binary Arithmetic Operations
Binary Arithmetic OperationsBinary Arithmetic Operations
Binary Arithmetic Operations
 
Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1
 
String in python use of split method
String in python use of split methodString in python use of split method
String in python use of split method
 
Representation of Negative Numbers
Representation of Negative NumbersRepresentation of Negative Numbers
Representation of Negative Numbers
 
BOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATEBOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATE
 

Viewers also liked

Introduction to boolean algebra
Introduction to boolean algebraIntroduction to boolean algebra
Introduction to boolean algebraMediotype .
 
BOOLEAN ALGEBRA
BOOLEAN ALGEBRA BOOLEAN ALGEBRA
BOOLEAN ALGEBRA Shaik Aman
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebraGagan Deep
 
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsCOMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsVanitha Chandru
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebraRania H
 
IS 139 Lecture 3
IS 139 Lecture 3IS 139 Lecture 3
IS 139 Lecture 3wajanga
 
Logical operations & boolean algebra
Logical operations & boolean algebraLogical operations & boolean algebra
Logical operations & boolean algebraAndrei Jechiu
 
Data representation and boolean algebra
Data representation and boolean algebraData representation and boolean algebra
Data representation and boolean algebragourav kottawar
 
Ch 2 lattice & boolean algebra
Ch 2 lattice & boolean algebraCh 2 lattice & boolean algebra
Ch 2 lattice & boolean algebraRupali Rana
 
Lattices AND Hasse Diagrams
Lattices AND Hasse DiagramsLattices AND Hasse Diagrams
Lattices AND Hasse DiagramsDebarati Das
 
Report on-the-logic-gates
Report on-the-logic-gatesReport on-the-logic-gates
Report on-the-logic-gatesbhardubhai
 
Digital logic gates and Boolean algebra
Digital logic gates and Boolean algebraDigital logic gates and Boolean algebra
Digital logic gates and Boolean algebraSARITHA REDDY
 
Logic gate class 12
Logic gate class 12Logic gate class 12
Logic gate class 12Nipun Shah
 

Viewers also liked (20)

Introduction to boolean algebra
Introduction to boolean algebraIntroduction to boolean algebra
Introduction to boolean algebra
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
BOOLEAN ALGEBRA
BOOLEAN ALGEBRA BOOLEAN ALGEBRA
BOOLEAN ALGEBRA
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsCOMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Logic gates
Logic gatesLogic gates
Logic gates
 
IS 139 Lecture 3
IS 139 Lecture 3IS 139 Lecture 3
IS 139 Lecture 3
 
Logical operations & boolean algebra
Logical operations & boolean algebraLogical operations & boolean algebra
Logical operations & boolean algebra
 
boolean algebra(continued)
boolean algebra(continued)boolean algebra(continued)
boolean algebra(continued)
 
Boolean algebra
 Boolean algebra Boolean algebra
Boolean algebra
 
Data representation and boolean algebra
Data representation and boolean algebraData representation and boolean algebra
Data representation and boolean algebra
 
Ch 2 lattice & boolean algebra
Ch 2 lattice & boolean algebraCh 2 lattice & boolean algebra
Ch 2 lattice & boolean algebra
 
Lattices AND Hasse Diagrams
Lattices AND Hasse DiagramsLattices AND Hasse Diagrams
Lattices AND Hasse Diagrams
 
boolean algebra
boolean algebraboolean algebra
boolean algebra
 
Report on-the-logic-gates
Report on-the-logic-gatesReport on-the-logic-gates
Report on-the-logic-gates
 
Logic Gates
Logic GatesLogic Gates
Logic Gates
 
Digital logic gates and Boolean algebra
Digital logic gates and Boolean algebraDigital logic gates and Boolean algebra
Digital logic gates and Boolean algebra
 
Logic gate class 12
Logic gate class 12Logic gate class 12
Logic gate class 12
 

Similar to Boolean algebra

B.sc cs-ii-u-1.5 digital logic circuits, digital component
B.sc cs-ii-u-1.5 digital logic circuits, digital componentB.sc cs-ii-u-1.5 digital logic circuits, digital component
B.sc cs-ii-u-1.5 digital logic circuits, digital componentRai University
 
Bca 2nd sem-u-1.5 digital logic circuits, digital component
Bca 2nd sem-u-1.5 digital logic circuits, digital componentBca 2nd sem-u-1.5 digital logic circuits, digital component
Bca 2nd sem-u-1.5 digital logic circuits, digital componentRai University
 
digital logic circuits, digital component
 digital logic circuits, digital component digital logic circuits, digital component
digital logic circuits, digital componentRai University
 
02 combinational logic
02 combinational logic02 combinational logic
02 combinational logicZainab Noor
 
SOP_POS_kmap_ DJ_Section_B.pptx
SOP_POS_kmap_ DJ_Section_B.pptxSOP_POS_kmap_ DJ_Section_B.pptx
SOP_POS_kmap_ DJ_Section_B.pptxdivanshujain8
 
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
 
DM2020 boolean algebra
DM2020 boolean algebraDM2020 boolean algebra
DM2020 boolean algebraRobert Geofroy
 
Lect 2 boolean algebra (4 5-21)
Lect 2 boolean algebra (4 5-21)Lect 2 boolean algebra (4 5-21)
Lect 2 boolean algebra (4 5-21)MeghaSharma513
 
booleanalgebra-140914001141-phpapp01 (1).ppt
booleanalgebra-140914001141-phpapp01 (1).pptbooleanalgebra-140914001141-phpapp01 (1).ppt
booleanalgebra-140914001141-phpapp01 (1).pptmichaelaaron25322
 
B sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gatesB sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gatesRai University
 
Logic Design - Chapter 3: Boolean Algebra
Logic Design - Chapter 3: Boolean AlgebraLogic Design - Chapter 3: Boolean Algebra
Logic Design - Chapter 3: Boolean AlgebraGouda Mando
 
M3 PPT 22ESC143.docx
M3 PPT 22ESC143.docxM3 PPT 22ESC143.docx
M3 PPT 22ESC143.docxJyothi122118
 
M3 PPT 22ESC143.docx
M3 PPT 22ESC143.docxM3 PPT 22ESC143.docx
M3 PPT 22ESC143.docxJyothi122118
 

Similar to Boolean algebra (20)

B.sc cs-ii-u-1.5 digital logic circuits, digital component
B.sc cs-ii-u-1.5 digital logic circuits, digital componentB.sc cs-ii-u-1.5 digital logic circuits, digital component
B.sc cs-ii-u-1.5 digital logic circuits, digital component
 
Bca 2nd sem-u-1.5 digital logic circuits, digital component
Bca 2nd sem-u-1.5 digital logic circuits, digital componentBca 2nd sem-u-1.5 digital logic circuits, digital component
Bca 2nd sem-u-1.5 digital logic circuits, digital component
 
digital logic circuits, digital component
 digital logic circuits, digital component digital logic circuits, digital component
digital logic circuits, digital component
 
02 combinational logic
02 combinational logic02 combinational logic
02 combinational logic
 
Digital Electronics
Digital ElectronicsDigital Electronics
Digital Electronics
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
SOP_POS_kmap_ DJ_Section_B.pptx
SOP_POS_kmap_ DJ_Section_B.pptxSOP_POS_kmap_ DJ_Section_B.pptx
SOP_POS_kmap_ DJ_Section_B.pptx
 
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
 
DM2020 boolean algebra
DM2020 boolean algebraDM2020 boolean algebra
DM2020 boolean algebra
 
CHAPTER_3.1.ppt
CHAPTER_3.1.pptCHAPTER_3.1.ppt
CHAPTER_3.1.ppt
 
Digital logic circuits
Digital  logic  circuitsDigital  logic  circuits
Digital logic circuits
 
De EE unit-2.pptx
De EE unit-2.pptxDe EE unit-2.pptx
De EE unit-2.pptx
 
CSE-205_ch-3.pptx
CSE-205_ch-3.pptxCSE-205_ch-3.pptx
CSE-205_ch-3.pptx
 
Lect 2 boolean algebra (4 5-21)
Lect 2 boolean algebra (4 5-21)Lect 2 boolean algebra (4 5-21)
Lect 2 boolean algebra (4 5-21)
 
booleanalgebra-140914001141-phpapp01 (1).ppt
booleanalgebra-140914001141-phpapp01 (1).pptbooleanalgebra-140914001141-phpapp01 (1).ppt
booleanalgebra-140914001141-phpapp01 (1).ppt
 
B sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gatesB sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gates
 
Logic Design - Chapter 3: Boolean Algebra
Logic Design - Chapter 3: Boolean AlgebraLogic Design - Chapter 3: Boolean Algebra
Logic Design - Chapter 3: Boolean Algebra
 
M3 PPT 22ESC143.docx
M3 PPT 22ESC143.docxM3 PPT 22ESC143.docx
M3 PPT 22ESC143.docx
 
M3 PPT 22ESC143.docx
M3 PPT 22ESC143.docxM3 PPT 22ESC143.docx
M3 PPT 22ESC143.docx
 
Unit 1(stld)
Unit 1(stld)Unit 1(stld)
Unit 1(stld)
 

Recently uploaded

UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactisticshameyhk98
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsNbelano25
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 

Recently uploaded (20)

UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactistics
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 

Boolean algebra

  • 1. * Chapter 2 Boolean Algebra
  • 2. * Boolean Algebra • To define a Boolean algebra – The set B – Rules for two binary operations – The elements of B and rules should conform to our axioms • Two-valued Boolean algebra – B = {0, 1} x y x · y 0 0 0 0 1 0 1 0 0 1 1 1 x y x + y 0 0 0 0 1 1 1 0 1 1 1 1 x x’ 0 1 1 0
  • 3. * Operator Precedence 1. Parentheses 2. NOT 3. AND 4. OR • Example: – (x + y)’ – x’ · y’ – x + x · y’
  • 4. * Boolean Functions • Consists of – binary variables (normal or complement form) – the constants, 0 and 1 – logic operation symbols, “+” and “·” • Example: – F1(x, y, z) = x + y’ z – F2(x, y, z) = x’ y’ z + x’ y z + xy’ x y z F1 F2 0 0 0 0 0 1 0 0 1 1 1 1 1 0 1 1 1 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1
  • 5. * Logic Circuit Diagram of F1 F1(x, y, z) = x + y’ z x y z y’z x + y’ z Gate Implementation of F1 = x + y’ z
  • 6. * Logic Circuit Diagram of F2 F2 = x’ y’ z + x’ y z + xy’ x y z – Algebraic manipulation – F2 = x’ y’ z + x’ y z + xy’ F2 = x’ z + xy’ F2
  • 7. * Alternative Implementation of F2 x y F2 z F2 = x’ y’ z + x’ y z + xy’ F2 x y z
  • 8. * Logic Gate Symbols NOT AND OR NAND NOR TRANSFER XOR XNOR
  • 9. * Universal Gates • NAND and NOR gates are universal • We know any Boolean function can be written in terms of three logic operations: – AND, OR, NOT • In return, NAND gate can implement these three logic gates by itself – So can NOR gate x y (xy)’ x’ y ’ (x’ y’ )’ 1 1 1 0 0 1 0 0 1 1 1 0 0 0 0 1 1 0 1 1
  • 10. * NAND Gate x xy x y NOT OR AND
  • 11. * NOR Gate x xy x y
  • 12. * Canonical & Standard Forms • Minterms – A product term: all variables appear (either in its normal, x, or its complement form, x’) – How many different terms we can get with x and y? • x’y’ → 00 → m0 • x’y → 01 → m1 • xy’ → 10 → m2 • xy → 11 → m3 – m0, m1, m2, m3 (minterms or AND terms, standard product) – n variables can be combined to form 2n minterms
  • 13. Canonical & Standard Forms • Maxterms (OR terms, standard sums) – M0 = x + y → 00 – M1 = x + y’ → 01 – M2 = x’ + y →10 – M3 = x’ + y’ → 11 – n variables can be combined to form 2n maxterms • m0’ = M0 • m1’ = M1 • m2’ = M2 • m3’ = M3 *
  • 14. * Min- & Maxterms with n = 3 x y z Minterms Maxterms term designation term designation 0 0 0 x’y’z’ m0 x + y + z M0 0 0 1 x’y’z m1 x + y + z’ M1 0 1 0 x’yz’ m2 x + y’ + z M2 0 1 1 x’yz m3 x + y’ + z’ M3 1 0 0 xy’z’ m4 x’ + y + z M4 1 0 1 xy’z m5 x’ + y + z’ M5 1 1 0 xyz’ m6 x’ + y’ + z M6 1 1 1 xyz m7 x’ + y’ + z’ M7
  • 15. * Important Properties • Any Boolean function can be expressed as a sum of minterms • Any Boolean function can be expressed as a product of maxterms • Example: – F’ = Σ (0, 2, 3, 5, 6) = x’y’z’ + x’yz’ + x’yz + xy’z + xyz’ – How do we find the complement of F’? – F = (x + y + z)(x + y’ + z)(x + y’ + z’)(x’ + y + z’)(x’ + y’ + z)
  • 16. * Canonical Form • If a Boolean function is expressed as a sum of minterms or product of maxterms the function is said to be in canonical form. • Example: F = x + y’z → canonical form? – No – But we can put it in canonical form. – F = x + y’z = Σ (7, 6, 5, 4, 1) • Alternative way: – Obtain the truth table first and then the canonical term.
  • 17. * Standard Forms • Fact: – Canonical forms are very seldom the ones with the least number of literals • Alternative representation: – Standard form • a term may contain any number of literals – Two types 1. the sum of products 2. the product of sums – Examples: • F1 = y’ + xy + x’yz’ • F2 = x(y’ + z)(x’ + y + z’)
  • 18. * Standard Forms • F1 = y’ + xy + x’yz’ • F2 = x(y’ + z)(x’ + y + z’) ‘
  • 19. * Nonstandard Forms A B C D F 3 D E C – The standard form: F3 = ABC + ABD + CD + CE ABC F 3 AB D C D C E – F3 = AB(C+D) + C(D + E) – This hybrid form yields three-level implementation
  • 20. By : Debarati Das 1PI13CS052 PES University