SlideShare a Scribd company logo
1 of 26
Computer Organization
Karnaugh Map
The Karnaugh map, also known as the K-map, is a method to simplify boolean
algebra expressions.
The Karnaugh map reduces the need for extensive calculations by taking
advantage of humans' pattern-recognition capability.
The required boolean results are transferred from a truth table onto a two-
dimensional grid where the cells are ordered in Gray code, and each cell
position represents one combination of input conditions, while each cell value
represents the corresponding output value. Optimal groups of 1s or 0s are
identified.
These terms can be used to write a minimal boolean expression representing
the required logic.
Karnaugh Maps - Rules of Simplification
The Karnaugh map uses the following rules for the simplification of
expressions by grouping together adjacent cells containing ones.
1.Groups may not include any cell containing a zero.
2.Groups may be horizontal or vertical, but not
diagonal.
3. Groups must contain 1, 2, 4, 8, or in general 2n
cells.
That is if n = 1, a group will contain two 1's since 21
= 2.
If n = 2, a group will contain four 1's since 22
= 4.
4. Each group should be as large as possible.
5.Each cell containing a one must be in at least one group.
6.Groups may overlap.
7.Groups may wrap around the table.
The leftmost cell in a row may be grouped with the rightmost
cell and the top cell in a column may be grouped with the
bottom cell.
8. There should be as few groups as possible, as long as
this does not contradict any of the previous rules.
Summmary:
No zeros allowed.
No diagonals.
Only power of 2 number of cells in each group.
Groups should be as large as possible.
Every one must be in at least one group.
Overlapping allowed.
Wrap around allowed.
Fewest number of groups possible.
Examples
Example 1:
Consider the following map. The function plotted is: Z = f(A,B) = A + AB.
Note that values of the input variables form
the rows and columns.
That is the logic values of the variables A and B
(with one denoting true form and zero
denoting false form) form the head of the rows
and columns respectively.
The map displayed is a one dimensional type which can be used to
simplify an expression in two variables.
There is a two-dimensional map that can be used for up to four
variables, and a three-dimensional map for up to six variables.
Referring to the map above, the two adjacent 1's are grouped
together.
Through inspection it can be seen that variable B has its true and
false form within the group.
This eliminates variable B leaving only variable A which only has its
true form.
The minimized answer therefore is Z = A.
Example 2
Consider the expression Z = f(A,B) = + A + B plotted on the Karnaugh map:
Pairs of 1's are grouped as shown and the simplified
answer is obtained by using the following steps:
Note that two groups can be formed for the example
given above, the largest rectangular clusters that can
be made consist of two 1s.
Notice that a 1 can belong to more than one group
The first group labeled I, consists of two 1s which
correspond to A = 0, B = 0 and A = 1, B = 0.
In another way, all squares in this example that correspond to the area of the
map where B = 0 contains 1s, independent of the value of A. So when B = 0
the output is 1.
The expression of the output will contain the term
For group labelled II corresponds to the area of the map where A = 0.
The group can therefore be defined as . This implies that when A = 0
the output is 1. The output is therefore 1 whenever B = 0 and A = 0
Hence the simplified answer is Z = +
It is used to minimize number of
logic gates required.
Example 3: Take the Boolean or
binary function described by
the truth table.
A B C D f(A, B, C, D)
0 0 0 0 0 0
1 0 0 0 1 0
2 0 0 1 0 0
3 0 0 1 1 0
4 0 1 0 0 0
5 0 1 0 1 0
6 0 1 1 0 1
7 0 1 1 1 0
8 1 0 0 0 1
9 1 0 0 1 1
10 1 0 1 0 1
11 1 0 1 1 1
12 1 1 0 0 1
13 1 1 0 1 1
14 1 1 1 0 1
15 1 1 1 1 0
Following are two different notations describing the same function in
unsimplified Boolean algebra, using the Boolean variables A,B,C,D
and their inverses.
are the minterms to map (i.e. rows which have output 1 in the truth table).
The values inside
In this case, the four input variables can be combined in 16 different
ways, so the truth table has 16 rows, and the Karnaugh map has 16
positions.
The Karnaugh map is therefore arranged in a 4 × 4 grid.The row and
column values (shown across the top, and down the left side of the
Karnaugh map) are ordered in Gray code rather than binary
numerical order.
Gray code ensures that only one variable changes between each pair
of adjacent cells. Each cell of the completed Karnaugh map contains
a binary digit representing the function's output for that
combination of inputs
After the Karnaugh map has been constructed it is used to find one
of the simplest possible forms—a canonical form—for the information
in the truth table.
Adjacent 1s in the Karnaugh map represent opportunities to simplify
the expression. The minterms ('minimal terms') for the final
expression are found by encircling groups of 1s in the map.
Minterm groups must be rectangular and must have an area that is a
power of two (i.e. 1, 2, 4, 8…). Minterm rectangles should be as large as
possible without containing any 0s. Groups may overlap in order to
make each one larger.
The grid is toroidally connected, which means that rectangular groups
can wrap across the edges. Cells on the extreme right are actually
'adjacent' to those on the far left. similarly, so are those at the very top
and those at the bottom.
Therefore can be a valid term—it includes cells 12 and 8 at the top,
and wraps to the bottom to include cells 10 and 14—as is , which
includes the four corners.
Once the Karnaugh map has been constructed and the adjacent 1s linked
by rectangular and square boxes, the algebraic minterms can be found by
examining which variables stay the same within each box.
For the red grouping:
The variable A is the same and is equal to 1 throughout the box, therefore
it should be included in the algebraic representation of the red minterm.
Variable B does not maintain the same state (it shifts from 1 to 0), and
should therefore be excluded.
C does not change. It is always 0 so its complement, NOT-C, should be
included thus, .
D changes, so it is excluded as well.
Thus the first minterm in the Boolean sum-of-products expression is .
For the green grouping, A and B maintain the same state, while C and D
change. B is 0 and has to be negated before it can be included. Thus the
second term is .
In the same way, the blue grouping gives the term .
The solutions of each grouping are combined .
 Thus the Karnaugh map has guided a simplification of
