1. By Ms. Nita Arora, PGT Computer Science Kulachi Hansraj Model School e -Lesson
2. Subject : Computer Science (083) Unit : Boolean Algebra Topic : Minimization of Boolean Expressions Using Karnaugh Maps (K-Maps) Category : Senior Secondary Class : XII
3.
4.
5.
6. References For K-Map Minimizer Download http:// karnaugh.shuriksoft.com Thomas C. Bartee, DIGITAL COMPUTER FUNDAMENTALS, McGraw Hill International. Computer Science (Class XII) By Sumita Arora http://www.ee.surrey.ac.uk/Projects/Labview/minimisation/karrules.html
9. M INIMIZATION OF B OOLEAN E XPRESSION Different methods Karnaugh Maps Algebraic Method
10. K arnaugh M aps WHAT is Karnaugh Map (K-Map)? A special version of a truth table Karnaugh Map (K-Map) is a GRAPHICAL display of fundamental terms in a Truth Table . Don’t require the use of Boolean Algebra theorems and equation Works with 2,3,4 (even more) input variables (gets more and more difficult with more variables) NEXT
11. K-maps provide an alternate way of simplifying logic circuits. One can transfer logic values from a Truth Table into a K-Map. The arrangement of 0’s and 1’s within a map helps in visualizing, leading directly to Simplified Boolean Expression K arnaugh M aps……… (Contd.) NEXT
12. Correspondence between the Karnaugh Map and the Truth Table for the general case of a two Variable Problem Truth Table 2 Variable K-Map K arnaugh M aps……… (Contd.) A B 0 0 0 1 1 0 1 1 F a b c d A B 0 1 0 a b 1 c d The diagram below illustrates the correspondence between the Karnaugh map and the truth table for the general case of a two variable problem. Truth Table Karnaugh Map A B 0 1 0 a b 1 c d
13. D rawing a K arnaugh M ap (K-Map) K-map is a rectangle made up of certain number of SQUARES For a given Boolean function there are 2 N squares where N is the number of variables (inputs) In a K-Map for a Boolean Function with 2 Variables f(a,b) there will be 2 2 =4 squares Each square is different from its neighbour by ONE Literal Each SQUARE represents a MAXTERM or MINTERM NEXT
14. Karnaugh maps consist of a set of 2 2 squares where 2 is the number of variables in the Boolean expression being minimized. Truth Table 2 Variable K-Map K arnaugh M aps……… (Contd.) 1 The diagram below illustrates the correspondence between the Karnaugh map and the truth table for the general case of a two variable problem. Truth Table Karnaugh Map A B 0 1 0 0 1 1 1 1 A B F 0 0 0 0 1 1 1 0 1 1 1 1 Minterm A’B’ A’B A B’ A B Maxterm A + B A + B’ A’ + B A’ + B’ NEXT
15.
16. M inimization S teps (SOP Expression with 4 var.) The process has following steps: Draw the K-Map for given function as shown Enter the function values into the K-Map by placing 1's and 0's into the appropriate Cells 1 1 1 1 A B C D 00 01 11 10 00 0 0 0 1 0 3 0 2 01 0 0 0 0 11 1 1 0 0 10 1 1 0 0 0 5 0 4 0 7 0 6 0 0 12 13 15 14 8 9 11 10 NEXT
17.
18. M inimization S teps (SOP Expression) Select the least number of groups that cover all the 1's. Ensure that every 1 is in a group. 1's can be part of more than one group. Eliminate Redundant Groups 1 1 0 0 1 1 0 1 0 1 1 1 0 1 1 0 0 wx yz 00 01 11 10 00 01 11 10 3 2 4 5 7 6 1 12 13 15 14 8 9 11 10 NEXT