KwickAcademy Computer Systems · 9 min · free
Canonical SOP and POS Forms and Karnaugh Maps
Learn minterms and maxterms, canonical SOP and POS forms, and minimising with 2, 3 and 4 variable Karnaugh maps. Canonical SOP is the sum of minterms where F = 1; canonical POS is the product of maxterms where F = 0.
Follows the syllabus of: ISC Class 12 Computer Science (868)
On screen in this lesson
Two new words: literal and term
| Literal: a variable or its complement, like A or A' |
| Product term: literals joined by AND, like A.B' |
| Sum term: literals joined by OR, like A+B' |
| Canonical: every term has every variable |
Minterms and maxterms
| A B | Minterm | Maxterm |
|---|---|---|
| 0 0 | m0 = A'.B' | M0 = A+B |
| 0 1 | m1 = A'.B | M1 = A+B' |
| 1 0 | m2 = A.B' | M2 = A'+B |
| 1 1 | m3 = A.B | M3 = A'+B' |
Minterm and maxterm rules
| Minterm: 0 gets a bar, 1 stays; joined by AND |
| Maxterm: 1 gets a bar, 0 stays; joined by OR |
| Row number in binary gives the index |
| m and M of the same row are complements |
Our example function F
| A B C | F | Index |
|---|---|---|
| 0 0 0 | 1 | 0 |
| 0 1 0 | 1 | 2 |
| 1 0 0 | 1 | 4 |
| 1 0 1 | 1 | 5 |
| 1 1 0 | 1 | 6 |
| other rows | 0 | 1, 3, 7 |
Canonical SOP
| Part | Form | Value |
|---|---|---|
| Rows with F = 1 | 0, 2, 4, 5, 6 | minterms |
| Short form | F = Σ(0,2,4,5,6) | sigma |
| First term | m0 = A'.B'.C' | row 000 |
Canonical POS
| Part | Form | Value |
|---|---|---|
| Rows with F = 0 | 1, 3, 7 | maxterms |
| Short form | F = Π(1,3,7) | pi |
| M1 | A+B+C' | row 001 |
Quick answers
What is the minimal form of F = Σ(1,3,5,7)?
F = C.
What group sizes are allowed in a K-map?
1, 2, 4, 8 or 16.
KwickClips from this lesson
Short clips, one idea each. Good for revision the night before.
In a minterm, which input gets a bar?40 sec
Which rows does POS use?42 sec
Why does 11 come before 10?41 sec
Why do the four corners form a group?40 secThe full lesson, in text
Hello students, welcome to Kwickprep. A truth table tells you what a circuit must do, but not how to build it cheaply. Is there a sure method to find the shortest expression? Yes. Today we learn minterms and maxterms, canonical SOP and POS forms, and Karnaugh maps with two, three and four variables.
Before minterms, we need four simple words. A literal is a variable or its complement, such as A or not A. A product term is literals joined by AND, such as A dot not B. A sum term is literals joined by OR, such as A plus not B. Canonical means full form: every term contains every variable exactly once.
Each row of a truth table has one minterm and one maxterm. A minterm is a product term that is one only for its own row, so a zero input gets a bar. For row zero zero, the minterm is not A dot not B, called minterm zero. A maxterm is a sum term that is zero only for its own row, so a one input gets the bar. For row zero one, the maxterm is A plus not B, called maxterm one. Row two gives minterm two, A dot not B. Row three gives maxterm three, not A plus not B.
Let us fix the rules so you never mix them up. For a minterm, a zero input gets a bar, a one stays plain, and we join with AND. For a maxterm, it is the reverse: a one gets a bar, a zero stays plain, and we join with OR. The index is the row's binary number, so row one zero one is index five. Minterm five and maxterm five are complements of each other.
Here is a three variable function F that we will use for the rest of the lesson. F is one in row zero, which is zero zero zero. F is one in row two. F is one in row four. F is one in row five. F is one in row six. In the remaining rows one, three and seven, F is zero.
SOP means sum of products. Canonical SOP is the OR of the minterms of every row where F is one. Here those are rows zero, two, four, five and six. The short form is F equals sigma of zero, two, four, five, six, where sigma means sum. The first term written in full is not A dot not B dot not C, and so on for each row.
POS means product of sums. Canonical POS is the AND of the maxterms of every row where F is zero. Here those are rows one, three and seven. The short form is F equals pi of one, three, seven, where pi means product. Maxterm one, for row zero zero one, is A plus B plus not C. Notice that sigma and pi always use the missing numbers of each other.
Let us see why we need a map. Canonical forms are always correct, but they use too many gates. A Karnaugh map, or K-map, places every minterm in a grid of boxes. The grid is arranged so that side by side boxes differ in only one variable. When two such boxes are both one, that variable drops out, because A dot B plus A dot not B is just A.
Let us start with two variables, so the map has four boxes. For F equals sigma of one, two, three, we put a one in boxes one, two and three. The top row has a zero in box zero and a one in box one. The bottom row, where A is one, is full of ones, so one group gives A. The right column, where B is one, is also full, so a second group gives B. So F equals A plus B, which is one OR gate.
Now the rules for grouping, which exams test closely. Group only ones, and each group size must be a power of two: one, two, four, eight or sixteen. A group is a rectangle or square, never a diagonal. Make every group as large as possible, since bigger groups remove more variables. Groups may overlap, and the edges wrap around, so the left edge touches the right edge. Finally, use the fewest groups that cover every one.
A three variable map has two rows for A and four columns for B and C. The columns go zero zero, zero one, one one, one zero, in Gray code, so neighbours change only one bit. The top row holds our F values for rows zero, one, three and two. The bottom row holds rows four, five, seven and six.
Now we minimise using groups. The four corner boxes are all one, and because edges wrap, they form a quad. In that quad, A and B both change, but C is always zero, so the term is not C. Box five is still alone, so pair it with box four. There A is one and B is zero, giving A dot not B. So F equals not C plus A dot not B, far shorter than five minterms.
Pause the video and try this. F equals sigma of one, three, five, seven. Which variable has the same value in all four rows? Look at the binary: every one of these rows ends in one. So the four ones form a single quad, and F is simply C.
A four variable map has sixteen boxes, with rows for A B and columns for C D, both in Gray code. Here is F equals sigma of zero, two, five, seven, eight, ten, thirteen, fifteen. Row zero zero has ones in boxes zero and two. Row zero one has ones in boxes five and seven. Row one one has ones in boxes thirteen and fifteen. Row one zero has ones in boxes eight and ten.
Let us find the groups. The four centre boxes form a quad, where B is one and D is one, so the term is B dot D. The four corners also form a quad, because the map wraps top to bottom and left to right. There B is zero and D is zero. So F equals B dot D plus not B dot not D. Eight minterms became two terms.
Some questions ask for the minimal POS form, and the same map works. Group the zeros instead of the ones. In each group, a variable that stays zero is written plain. A variable that stays one gets a bar. Join the literals of a group with OR, and join the groups with AND. For our three variable F, boxes three and seven give not B plus not C. Boxes one and three give A plus not C. So F equals, not B plus not C, dot, A plus not C.
Let us revise what we learned today. A minterm is one for exactly one row, and a maxterm is zero for exactly one row. Canonical SOP is the sum of minterms where F is one. Canonical POS is the product of maxterms where F is zero. In a K-map, neighbouring boxes differ in one variable, using Gray code order. Make groups of one, two, four, eight or sixteen, as large and as few as possible. Group ones for SOP, and group zeros for POS.
Courses that teach this
| Course | Unit |
|---|---|
| ISC Class 12 Computer Science (868) | Boolean Algebra |
Voice-over in this lesson is AI-generated. The script is written and checked by Kajal Ma'am. Boards can revise a syllabus mid-year, so confirm anything you plan around against the official board circular. Keep your passwords, OTPs and ID numbers to yourself — we never ask for them. To reach Kajal Ma'am, use the WhatsApp button; sharing your number there is how we call you back.
Free to watch, no sign-up. Live classes with Kajal Ma'am are the paid course; these lessons stay free either way.