to
Inverse
The inverse of a function is solved in the same way by grouping the 0s
instead.
The three terms to cover the inverse are all shown with grey boxes with
different colored borders. This yields the inverse:
Through the use of De Morgan law the product of sums can be
determined:
Don't cares are usually indicated on the map with a dash or X.
Karnaugh maps also allow easy minimizations of functions whose
truth tables include “don’t care” conditions.
A "don't care" condition is a combination of inputs for which the
designer doesn't care what the output is.
Therefore "don't care" conditions can either be included in or
excluded from any circled group, whichever makes it larger. They
are usually indicated on the map with a dash or X.
The example on the right is the same as the example above but
with the value of F for ABCD = 1111 replaced by a "don't care". This
allows the red term to expand all the way down and, thus, removes
the green term completely.
This yields the new minimum equation:
Note that the first term is just A not AC . In this case, the don't care
has dropped a term (the green); simplified another (the red); and
removed the race hazard (the yellow as shown in a following
section).
The inverse case is simplified as follows (SOP)
By
S.Vanitha,Chennai

More Related Content

What's hot

KARNAUGH MAP(K-MAP)
KARNAUGH MAP(K-MAP)KARNAUGH MAP(K-MAP)
KARNAUGH MAP(K-MAP)mihir jain
 
Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits DrSonali Vyas
 
multiplexers and demultiplexers
 multiplexers and demultiplexers multiplexers and demultiplexers
multiplexers and demultiplexersUnsa Shakir
 
Error detection & correction codes
Error detection & correction codesError detection & correction codes
Error detection & correction codesRevathi Subramaniam
 
