We use maps to find patterns.
Sometimes, math is about finding patterns.
Sometimes, math is about finding patterns.
You can find these patterns by drawing boxes around groups of 1s or 0s. These boxes must be rectangles. They must also have a size that is a power of two. This means the groups can have 1, 2, 4, or 8 cells. The map can even wrap around the edges. It works like a torus, which is a shape like a donut. 
Computers and digital machines use logic to make decisions.
To use the map, you start with a truth table. A truth table lists every possible input and the result. You move these results onto a two-dimensional grid.
People have been working on these ideas for a long time.
The map has some very interesting rules about its shape. 
Engineers also use these maps to find race hazards.
A Karnaugh map, often called a K-map, is a visual tool used to simplify Boolean algebra expressions.
To build a Karnaugh map, you begin with a truth table. A truth table is a list that shows every possible combination of inputs and the resulting output.
Once the grid is filled, the next step is grouping. The goal is to find the simplest possible form of the original information, known as a canonical form.
The history of these diagrams shows a long evolution of logical thinking. In 1881, Allan Marquand created a logical diagram. In 1952, Edward W. Veitch rediscovered these ideas and created the Veitch chart. Finally, in 1953, Maurice Karnaugh introduced his refined technique. Because of these contributors, the maps are sometimes called Marquand–Veitch diagrams or Karnaugh–Veitch maps. They represent an early advance in formal logic methodology. These tools remain essential in our modern digital age for designing reliable computer hardware.
One of the most unique features of a Karnaugh map is its connectivity. You can visualize the grid as a torus, which is a shape like a donut. 
Designers also use Karnaugh maps to handle "don't care" conditions. A "don't care" occurs when a specific combination of inputs has an output that does not matter to the designer. On a map, these are usually marked with a dash or an X. You can treat a "don't care" cell as either a 1 or a 0. This flexibility allows you to expand your rectangular groups. Larger groups result in fewer terms in your final equation. This can simplify the circuit even further and even remove unnecessary parts of the logic.
Finally, Karnaugh maps are critical for identifying and fixing race hazards. A race hazard is a momentary glitch where an output might flicker incorrectly during a transition.
🖼️ Images & Media (7)
More to explore
✨ What else?
Related topics you might enjoy
🔬 Go deeper
More advanced topics to explore
🪜 Step back
Simpler topics to build understanding
What is Nepedia?
A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.