SlideShare una empresa de Scribd logo
1 de 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.

Más contenido relacionado

La actualidad más candente

Error detection & correction codes
Error detection & correction codesError detection & correction codes
Error detection & correction codesRevathi Subramaniam
 
Kmap..(karnaugh map)
Kmap..(karnaugh map)Kmap..(karnaugh map)
Kmap..(karnaugh map)Zain Jafri
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flopShuaib Hotak
 
Parity Generator and Parity Checker
Parity Generator and Parity CheckerParity Generator and Parity Checker
Parity Generator and Parity CheckerJignesh Navdiya
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital ElectronicsJanki Shah
 
SHIFT REGISTERS
SHIFT REGISTERSSHIFT REGISTERS
SHIFT REGISTERSkumari36
 
Decoder Full Presentation
Decoder Full Presentation Decoder Full Presentation
Decoder Full Presentation Adeel Rasheed
 
boolean algebra and logic simplification
boolean algebra and logic simplificationboolean algebra and logic simplification
boolean algebra and logic simplificationUnsa Shakir
 
SOP POS, Minterm and Maxterm
SOP POS, Minterm and MaxtermSOP POS, Minterm and Maxterm
SOP POS, Minterm and MaxtermSelf-employed
 
Half adder & full adder
Half adder & full adderHalf adder & full adder
Half adder & full adderGaditek
 
Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits DrSonali Vyas
 
Decoders
DecodersDecoders
DecodersRe Man
 

La actualidad más candente (20)

Multiplexers
MultiplexersMultiplexers
Multiplexers
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
Error detection & correction codes
Error detection & correction codesError detection & correction codes
Error detection & correction codes
 
Kmap..(karnaugh map)
Kmap..(karnaugh map)Kmap..(karnaugh map)
Kmap..(karnaugh map)
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flop
 
flip flops
flip flops flip flops
flip flops
 
Counters
CountersCounters
Counters
 
Signed Binary Numbers
Signed Binary NumbersSigned Binary Numbers
Signed Binary Numbers
 
Parity Generator and Parity Checker
Parity Generator and Parity CheckerParity Generator and Parity Checker
Parity Generator and Parity Checker
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
 
Latches and flip flops
Latches and flip flopsLatches and flip flops
Latches and flip flops
 
SHIFT REGISTERS
SHIFT REGISTERSSHIFT REGISTERS
SHIFT REGISTERS
 
Decoder Full Presentation
Decoder Full Presentation Decoder Full Presentation
Decoder Full Presentation
 
boolean algebra and logic simplification
boolean algebra and logic simplificationboolean algebra and logic simplification
boolean algebra and logic simplification
 
SOP POS, Minterm and Maxterm
SOP POS, Minterm and MaxtermSOP POS, Minterm and Maxterm
SOP POS, Minterm and Maxterm
 
Half adder & full adder
Half adder & full adderHalf adder & full adder
Half adder & full adder
 
STLD-Combinational logic design
STLD-Combinational  logic design STLD-Combinational  logic design
STLD-Combinational logic design
 
Number system conversion
Number system conversionNumber system conversion
Number system conversion
 
Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits
 
Decoders
DecodersDecoders
Decoders
 

Destacado

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
 
Minterm and maxterm
Minterm and maxtermMinterm and maxterm
Minterm and maxtermparsa.khan64
 
Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1Qundeel
 

Destacado (9)

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
 
Minterm and maxterm
Minterm and maxtermMinterm and maxterm
Minterm and maxterm
 
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
 

Similar a 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
 

Similar a 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
 

Último

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfSanaAli374401
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
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
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 

Último (20)

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
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
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 

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.