Encoder & Decoder
Encoder & DecoderEncoder & Decoder
Encoder & DecoderSyed Saeed
 
Half adder & full adder
Half adder & full adderHalf adder & full adder
Half adder & full adderGaditek
 
BOOLEAN ALGEBRA
BOOLEAN ALGEBRA BOOLEAN ALGEBRA
BOOLEAN ALGEBRA Shaik Aman
 
Presentation on cyclic redundancy check (crc)
Presentation on cyclic redundancy check (crc)Presentation on cyclic redundancy check (crc)
Presentation on cyclic redundancy check (crc)Sudhanshu Srivastava
 
Boolean algebra And Logic Gates
Boolean algebra And Logic GatesBoolean algebra And Logic Gates
Boolean algebra And Logic GatesKumar
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic CircuitRamasubbu .P
 
Presentation on Karnaugh Map
Presentation  on Karnaugh MapPresentation  on Karnaugh Map
Presentation on Karnaugh MapKawsar Ahmed
 
Parity Generator and Parity Checker
Parity Generator and Parity CheckerParity Generator and Parity Checker
Parity Generator and Parity CheckerJignesh Navdiya
 
Introduction to digital logic
Introduction to digital logicIntroduction to digital logic
Introduction to digital logicKamal Acharya
 

What's hot (20)

KARNAUGH MAP(K-MAP)
KARNAUGH MAP(K-MAP)KARNAUGH MAP(K-MAP)
KARNAUGH MAP(K-MAP)
 
Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits
 
Digital Logic circuit
Digital Logic circuitDigital Logic circuit
Digital Logic circuit
 
multiplexers and demultiplexers
 multiplexers and demultiplexers multiplexers and demultiplexers
multiplexers and demultiplexers
 
Error detection & correction codes
Error detection & correction codesError detection & correction codes
Error detection & correction codes
 
Encoder & Decoder
Encoder & DecoderEncoder & Decoder
Encoder & Decoder
 
Half adder & full adder
Half adder & full adderHalf adder & full adder
Half adder & full adder
 
13 Boolean Algebra
13 Boolean Algebra13 Boolean Algebra
13 Boolean Algebra
 
K map.
K map.K map.
K map.
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
BOOLEAN ALGEBRA
BOOLEAN ALGEBRA BOOLEAN ALGEBRA
BOOLEAN ALGEBRA
 
Registers
RegistersRegisters
Registers
 
Presentation on cyclic redundancy check (crc)
Presentation on cyclic redundancy check (crc)Presentation on cyclic redundancy check (crc)
Presentation on cyclic redundancy check (crc)
 
Boolean algebra And Logic Gates
Boolean algebra And Logic GatesBoolean algebra And Logic Gates
Boolean algebra And Logic Gates
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
 
Presentation on Karnaugh Map
Presentation  on Karnaugh MapPresentation  on Karnaugh Map
Presentation on Karnaugh Map
 
Subtractor (1)
Subtractor (1)Subtractor (1)
Subtractor (1)
 
Parity Generator and Parity Checker
Parity Generator and Parity CheckerParity Generator and Parity Checker
Parity Generator and Parity Checker
 
Introduction to digital logic
Introduction to digital logicIntroduction to digital logic
Introduction to digital logic
 
Binary codes
Binary codesBinary codes
Binary codes
 

Viewers also liked

Karnaugh Mapping Explained
Karnaugh Mapping ExplainedKarnaugh Mapping Explained
Karnaugh Mapping Explainedml4ml4
 
Kmap Slideshare
Kmap SlideshareKmap Slideshare
Kmap Slidesharetech4us
 
Logic simplification sop and pos forms
Logic simplification sop and pos formsLogic simplification sop and pos forms
Logic simplification sop and pos formsManesh T
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebraGagan Deep
 
Karnaugh maps
Karnaugh mapsKarnaugh maps
Karnaugh mapsAJAL A J
 
