Karnaugh Maps (K-Maps) for ISC Class 12: SOP and POS Reduction Step by Step
A complete ISC Class 12 Computer Science guide to Karnaugh maps: cell numbering for 3- and 4-variable maps, grouping rules, SOP and POS reduction with fully solved examples, and the mistakes that cost marks in the board exam.

Karnaugh map questions carry some of the easiest marks in the ISC Computer Science theory paper, as long as you follow the method carefully. This guide covers everything you need: how to lay out the map, how to group, and how to read off SOP and POS expressions, with fully solved examples.
Why K-maps?
A Karnaugh map is a grid that places the outputs of a Boolean function so that neighbouring cells differ in exactly one variable. Grouping neighbouring 1s (or 0s) removes that variable, which gives the simplest expression without long algebra.
Cell layout: Gray code order
Rows and columns follow Gray code order: 00, 01, 11, 10, not 00, 01, 10, 11. Only one bit changes between neighbours.
3-variable map, F(A, B, C)
B'C' B'C BC BC'
(00) (01) (11) (10)
A' (0) | m0 | m1 | m3 | m2 |
A (1) | m4 | m5 | m7 | m6 |4-variable map, F(A, B, C, D)
C'D' C'D CD CD'
A'B' | m0 | m1 | m3 | m2 |
A'B | m4 | m5 | m7 | m6 |
AB | m12 | m13 | m15 | m14 |
AB' | m8 | m9 | m11 | m10 |Memorise this numbering. Many students lose marks by putting m2 and m3 in the wrong columns.
Grouping rules
- Group only adjacent cells: horizontally or vertically, never diagonally.
- A group must contain 1, 2, 4, 8 or 16 cells (a power of 2).
- Make each group as large as possible.
- Use the fewest groups that cover every 1.
- Groups may overlap.
- The map wraps around: the left edge is adjacent to the right edge, the top to the bottom, and the four corners form one group.
Reading a group: a variable that stays the same throughout the group is kept (complemented if it is 0). A variable that changes is eliminated. A pair removes one variable, a quad removes two, and an octet removes three.
Solved example 1: 3-variable SOP
Reduce F(A, B, C) = Σ(0, 2, 3, 4, 6).
B'C' B'C BC BC'
A' | 1 | 0 | 1 | 1 |
A | 1 | 0 | 0 | 1 |- Quad (m0, m2, m4, m6): columns B'C' and BC' wrap around. C = 0 in all four cells, so the term is C'.
- Pair (m2, m3): A = 0 and B = 1, so the term is A'B.
F = C' + A'B
Solved example 2: 4-variable SOP
Reduce F(A, B, C, D) = Σ(0, 1, 4, 5, 10, 11, 14, 15).
- Quad (m0, m1, m4, m5): A = 0 and C = 0 throughout, so the term is A'C'.
- Quad (m10, m11, m14, m15): A = 1 and C = 1 throughout, so the term is AC.
F = A'C' + AC, which is the XNOR of A and C (A ⊙ C).
Solved example 3: POS reduction
For POS, group the 0s instead. In each group, a variable that is 0 is written as it is, and a variable that is 1 is complemented. The terms are then joined with AND.
Reduce F(A, B, C) = π(1, 3, 5, 6, 7).
B'C' B'C BC BC'
A' | 1 | 0 | 0 | 1 |
A | 1 | 0 | 0 | 0 |- Quad of 0s (m1, m3, m5, m7): C = 1 throughout, so the term is (C').
- Pair of 0s (m6, m7): A = 1 and B = 1, so the term is (A' + B').
F = C' · (A' + B')
Check: m6 = 110 gives A' + B' = 0, so F = 0, which is correct. m0 = 000 gives C' = 1 and A' + B' = 1, so F = 1, which is also correct.
Converting between Σ and π
The minterms that are not listed in Σ are exactly the maxterms in π. For a 3-variable function:
Σ(0, 2, 4, 6) = π(1, 3, 5, 7)
Mistakes that cost marks
- Writing the columns in the order 00, 01, 10, 11 instead of the Gray code order 00, 01, 11, 10.
- Missing wrap-around groups, especially the four corners in a 4-variable map.
- Making a group of 3 or 6 cells. Group sizes must be powers of 2.
- Using SOP reading rules on a POS map. In POS, 0 means the variable as it is, and 1 means the complement.
- Not showing the map. In the exam, always draw and label the K-map and each group, because step marks are awarded.
Practice
- Reduce F(A, B, C, D) = Σ(0, 2, 8, 10).
- Reduce F(P, Q, R) = π(0, 2, 4, 6).
- Reduce F(A, B, C) = Σ(1, 3, 5, 7).
Answers:
- B'D': the four corners.
- R: all the 0s have R = 0, which in POS gives the term (R).
- C
Then try the full Boolean algebra questions in our solved ISC Class 12 Computer Science Sample Paper 2027.
Related Posts
Continue learning with these related articles

ISC Practical 2027: Sentence and Date (Vowels, Future Date, Sort by Length) – Algorithm and Java Program
Fully solved ISC Computer Science Practical 2027 blended question: validate a sentence and a date, count the vowels, add that many days to the date (handling month, year and leap-year changes) and sort the words by length while keeping the original order for ties.

ISC Practical 2027: Special Date Checker (Validation and Digit Sum) – Algorithm and Java Program
Fully solved ISC Computer Science Practical 2027 date question: validate a date in DD/MM/YYYY format including leap years, find the days remaining in the month and check whether its digit sum is a perfect square.

ISC Practical 2027: Local Minimum Cells in a Matrix – Algorithm and Java Program
Fully solved ISC Computer Science Practical 2027 matrix question: in an elevation matrix of order M × N, find every Local Minimum Cell (an interior cell strictly lower than its four neighbours) and the smallest one.