SlideShare une entreprise Scribd logo
1  sur  24
Minimization of Boolean Functions
What is Minimization? 
• In mathematics, expressions are simplified for a 
number of reasons, for instance simpler expression 
are easier to understand and easier to write down, 
they are also less prone to error in interpretation 
but, most importantly, simplified expressions are 
usually more efficient and effective when 
implemented in practice. 
• A Boolean expression is composed 
of variables and terms. The simplification of 
Boolean expressions can lead to more effective 
computer programs, algorithms and circuits.
What is Minimization? 
• Minimisation can be achieved by a 
number of methods, three well known 
methods are: 
1. Algebraic Manipulation of Boolean 
Expressions 
2. Tabular Method of Minimization 
3. Karnaugh Maps
4 
Algebraic Manipulation of Boolean Expressions 
• We can now start doing some simplifications 
x’y’ + xyz + x’y 
= x’(y’ + y) + xyz [ Distributive: x’y’ + x’y = x’(y’ + y) ] 
= x’1 + xyz [ complement: x’ + x = 1 ] 
= x’ + xyz [ identity: x’1 = x’ ] 
= (x’ + x)(x’ + yz) [ Distributive ] 
= 1  (x’ + yz) [ complement: x’ + x = 1 ] 
= x’ + yz [ identity]
5 
Algebraic Manipulation of Boolean Expressions 
• Here are two 
different but 
equivalent 
circuits. 
• In general the 
one with fewer 
gates is 
“better”: 
– It costs less 
to build 
– It requires 
less power 
– But we had to 
do some work 
to find the 
second form
Tabular Method of Minimization 
• The tabular method which is also known as the 
Quine-McCluskey method is particularly useful 
when minimising functions having a large number of 
variables, e.g. The six-variable functions. Computer 
programs have been developed employing this 
algorithm. 
• The method reduces a function in standard sum of 
products form to a set of prime implicants from 
which as many variables are eliminated as possible. 
• These prime implicants are then examined to see if 
some are redundant. 
Note: A prime implicant is a product term which cannot be further 
simplified by combination with other terms.
Tabular Method of Minimization 
• We will show how the Quine–McCluskey method can 
be used to find a minimal expansion 
equivalent to: 
• We will represent the minterms in this expansion 
by bit strings. The first bit will be 1 if x occurs and 
0 if x occurs. The second bit will be 1 if y occurs 
and 0 if y occurs. The third bit will be 1 if z occurs 
and 0 if z occurs. 
• We then group these terms according to the 
number of 1s in the corresponding bit strings. This 
information is shown in Table 1.
Tabular Method of Minimization
Tabular Method of Minimization 
• Step 1: 
– Minterms that can be combined are those that differ in 
exactly one literal. Hence, two terms that can be 
combined differ by exactly one in the number of 1s in the 
bit strings that represent them. 
– When two minterms are combined into a product, this 
product contains two literals. A product in two literals is 
represented using a dash to denote the variable that 
does not occur. 
– For instance, the minterms xyz and x yz, represented by 
bit strings 101 and 001, can be combined into yz, 
represented by the string _01.
Tabular Method of Minimization 
• Step 1 (continued): 
– All pairs of minterms that can be combined and the 
product formed from these combinations are shown in 
Table 2. 
Note: (1,2) means that term 1 and term 2 are combined. 
(4,5) means that term 4 and term 5 are combined, etc.
Tabular Method of Minimization 
• Step 2: 
– Next, all pairs of products of two literals that can be 
combined are combined into one literal. Two such 
products can be combined if they contain literals for the 
same two variables, and literals for only one of the two 
variables differ. 
– In terms of the strings representing the products, these 
strings must have a dash in the same position and must 
differ in exactly one of the other two slots. 
– We can combine the products yz and yz, represented by 
the strings _11 and _01, into z, represented by the string 
_ _1.
Tabular Method of Minimization 
• Step 2 (continued): 
– We show all the combinations of terms that can be 
formed in this way in Table 3. 
Note: (1,2,3,4) means that terms (1,2) and (3,4) are combined 
OR 
terms (1,3) and (2,4) are combined.
Tabular Method of Minimization 
• Step 3: 
– In Table 3 we also indicate which terms have been used 
to form products with fewer literals; these terms will not 
be needed in a minimal expansion. 
– The next step is to identify a minimal set of products 
needed to represent the Boolean function. 
– We begin with all those products that were not used to 
construct products with fewer literals.
Tabular Method of Minimization 
• Step 3: 
– Next, we form Table 4, which has a row for each 
candidate product formed by combining original terms, 
and a column for each original term; and we put an X in a 
position if the original term in the sum-of-products 
expansion was used to form this candidate product. 
Note: z covers xyz, xyz, xyz and xyz (i.e. there is an “X”). 
xy covers xyz and xyz.
Tabular Method of Minimization 
• Step 3 (continued): 
– In this case, we say that the candidate product covers 
the original minterm. We need to include at least one 
product that covers each of the original minterms. 
– Consequently, whenever there is only one X in a column in 
the table, the product corresponding to the row this X is 
in must be used. 
– From Table 4 we see that both z and x y are needed. 
– Hence, the final answer is z + x y.
Karnaugh Maps 
• So far we can see that applying Boolean algebra can 
be awkward in order to simplify expressions. 
• Apart from being laborious (and requiring the 
remembering all the laws) the method can lead to 
solutions which, though they appear minimal, are 
not. 
• The Karnaugh map provides a simple and straight-forward 
method of minimising boolean expressions. 
• With the Karnaugh map Boolean expressions having 
up to four and even six variables can be simplified.
Karnaugh Maps 
• So what is a Karnaugh map? 
– A Karnaugh map (K-map) provides a pictorial method of 
grouping together expressions with common factors and 
therefore eliminating unwanted variables. The Karnaugh 
map can also be described as a special arrangement of 
a truth table. 
– The diagram below illustrates the correspondence 
between the Karnaugh map and the truth table for the 
general case of a two variable problem. 
Same 
As:
Karnaugh Maps 
• The values inside the squares are copied from the 
output column of the truth table, therefore there 
is one square in the map for every row in the truth 
table. 
• Around the edge of the Karnaugh map are the 
values of the two input variable. y is along the top 
and x is down the left hand side. 
• The diagram below explains this:
Karnaugh Maps (K-maps) 
• Example 1: 
We can identify minterms that can be combined from the 
K-map. Whenever there are 1s in two adjacent cells in the 
K-map, the minterms represented by these cells can be 
combined into a product involving just one of the 
variables.
Karnaugh Maps (K-maps) 
• Example 1 (continued): 
– For instance, and are represented by adjacent 
cells and can be combined into , because 
– Moreover, if 1s are in all four cells, the four minterms 
can be combined into one term, namely, the Boolean 
expression 1 that involves none of the variables. 
– We circle blocks of cells in the K-map that represent 
minterms that can be combined and then find the 
corresponding sum of products. 
– The goal is to identify the largest possible blocks, and to 
cover all the 1s with the fewest blocks using the largest 
blocks first and always using the largest possible blocks.
Karnaugh Maps (K-maps) 
• Example 1 (continued): 
– Simplify the sum-of-products expansions. 
Note: Part (b) cannot be simplified, that is why the solution is 
the same expression we started with.
Karnaugh Maps (K-maps) 
• Example 2: 
Note: 
A K-map in three variables is a 
rectangle divided into eight 
cells. The cells represent the 
eight possible minterms in three 
variables. Two cells are said to 
be adjacent if the minterms that 
they represent differ in exactly 
one literal.
Karnaugh Maps (K-maps) 
• Example 2 (continued): 
– The K-maps for these sum-of-products expansions are 
shown below:
Karnaugh Maps (K-maps) 
• Example 2 (continued): 
– The grouping of blocks shows that minimal expansions 
into Boolean sums of Boolean products are: 
Note: 
In part (d) note that the prime implicants xz and x y are essential 
prime implicants, but the prime implicant yz is not essential, 
because the cells it covers are covered by the other two prime 
implicants.