Chapter 06 boolean algebra
Chapter 06 boolean algebraChapter 06 boolean algebra
Chapter 06 boolean algebraHareem Aslam
 
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
 
Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1Qundeel
 
Minterm and maxterm
Minterm and maxtermMinterm and maxterm
Minterm and maxtermparsa.khan64
 
CBSE XII Boolean Algebra
CBSE XII Boolean AlgebraCBSE XII Boolean Algebra
CBSE XII Boolean AlgebraGuru Ji
 
Computer Oragnization Flipflops
Computer Oragnization FlipflopsComputer Oragnization Flipflops
Computer Oragnization FlipflopsVanitha Chandru
 
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 gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.Satya P. Joshi
 
The Karnaugh Map
The Karnaugh MapThe Karnaugh Map
The Karnaugh MapSoban Ahmad
 

Viewers also liked (20)

Karnaugh Mapping Explained
Karnaugh Mapping ExplainedKarnaugh Mapping Explained
Karnaugh Mapping Explained
 
K map
K mapK map
K map
 
Karnaugh Graph or K-Map
Karnaugh Graph or K-MapKarnaugh Graph or K-Map
Karnaugh Graph or K-Map
 
Kmap Slideshare
Kmap SlideshareKmap Slideshare
Kmap Slideshare
 
Basics of K map
Basics of K mapBasics of K map
Basics of K map
 
Logic simplification sop and pos forms
Logic simplification sop and pos formsLogic simplification sop and pos forms
Logic simplification sop and pos forms
 
Karnaugh Map
Karnaugh MapKarnaugh Map
Karnaugh Map
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Karnaugh maps
Karnaugh mapsKarnaugh maps
Karnaugh maps
 
Karnaugh Maps
Karnaugh MapsKarnaugh Maps
Karnaugh Maps
 
Chapter 06 boolean algebra
Chapter 06 boolean algebraChapter 06 boolean algebra
Chapter 06 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
 
Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1
 
BOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATEBOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATE
 
Minterm and maxterm
Minterm and maxtermMinterm and maxterm
Minterm and maxterm
 
CBSE XII Boolean Algebra
CBSE XII Boolean AlgebraCBSE XII Boolean Algebra
CBSE XII Boolean Algebra
 
Computer Oragnization Flipflops
Computer Oragnization FlipflopsComputer Oragnization Flipflops
Computer Oragnization Flipflops
 
Digital logic gates and Boolean algebra
Digital logic gates and Boolean algebraDigital logic gates and Boolean algebra
Digital logic gates and Boolean algebra
 
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
 
The Karnaugh Map
The Karnaugh MapThe Karnaugh Map
The Karnaugh Map
 

Similar to Karnaugh map

Karnaughmaprev1 130728135103-phpapp01
Karnaughmaprev1 130728135103-phpapp01Karnaughmaprev1 130728135103-phpapp01
Karnaughmaprev1 130728135103-phpapp01Neha Agarwal
 
All aboutcircuits karnaugh maps
All aboutcircuits karnaugh mapsAll aboutcircuits karnaugh maps
All aboutcircuits karnaugh mapsmarangburu42
 
Karnaugh mapping allaboutcircuits
Karnaugh mapping allaboutcircuitsKarnaugh mapping allaboutcircuits
Karnaugh mapping allaboutcircuitsmarangburu42
 
ECE 3rd_Unit No. 1_K-Map_DSD.ppt
ECE 3rd_Unit No. 1_K-Map_DSD.pptECE 3rd_Unit No. 1_K-Map_DSD.ppt
ECE 3rd_Unit No. 1_K-Map_DSD.pptsonusreekumar
 
Chapter 3 exponential and logarithmic functions
Chapter 3 exponential and logarithmic functionsChapter 3 exponential and logarithmic functions
Chapter 3 exponential and logarithmic functionsSarah Sue Calbio
 
