Copyright © Philip M. Parker, INSEAD. Terms of Use.

| Domain | Definition |
Computing | A rectangular diagram of a logic function of variables drawn with overlapping rectangles representing a unique combination of the logic variables and such that an intersection is shown for all combinations. Source: European Union. (references) |
Math | A method for minimizing a boolean expression, usually aided by a rectangular map of the value of the expression for all possible input values. Input values are arranged in a Gray code. Maximal rectangular groups that cover the inputs where the expression is true give a minimum implementation. (references) |
Source: compiled by the editor from various references; see credits. | |
(From Wikipedia, the free Encyclopedia)
A Karnaugh map is an excellent aid for simplification of up to six variables, but with more variables it becomes hard even for our brain to discern optimal patterns. For expressions having more than 4 variables, the Quine-McCluskey algorithm, also called the method of prime implicants, should be used. This algorithm uses a deterministic approach to simplification of boolean expressions. Thus, following the steps of the algorithm ensures that the simplest expression can be found. This is especially useful for creating software programs that simplify any given boolean expression.
Karnaugh maps also help teach about Boolean functions and minimization.
Consider the following function:
The binary digits in the map represent the function's output for any given combination of inputs. We write 0 in the upper leftmost corner of the map because f = 0 when A = 0, B = 0, C = 1, D = 0. Similarly we mark the bottom right corner as 1 because A = 1, B = 0, C = 0, D = 0 gives f = 1.
After the Karnaugh map has been constructed our next task is to find the minimal terms to use in the final expression. These terms are found by encircling the 1's in the map. The encirclings can only encompass 2n fields, where n is an integer ≥ 0 (1, 2, 4, 8...). They should be as large as possible. The optimal encirclings in this map are marked by the green, red and blue lines.
For each of these encirclings we find those variables that have the same state in each of the fields in the encircling. For the first encircling (the red one) we find that:
For the green encircling we see that A and B maintains the same state, C and D changes. But B is 0 and has to be negated before it can be included.
The second term becomes AB'.
By working the blue encircling the same way we find the term BC'D' and our final expression for the function is ready: AC + AB' + BC'D'.
The inverse of a function is solved in the same way by encircling the 0's instead.
It is worth mentioning is that the number of product terms for an encircling P is:
Example
This function has this truth table:A B C D f
0 0 0 0 0
0 0 0 1 0
0 0 1 0 0
0 0 1 1 0
0 1 0 0 1
0 1 0 1 0
0 1 1 0 0
0 1 1 1 0
1 0 0 0 1
1 0 0 1 1
1 0 1 0 1
1 0 1 1 1
1 1 0 0 1
1 1 0 1 0
1 1 1 0 1
1 1 1 1 1.
The input variables can be combined in 16 different ways, so our Karnaugh map has to have 16 positions. The most convenient way to arrange this is in a 4x4 grid.
The first term becomes AC.
where n is the number of variables in the Karnaugh map and x the number of fields encircled.
References
See also: Venn diagram, Quine-McCluskey algorithm
Source: adapted by the editor from Wikipedia, the free encyclopedia under a copyleft GNU Free Documentation License (GFDL) from the article "Karnaugh map."
| The following statistics estimate the number of searches per day across the major English-language search engines as identified by various trade publications. Hyperlinks lead to commercial use of the expression at Amazon.com. |
| Expression | Frequency per Day |
karnaugh map | 40 |
karnaugh map software | 3 |
| Source: compiled by the editor from various references; see credits. | |
| Language | Translations for "KARNAUGH MAP"; alternative meanings/domain in parentheses. | ||||||||||||||||
Danish | Karnaugh-kort, Karnaugh-diagram. (various references) | ||||||||||||||||
Dutch | Karnaugh-diagram. (various references) | ||||||||||||||||
French | table de Karnaugh. (various references) | ||||||||||||||||
German | Karnaugh-Tafel (K-map). (various references) | ||||||||||||||||
Greek | χάρτης Karnaugh (K-map). (various references) | ||||||||||||||||
Italian | mappa di Karnaugh (K-map). (various references) | ||||||||||||||||
Pig Latin | arnaughkay apmay quadro de Karnaugh (K-map), mapa Karnaugh (K-map). (various references) mapa de Karnaugh (K-map). (various references) | ||||||||||||||||
Scrabble® Enable2K-Verified Anagrams | |
| Words within the letters "a-a-a-g-h-k-m-n-p-r-u" | |
-4 letters: agrapha, anagram, mahuang, pangram, pugmark. | |
-5 letters: amarna, graham, granum, hangar, hangup, kahuna, kurgan, markup, panama, parang, punkah, purana, ragman. | |
| Source: compiled by the editor from various references; see credits. SCRABBLE® is a registered trademark. All intellectual property rights in and to the game are owned in the U.S.A and Canada by Hasbro Inc., and throughout the rest of the world by J.W. Spear & Sons Limited of Maidenhead, Berkshire, England, a subsidiary of Mattel Inc. Mattel and Spear are not affiliated with Hasbro. | |
Copyright © Philip M. Parker, INSEAD. Terms of Use.