Contenu connexe

Tendances

Restoring & Non-Restoring Division Algorithm By Sania Nisar
Restoring & Non-Restoring Division Algorithm By Sania NisarRestoring & Non-Restoring Division Algorithm By Sania Nisar
Restoring & Non-Restoring Division Algorithm By Sania NisarSania Nisar
 
Recursion tree method
Recursion tree methodRecursion tree method
Recursion tree methodRajendran
 
Intro automata theory
Intro automata theory Intro automata theory
Intro automata theory Rajendran
 
SOP POS, Minterm and Maxterm
SOP POS, Minterm and MaxtermSOP POS, Minterm and Maxterm
SOP POS, Minterm and MaxtermSelf-employed
 
Hashing Technique In Data Structures
Hashing Technique In Data StructuresHashing Technique In Data Structures
Hashing Technique In Data StructuresSHAKOOR AB
 
Recurrence relations
Recurrence relationsRecurrence relations
Recurrence relationsIIUM
 
Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)
Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)
Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)Mohanlal Sukhadia University (MLSU)
 
Presentation on Karnaugh Map
Presentation  on Karnaugh MapPresentation  on Karnaugh Map
Presentation on Karnaugh MapKawsar Ahmed
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital ElectronicsJanki Shah
 
Chromatic Number of a Graph (Graph Colouring)
Chromatic Number of a Graph (Graph Colouring)Chromatic Number of a Graph (Graph Colouring)
Chromatic Number of a Graph (Graph Colouring)Adwait Hegde
 