Karnaugh map (k map)
Karnaugh map (k map)Karnaugh map (k map)
Karnaugh map (k map)Adeen Ali
 
MC0082 –Theory of Computer Science
MC0082 –Theory of Computer ScienceMC0082 –Theory of Computer Science
MC0082 –Theory of Computer ScienceAravind NC
 
Unlock Your Mathematical Potential with MathAssignmentHelp.com! 🧮✨
Unlock Your Mathematical Potential with MathAssignmentHelp.com! 🧮✨Unlock Your Mathematical Potential with MathAssignmentHelp.com! 🧮✨
Unlock Your Mathematical Potential with MathAssignmentHelp.com! 🧮✨Maths Assignment Help
 
Numerical Solution of Linear algebraic Equation
Numerical Solution of Linear algebraic EquationNumerical Solution of Linear algebraic Equation
Numerical Solution of Linear algebraic Equationpayalpriyadarshinisa1
 

Similar to Karnaugh map (20)

Karnaughmaprev1 130728135103-phpapp01
Karnaughmaprev1 130728135103-phpapp01Karnaughmaprev1 130728135103-phpapp01
Karnaughmaprev1 130728135103-phpapp01
 
DCF - K map
DCF - K mapDCF - K map
DCF - K map
 
All aboutcircuits karnaugh maps
All aboutcircuits karnaugh mapsAll aboutcircuits karnaugh maps
All aboutcircuits karnaugh maps
 
K Maps.pptx
K Maps.pptxK Maps.pptx
K Maps.pptx
 
Karnaugh maps
Karnaugh mapsKarnaugh maps
Karnaugh maps
 
Karnaugh mapping allaboutcircuits
Karnaugh mapping allaboutcircuitsKarnaugh mapping allaboutcircuits
Karnaugh mapping allaboutcircuits
 
Catalan Numbers
Catalan NumbersCatalan Numbers
Catalan Numbers
 
Boolean algebra1
Boolean algebra1Boolean algebra1
Boolean algebra1
 
ECE 3rd_Unit No. 1_K-Map_DSD.ppt
ECE 3rd_Unit No. 1_K-Map_DSD.pptECE 3rd_Unit No. 1_K-Map_DSD.ppt
ECE 3rd_Unit No. 1_K-Map_DSD.ppt
 
KARNAUGH MAP
KARNAUGH MAPKARNAUGH MAP
KARNAUGH MAP
 
Rules of Karnaugh Map
Rules of Karnaugh MapRules of Karnaugh Map
Rules of Karnaugh Map
 
Chapter 3 exponential and logarithmic functions
Chapter 3 exponential and logarithmic functionsChapter 3 exponential and logarithmic functions
Chapter 3 exponential and logarithmic functions
 
Karnaugh map (k map)
Karnaugh map (k map)Karnaugh map (k map)
Karnaugh map (k map)
 
MC0082 –Theory of Computer Science
MC0082 –Theory of Computer ScienceMC0082 –Theory of Computer Science
MC0082 –Theory of Computer Science
 
Unlock Your Mathematical Potential with MathAssignmentHelp.com! 🧮✨
Unlock Your Mathematical Potential with MathAssignmentHelp.com! 🧮✨Unlock Your Mathematical Potential with MathAssignmentHelp.com! 🧮✨
Unlock Your Mathematical Potential with MathAssignmentHelp.com! 🧮✨
 
Numerical Solution of Linear algebraic Equation
Numerical Solution of Linear algebraic EquationNumerical Solution of Linear algebraic Equation
Numerical Solution of Linear algebraic Equation
 
Chapter-3.pdf
Chapter-3.pdfChapter-3.pdf
Chapter-3.pdf
 
Chapter-3.pdf
Chapter-3.pdfChapter-3.pdf
Chapter-3.pdf
 
Calculus
CalculusCalculus
Calculus
 
Report
ReportReport
Report
 

More from Vanitha Chandru