Kmap..(karnaugh map)
Kmap..(karnaugh map)Kmap..(karnaugh map)
Kmap..(karnaugh map)Zain Jafri
 
Minterm and maxterm
Minterm and maxtermMinterm and maxterm
Minterm and maxtermparsa.khan64
 

Tendances (20)

Floyd Warshall Algorithm
Floyd Warshall AlgorithmFloyd Warshall Algorithm
Floyd Warshall Algorithm
 
Restoring & Non-Restoring Division Algorithm By Sania Nisar
Restoring & Non-Restoring Division Algorithm By Sania NisarRestoring & Non-Restoring Division Algorithm By Sania Nisar
Restoring & Non-Restoring Division Algorithm By Sania Nisar
 
Graphs - Discrete Math
Graphs - Discrete MathGraphs - Discrete Math
Graphs - Discrete Math
 
Trees
Trees Trees
Trees
 
Encoder and decoder
Encoder and decoderEncoder and decoder
Encoder and decoder
 
Recursion tree method
Recursion tree methodRecursion tree method
Recursion tree method
 
Intro automata theory
Intro automata theory Intro automata theory
Intro automata theory
 
MULTIPLEXER
MULTIPLEXERMULTIPLEXER
MULTIPLEXER
 
SOP POS, Minterm and Maxterm
SOP POS, Minterm and MaxtermSOP POS, Minterm and Maxterm
SOP POS, Minterm and Maxterm
 
Hashing Technique In Data Structures
Hashing Technique In Data StructuresHashing Technique In Data Structures
Hashing Technique In Data Structures
 
Recurrence relations
Recurrence relationsRecurrence relations
Recurrence relations
 
Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)
Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)
Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)
 
Signed Binary Numbers
Signed Binary NumbersSigned Binary Numbers
Signed Binary Numbers
 
Spanning trees
Spanning treesSpanning trees
Spanning trees
 
Presentation on Karnaugh Map
Presentation  on Karnaugh MapPresentation  on Karnaugh Map
Presentation on Karnaugh Map
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
 
K map
K mapK map
K map
 
Chromatic Number of a Graph (Graph Colouring)
Chromatic Number of a Graph (Graph Colouring)Chromatic Number of a Graph (Graph Colouring)
Chromatic Number of a Graph (Graph Colouring)
 
Kmap..(karnaugh map)
Kmap..(karnaugh map)Kmap..(karnaugh map)
Kmap..(karnaugh map)
 
Minterm and maxterm
Minterm and maxtermMinterm and maxterm
Minterm and maxterm
 

En vedette

Boolean algebra And Logic Gates
Boolean algebra And Logic GatesBoolean algebra And Logic Gates
Boolean algebra And Logic GatesKumar
 
Chapter 06 boolean algebra
Chapter 06 boolean algebraChapter 06 boolean algebra
Chapter 06 boolean algebraHareem Aslam
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebraGagan Deep
 
Edd 9800 morote chapter 1 introduction to educational research
Edd 9800 morote chapter 1 introduction to educational researchEdd 9800 morote chapter 1 introduction to educational research
Edd 9800 morote chapter 1 introduction to educational researchvdavis724
 
Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1Qundeel
 

En vedette (8)

Boolean algebra And Logic Gates
Boolean algebra And Logic GatesBoolean algebra And Logic Gates
Boolean algebra And Logic Gates
 
Chapter 06 boolean algebra
Chapter 06 boolean algebraChapter 06 boolean algebra
Chapter 06 boolean algebra
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Edd 9800 morote chapter 1 introduction to educational research
Edd 9800 morote chapter 1 introduction to educational researchEdd 9800 morote chapter 1 introduction to educational research
Edd 9800 morote chapter 1 introduction to educational research
 
Learning Kmap
Learning KmapLearning Kmap
Learning Kmap
 
BOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATEBOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATE
 
Algorithms
AlgorithmsAlgorithms
Algorithms
 
Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1
 

Similaire à Minimization of Boolean Functions

A Comparative Analysis Of Assignment Problem
A Comparative Analysis Of Assignment ProblemA Comparative Analysis Of Assignment Problem
A Comparative Analysis Of Assignment ProblemJim Webb
 
Assignment Chapter - Q & A Compilation by Niraj Thapa
Assignment Chapter  - Q & A Compilation by Niraj ThapaAssignment Chapter  - Q & A Compilation by Niraj Thapa
Assignment Chapter - Q & A Compilation by Niraj ThapaCA Niraj Thapa
 
AMA_Assignment Theory notes
AMA_Assignment Theory notesAMA_Assignment Theory notes
AMA_Assignment Theory notesCA Niraj Thapa
 
Master of Computer Application (MCA) – Semester 4 MC0079
Master of Computer Application (MCA) – Semester 4  MC0079Master of Computer Application (MCA) – Semester 4  MC0079
Master of Computer Application (MCA) – Semester 4 MC0079Aravind NC
 
04-Unit Four - OR.pptx
04-Unit Four - OR.pptx04-Unit Four - OR.pptx
04-Unit Four - OR.pptxAbdiMuceeTube
 
Engineering Numerical Analysis-Introduction.pdf
Engineering Numerical Analysis-Introduction.pdfEngineering Numerical Analysis-Introduction.pdf
Engineering Numerical Analysis-Introduction.pdfssuseraae901
 
Module 1 ppt class.pptx
Module 1 ppt class.pptxModule 1 ppt class.pptx
Module 1 ppt class.pptxVivekNaik55
 
Module ppt class.pptx
Module ppt class.pptxModule ppt class.pptx
Module ppt class.pptxVivekNaik71
 
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
 

Similaire à Minimization of Boolean Functions (20)

Karnaugh maps
Karnaugh mapsKarnaugh maps
Karnaugh maps
 
A0280115(1)
A0280115(1)A0280115(1)
A0280115(1)
 
A Comparative Analysis Of Assignment Problem
A Comparative Analysis Of Assignment ProblemA Comparative Analysis Of Assignment Problem
A Comparative Analysis Of Assignment Problem
 
K map
K mapK map
K map
 
DCF - K map
DCF - K mapDCF - K map
DCF - K map
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
Assignment Chapter - Q & A Compilation by Niraj Thapa
Assignment Chapter  - Q & A Compilation by Niraj ThapaAssignment Chapter  - Q & A Compilation by Niraj Thapa
Assignment Chapter - Q & A Compilation by Niraj Thapa
 
K map
K map K map
K map
 
Minterms
MintermsMinterms
Minterms
 
De EE unit-2.pptx
De EE unit-2.pptxDe EE unit-2.pptx
De EE unit-2.pptx
 
AMA_Assignment Theory notes
AMA_Assignment Theory notesAMA_Assignment Theory notes
AMA_Assignment Theory notes
 
Chapter-3.pdf
Chapter-3.pdfChapter-3.pdf
Chapter-3.pdf
 
Chapter-3.pdf
Chapter-3.pdfChapter-3.pdf
Chapter-3.pdf
 
Master of Computer Application (MCA) – Semester 4 MC0079
Master of Computer Application (MCA) – Semester 4  MC0079Master of Computer Application (MCA) – Semester 4  MC0079
Master of Computer Application (MCA) – Semester 4 MC0079
 
Matching problem
Matching problemMatching problem
Matching problem
 
04-Unit Four - OR.pptx
04-Unit Four - OR.pptx04-Unit Four - OR.pptx
04-Unit Four - OR.pptx
 
Engineering Numerical Analysis-Introduction.pdf
Engineering Numerical Analysis-Introduction.pdfEngineering Numerical Analysis-Introduction.pdf
Engineering Numerical Analysis-Introduction.pdf
 
Module 1 ppt class.pptx
Module 1 ppt class.pptxModule 1 ppt class.pptx
Module 1 ppt class.pptx
 
Module ppt class.pptx
Module ppt class.pptxModule ppt class.pptx
Module ppt class.pptx
 
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
 

Plus de blaircomp2003

Predicates and Quantifiers
Predicates and QuantifiersPredicates and Quantifiers
Predicates and Quantifiersblaircomp2003
 