More from Vanitha Chandru (8)

Binary tree
Binary  treeBinary  tree
Binary tree
 
Shift Register
Shift RegisterShift Register
Shift Register
 
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, EncoderCOMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
 
Text-Elements of multimedia
Text-Elements of multimediaText-Elements of multimedia
Text-Elements of multimedia
 
Light effect
Light effectLight effect
Light effect
 
Alexander the Great
Alexander the GreatAlexander the Great
Alexander the Great
 
Swami Vivekananda's Quotes
Swami Vivekananda's QuotesSwami Vivekananda's Quotes
Swami Vivekananda's Quotes
 
Customers
CustomersCustomers
Customers
 

Recently uploaded

My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetEnjoy Anytime
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 

Recently uploaded (20)

The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 

Karnaugh map

  • 2. The Karnaugh map, also known as the K-map, is a method to simplify boolean algebra expressions. The Karnaugh map reduces the need for extensive calculations by taking advantage of humans' pattern-recognition capability. The required boolean results are transferred from a truth table onto a two- dimensional grid where the cells are ordered in Gray code, and each cell position represents one combination of input conditions, while each cell value represents the corresponding output value. Optimal groups of 1s or 0s are identified. These terms can be used to write a minimal boolean expression representing the required logic.
  • 3. Karnaugh Maps - Rules of Simplification
  • 4. The Karnaugh map uses the following rules for the simplification of expressions by grouping together adjacent cells containing ones. 1.Groups may not include any cell containing a zero. 2.Groups may be horizontal or vertical, but not diagonal.
  • 5. 3. Groups must contain 1, 2, 4, 8, or in general 2n cells. That is if n = 1, a group will contain two 1's since 21 = 2. If n = 2, a group will contain four 1's since 22 = 4.
  • 6. 4. Each group should be as large as possible. 5.Each cell containing a one must be in at least one group.
  • 8. 7.Groups may wrap around the table. The leftmost cell in a row may be grouped with the rightmost cell and the top cell in a column may be grouped with the bottom cell.
  • 9. 8. There should be as few groups as possible, as long as this does not contradict any of the previous rules.
  • 10. Summmary: No zeros allowed. No diagonals. Only power of 2 number of cells in each group. Groups should be as large as possible. Every one must be in at least one group. Overlapping allowed. Wrap around allowed. Fewest number of groups possible.
  • 12. Example 1: Consider the following map. The function plotted is: Z = f(A,B) = A + AB. Note that values of the input variables form the rows and columns. That is the logic values of the variables A and B (with one denoting true form and zero denoting false form) form the head of the rows and columns respectively. The map displayed is a one dimensional type which can be used to simplify an expression in two variables. There is a two-dimensional map that can be used for up to four variables, and a three-dimensional map for up to six variables.
  • 13. Referring to the map above, the two adjacent 1's are grouped together. Through inspection it can be seen that variable B has its true and false form within the group. This eliminates variable B leaving only variable A which only has its true form. The minimized answer therefore is Z = A.
  • 14. Example 2 Consider the expression Z = f(A,B) = + A + B plotted on the Karnaugh map: Pairs of 1's are grouped as shown and the simplified answer is obtained by using the following steps: Note that two groups can be formed for the example given above, the largest rectangular clusters that can be made consist of two 1s. Notice that a 1 can belong to more than one group The first group labeled I, consists of two 1s which correspond to A = 0, B = 0 and A = 1, B = 0. In another way, all squares in this example that correspond to the area of the map where B = 0 contains 1s, independent of the value of A. So when B = 0 the output is 1.
  • 15. The expression of the output will contain the term For group labelled II corresponds to the area of the map where A = 0. The group can therefore be defined as . This implies that when A = 0 the output is 1. The output is therefore 1 whenever B = 0 and A = 0 Hence the simplified answer is Z = +
  • 16. It is used to minimize number of logic gates required. Example 3: Take the Boolean or binary function described by the truth table. A B C D f(A, B, C, D) 0 0 0 0 0 0 1 0 0 0 1 0 2 0 0 1 0 0 3 0 0 1 1 0 4 0 1 0 0 0 5 0 1 0 1 0 6 0 1 1 0 1 7 0 1 1 1 0 8 1 0 0 0 1 9 1 0 0 1 1 10 1 0 1 0 1 11 1 0 1 1 1 12 1 1 0 0 1 13 1 1 0 1 1 14 1 1 1 0 1 15 1 1 1 1 0 Following are two different notations describing the same function in unsimplified Boolean algebra, using the Boolean variables A,B,C,D and their inverses.
  • 17. are the minterms to map (i.e. rows which have output 1 in the truth table). The values inside In this case, the four input variables can be combined in 16 different ways, so the truth table has 16 rows, and the Karnaugh map has 16 positions. The Karnaugh map is therefore arranged in a 4 × 4 grid.The row and column values (shown across the top, and down the left side of the Karnaugh map) are ordered in Gray code rather than binary numerical order. Gray code ensures that only one variable changes between each pair of adjacent cells. Each cell of the completed Karnaugh map contains a binary digit representing the function's output for that combination of inputs
  • 18. After the Karnaugh map has been constructed it is used to find one of the simplest possible forms—a canonical form—for the information in the truth table. Adjacent 1s in the Karnaugh map represent opportunities to simplify the expression. The minterms ('minimal terms') for the final expression are found by encircling groups of 1s in the map. Minterm groups must be rectangular and must have an area that is a power of two (i.e. 1, 2, 4, 8…). Minterm rectangles should be as large as possible without containing any 0s. Groups may overlap in order to make each one larger. The grid is toroidally connected, which means that rectangular groups can wrap across the edges. Cells on the extreme right are actually 'adjacent' to those on the far left. similarly, so are those at the very top and those at the bottom. Therefore can be a valid term—it includes cells 12 and 8 at the top, and wraps to the bottom to include cells 10 and 14—as is , which includes the four corners.
  • 19.
  • 20.
  • 21. Once the Karnaugh map has been constructed and the adjacent 1s linked by rectangular and square boxes, the algebraic minterms can be found by examining which variables stay the same within each box. For the red grouping: The variable A is the same and is equal to 1 throughout the box, therefore it should be included in the algebraic representation of the red minterm. Variable B does not maintain the same state (it shifts from 1 to 0), and should therefore be excluded. C does not change. It is always 0 so its complement, NOT-C, should be included thus, . D changes, so it is excluded as well. Thus the first minterm in the Boolean sum-of-products expression is . For the green grouping, A and B maintain the same state, while C and D change. B is 0 and has to be negated before it can be included. Thus the second term is . In the same way, the blue grouping gives the term . The solutions of each grouping are combined .
  • 22.  Thus the Karnaugh map has guided a simplification of to Inverse The inverse of a function is solved in the same way by grouping the 0s instead. The three terms to cover the inverse are all shown with grey boxes with different colored borders. This yields the inverse: Through the use of De Morgan law the product of sums can be determined:
  • 23. Don't cares are usually indicated on the map with a dash or X. Karnaugh maps also allow easy minimizations of functions whose truth tables include “don’t care” conditions. A "don't care" condition is a combination of inputs for which the designer doesn't care what the output is. Therefore "don't care" conditions can either be included in or excluded from any circled group, whichever makes it larger. They are usually indicated on the map with a dash or X. The example on the right is the same as the example above but with the value of F for ABCD = 1111 replaced by a "don't care". This allows the red term to expand all the way down and, thus, removes the green term completely.
  • 24.
  • 25. This yields the new minimum equation: Note that the first term is just A not AC . In this case, the don't care has dropped a term (the green); simplified another (the red); and removed the race hazard (the yellow as shown in a following section). The inverse case is simplified as follows (SOP)