Mathematical Logic Part 2
Mathematical Logic Part 2Mathematical Logic Part 2
Mathematical Logic Part 2blaircomp2003
 
Mathematical Logic - Part 1
Mathematical Logic - Part 1Mathematical Logic - Part 1
Mathematical Logic - Part 1blaircomp2003
 
Introduction to Boolean Algebra
Introduction to Boolean AlgebraIntroduction to Boolean Algebra
Introduction to Boolean Algebrablaircomp2003
 
Introduction and Applications of Discrete Mathematics
Introduction and Applications of Discrete MathematicsIntroduction and Applications of Discrete Mathematics
Introduction and Applications of Discrete Mathematicsblaircomp2003
 

Plus de blaircomp2003 (6)

Predicates and Quantifiers
Predicates and QuantifiersPredicates and Quantifiers
Predicates and Quantifiers
 
Mathematical Logic Part 2
Mathematical Logic Part 2Mathematical Logic Part 2
Mathematical Logic Part 2
 
Mathematical Logic - Part 1
Mathematical Logic - Part 1Mathematical Logic - Part 1
Mathematical Logic - Part 1
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
Introduction to Boolean Algebra
Introduction to Boolean AlgebraIntroduction to Boolean Algebra
Introduction to Boolean Algebra
 
Introduction and Applications of Discrete Mathematics
Introduction and Applications of Discrete MathematicsIntroduction and Applications of Discrete Mathematics
Introduction and Applications of Discrete Mathematics
 

Dernier

Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
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
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 

Dernier (20)

Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
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
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 

Minimization of Boolean Functions

  • 2. What is Minimization? • In mathematics, expressions are simplified for a number of reasons, for instance simpler expression are easier to understand and easier to write down, they are also less prone to error in interpretation but, most importantly, simplified expressions are usually more efficient and effective when implemented in practice. • A Boolean expression is composed of variables and terms. The simplification of Boolean expressions can lead to more effective computer programs, algorithms and circuits.
  • 3. What is Minimization? • Minimisation can be achieved by a number of methods, three well known methods are: 1. Algebraic Manipulation of Boolean Expressions 2. Tabular Method of Minimization 3. Karnaugh Maps
  • 4. 4 Algebraic Manipulation of Boolean Expressions • We can now start doing some simplifications x’y’ + xyz + x’y = x’(y’ + y) + xyz [ Distributive: x’y’ + x’y = x’(y’ + y) ] = x’1 + xyz [ complement: x’ + x = 1 ] = x’ + xyz [ identity: x’1 = x’ ] = (x’ + x)(x’ + yz) [ Distributive ] = 1  (x’ + yz) [ complement: x’ + x = 1 ] = x’ + yz [ identity]
  • 5. 5 Algebraic Manipulation of Boolean Expressions • Here are two different but equivalent circuits. • In general the one with fewer gates is “better”: – It costs less to build – It requires less power – But we had to do some work to find the second form
  • 6. Tabular Method of Minimization • The tabular method which is also known as the Quine-McCluskey method is particularly useful when minimising functions having a large number of variables, e.g. The six-variable functions. Computer programs have been developed employing this algorithm. • The method reduces a function in standard sum of products form to a set of prime implicants from which as many variables are eliminated as possible. • These prime implicants are then examined to see if some are redundant. Note: A prime implicant is a product term which cannot be further simplified by combination with other terms.
  • 7. Tabular Method of Minimization • We will show how the Quine–McCluskey method can be used to find a minimal expansion equivalent to: • We will represent the minterms in this expansion by bit strings. The first bit will be 1 if x occurs and 0 if x occurs. The second bit will be 1 if y occurs and 0 if y occurs. The third bit will be 1 if z occurs and 0 if z occurs. • We then group these terms according to the number of 1s in the corresponding bit strings. This information is shown in Table 1.
  • 8. Tabular Method of Minimization
  • 9. Tabular Method of Minimization • Step 1: – Minterms that can be combined are those that differ in exactly one literal. Hence, two terms that can be combined differ by exactly one in the number of 1s in the bit strings that represent them. – When two minterms are combined into a product, this product contains two literals. A product in two literals is represented using a dash to denote the variable that does not occur. – For instance, the minterms xyz and x yz, represented by bit strings 101 and 001, can be combined into yz, represented by the string _01.
  • 10. Tabular Method of Minimization • Step 1 (continued): – All pairs of minterms that can be combined and the product formed from these combinations are shown in Table 2. Note: (1,2) means that term 1 and term 2 are combined. (4,5) means that term 4 and term 5 are combined, etc.
  • 11. Tabular Method of Minimization • Step 2: – Next, all pairs of products of two literals that can be combined are combined into one literal. Two such products can be combined if they contain literals for the same two variables, and literals for only one of the two variables differ. – In terms of the strings representing the products, these strings must have a dash in the same position and must differ in exactly one of the other two slots. – We can combine the products yz and yz, represented by the strings _11 and _01, into z, represented by the string _ _1.
  • 12. Tabular Method of Minimization • Step 2 (continued): – We show all the combinations of terms that can be formed in this way in Table 3. Note: (1,2,3,4) means that terms (1,2) and (3,4) are combined OR terms (1,3) and (2,4) are combined.
  • 13. Tabular Method of Minimization • Step 3: – In Table 3 we also indicate which terms have been used to form products with fewer literals; these terms will not be needed in a minimal expansion. – The next step is to identify a minimal set of products needed to represent the Boolean function. – We begin with all those products that were not used to construct products with fewer literals.
  • 14. Tabular Method of Minimization • Step 3: – Next, we form Table 4, which has a row for each candidate product formed by combining original terms, and a column for each original term; and we put an X in a position if the original term in the sum-of-products expansion was used to form this candidate product. Note: z covers xyz, xyz, xyz and xyz (i.e. there is an “X”). xy covers xyz and xyz.
  • 15. Tabular Method of Minimization • Step 3 (continued): – In this case, we say that the candidate product covers the original minterm. We need to include at least one product that covers each of the original minterms. – Consequently, whenever there is only one X in a column in the table, the product corresponding to the row this X is in must be used. – From Table 4 we see that both z and x y are needed. – Hence, the final answer is z + x y.
  • 16. Karnaugh Maps • So far we can see that applying Boolean algebra can be awkward in order to simplify expressions. • Apart from being laborious (and requiring the remembering all the laws) the method can lead to solutions which, though they appear minimal, are not. • The Karnaugh map provides a simple and straight-forward method of minimising boolean expressions. • With the Karnaugh map Boolean expressions having up to four and even six variables can be simplified.
  • 17. Karnaugh Maps • So what is a Karnaugh map? – A Karnaugh map (K-map) provides a pictorial method of grouping together expressions with common factors and therefore eliminating unwanted variables. The Karnaugh map can also be described as a special arrangement of a truth table. – The diagram below illustrates the correspondence between the Karnaugh map and the truth table for the general case of a two variable problem. Same As:
  • 18. Karnaugh Maps • The values inside the squares are copied from the output column of the truth table, therefore there is one square in the map for every row in the truth table. • Around the edge of the Karnaugh map are the values of the two input variable. y is along the top and x is down the left hand side. • The diagram below explains this:
  • 19. Karnaugh Maps (K-maps) • Example 1: We can identify minterms that can be combined from the K-map. Whenever there are 1s in two adjacent cells in the K-map, the minterms represented by these cells can be combined into a product involving just one of the variables.
  • 20. Karnaugh Maps (K-maps) • Example 1 (continued): – For instance, and are represented by adjacent cells and can be combined into , because – Moreover, if 1s are in all four cells, the four minterms can be combined into one term, namely, the Boolean expression 1 that involves none of the variables. – We circle blocks of cells in the K-map that represent minterms that can be combined and then find the corresponding sum of products. – The goal is to identify the largest possible blocks, and to cover all the 1s with the fewest blocks using the largest blocks first and always using the largest possible blocks.
  • 21. Karnaugh Maps (K-maps) • Example 1 (continued): – Simplify the sum-of-products expansions. Note: Part (b) cannot be simplified, that is why the solution is the same expression we started with.
  • 22. Karnaugh Maps (K-maps) • Example 2: Note: A K-map in three variables is a rectangle divided into eight cells. The cells represent the eight possible minterms in three variables. Two cells are said to be adjacent if the minterms that they represent differ in exactly one literal.
  • 23. Karnaugh Maps (K-maps) • Example 2 (continued): – The K-maps for these sum-of-products expansions are shown below:
  • 24. Karnaugh Maps (K-maps) • Example 2 (continued): – The grouping of blocks shows that minimal expansions into Boolean sums of Boolean products are: Note: In part (d) note that the prime implicants xz and x y are essential prime implicants, but the prime implicant yz is not essential, because the cells it covers are covered by the other two prime implicants.