© 2026 schoolict.net (Ruwan Mangala Suraweera)
4.2 Boolean Algebra and Karnaugh Maps: Laws, SOP, POS and Simplificationබූලියානු වීජ ගණිතය සහ Karnaugh සිතියම්: නියම, SOP, POS සහ සරල කිරීම
Grade 12 A/L ICT · Lesson 412 ශ්රේණිය A/L ICT · පාඩම 4
In this videoමේ වීඩියෝවේ
- Boolean laws (commutative, associative, distributive, De Morgan, identity, redundancy) let you rewrite expressions.බූලියානු නියම (විනිමය, සහායක, ව්යාප්ත, De Morgan, අනන්යතා, අතිරික්ත) ප්රකාශන නැවත ලිවීමට ඉඩ දෙයි.
- SOP is an OR of products; POS is an AND of sums – both come from the truth table.SOP යනු ගුණිතවල OR; POS යනු එකතුවල AND – දෙකම සත්යතා වගුවෙන් පැමිණේ.
- Simplifying cuts the number of gates, so circuits are cheaper and faster.සරල කිරීම ද්වාර ගණන අඩු කරයි, එබැවින් පරිපථ ලාභදායක සහ වේගවත් වේ.
- A K-map groups adjacent 1s in sizes 1, 2, 4, 8 to read a minimal SOP.K-map අසල්වැසි 1 කාණ්ඩ 1, 2, 4, 8 ප්රමාණයෙන් කාණ්ඩ කර අවම SOP කියවයි.
- De Morgan: break the bar and change the operator.De Morgan: තීරුව කඩා මෙහෙයුම්කරු වෙනස් කරන්න.
Notesසටහන්
Syllabus 4.2. Digital circuits follow Boolean algebra – the maths of 0 and 1. In this part you learn the postulates and laws (commutative, associative, distributive, identity, redundancy, De Morgan), how to write expressions in sum-of-products (SOP) and product-of-sums (POS) form, how to simplify with theorems, and how a Karnaugh map (K-map) groups 1s so you can read a simpler expression by eye.විෂය නිර්දේශය 4.2. සංඛ්යාංක පරිපථ බූලියානු වීජ ගණිතය – 0 සහ 1 හි ගණිතය – අනුගමනය කරයි. මෙම කොටසින් පූර්විකා සහ නියම (විනිමය, සහායක, ව්යාප්ත, අනන්යතා, අතිරික්ත, De Morgan), ගුණිතවල එකතුව (SOP) සහ එකතුවල ගුණිතය (POS) ආකාරයෙන් ප්රකාශන ලිවීම, ප්රමේය මගින් සරල කිරීම, සහ Karnaugh සිතියම (K-map) මගින් 1 කාණ්ඩ කර ඇසින් සරල ප්රකාශනයක් කියවීම ඉගෙන ගනී.
1. Why simplify Boolean expressions?1. බූලියානු ප්රකාශන සරල කරන්නේ ඇයි?
A simpler expression needs fewer gates, so the circuit is cheaper, smaller, cooler and faster. The exam often asks you to simplify with laws or with a K-map.සරල ප්රකාශනයකට අඩු ද්වාර අවශ්ය වේ, එබැවින් පරිපථය ලාභදායක, කුඩා, සිසිල් සහ වේගවත් වේ. විභාගය බොහෝ විට නියම මගින් හෝ K-map මගින් සරල කිරීමට ඉල්ලයි.
2. Postulates and laws2. පූර්විකා සහ නියම
Boolean algebra uses only the values 0 and 1. The basic operations are AND (·), OR (+) and NOT (′). Useful laws:බූලියානු වීජ ගණිතය 0 සහ 1 අගයන් පමණක් භාවිත කරයි. මූලික මෙහෙයුම් AND (·), OR (+) සහ NOT (′) වේ. ප්රයෝජනවත් නියම:
| Lawනියමය | AND formAND ආකාරය | OR formOR ආකාරය |
|---|---|---|
| Commutativeවිනිමය | A · B = B · AA · B = B · A | A + B = B + AA + B = B + A |
| Associativeසහායක | (A · B) · C = A · (B · C)(A · B) · C = A · (B · C) | (A + B) + C = A + (B + C)(A + B) + C = A + (B + C) |
| Distributiveව්යාප්ත | A · (B + C) = A·B + A·CA · (B + C) = A·B + A·C | A + (B · C) = (A+B)·(A+C)A + (B · C) = (A+B)·(A+C) |
| Identityඅනන්යතා | A · 1 = AA · 1 = A | A + 0 = AA + 0 = A |
| Null / Annulmentශුන්ය | A · 0 = 0A · 0 = 0 | A + 1 = 1A + 1 = 1 |
| Idempotentසමාන | A · A = AA · A = A | A + A = AA + A = A |
| Complementඅනුපූරක | A · A′ = 0A · A′ = 0 | A + A′ = 1A + A′ = 1 |
| Redundancyඅතිරික්ත | A + A·B = AA + A·B = A | A · (A + B) = AA · (A + B) = A |
| De MorganDe Morgan | (A · B)′ = A′ + B′(A · B)′ = A′ + B′ | (A + B)′ = A′ · B′(A + B)′ = A′ · B′ |
(1 · 0)′ = 0′ = 1. A′ + B′ = 0 + 1 = 1. Equal – De Morgan holds.(1 · 0)′ = 0′ = 1. A′ + B′ = 0 + 1 = 1. සමානයි – De Morgan සත්යය.
3. Standard forms: SOP and POS3. සම්මත ආකාර: SOP සහ POS
Sum of Products (SOP) is an OR of AND terms, for example A·B + A′·C. Each AND term is a minterm when it contains every variable (or its complement) once. Product of Sums (POS) is an AND of OR terms, for example (A+B)·(A′+C). Each OR term that has every variable is a maxterm.ගුණිතවල එකතුව (SOP) යනු AND පදවල OR එකකි, උදා: A·B + A′·C. සෑම විචල්යයක්ම (හෝ එහි අනුපූරකය) එක් වරක් ඇති AND පදයක් මිනිටරම් වේ. එකතුවල ගුණිතය (POS) යනු OR පදවල AND එකකි, උදා: (A+B)·(A′+C). සෑම විචල්යයක්ම ඇති OR පදයක් මැක්ස්ටරම් වේ.
From a truth table: write one minterm for every row where F = 1, then OR them → SOP. Write one maxterm for every row where F = 0, then AND them → POS. SOP and POS of the same function are equal.සත්යතා වගුවකින්: F = 1 වන සෑම පේළියකටම එක් මිනිටරමක් ලියා ඒවා OR කරන්න → SOP. F = 0 වන සෑම පේළියකටම එක් මැක්ස්ටරමක් ලියා ඒවා AND කරන්න → POS. එකම ශ්රිතයේ SOP සහ POS සමානය.
m1=A′B′C, m3=A′BC, m5=AB′C, m7=ABC. SOP = A′B′C + A′BC + AB′C + ABC. This simplifies to C (every term has C, and the A/B parts cover all).m1=A′B′C, m3=A′BC, m5=AB′C, m7=ABC. SOP = A′B′C + A′BC + AB′C + ABC. මෙය C දක්වා සරල වේ.
4. Simplifying with Boolean theorems4. බූලියානු ප්රමේය මගින් සරල කිරීම
Factor A: F = A · (B + B′) = A · 1 = A. (Identity and complement laws.)A පොදු කරන්න: F = A · (B + B′) = A · 1 = A.
Absorption / redundancy: A + A′·B = (A + A′) · (A + B) wait – better: A + A′·B = A·1 + A′·B = A(B+B′) + A′·B … classic result: A + B.A + A′·B = A + B (අතිරික්ත / ව්යාප්ත නියම).
Distributive: A + (B · B′) = A + 0 = A.ව්යාප්ත: A + (B · B′) = A + 0 = A.
5. Karnaugh maps5. Karnaugh සිතියම්
A Karnaugh map is a truth table redrawn so that adjacent cells differ by only one bit. You circle groups of 1, 2, 4 or 8 ones (powers of two). Each group becomes one product term with the variables that stay constant. Larger groups → fewer literals → simpler circuit.Karnaugh සිතියම යනු අසල්වැසි කොටු බිටු එකකින් පමණක් වෙනස් වන සේ නැවත ඇඳි සත්යතා වගුවකි. 1, 2, 4 හෝ 8 එකතුවක කාණ්ඩ (දෙකේ බල) වට කරන්න. සෑම කාණ්ඩයක්ම නොවෙනස් විචල්ය සහිත එක් ගුණිත පදයක් වේ. විශාල කාණ්ඩ → අඩු ලිතරල් → සරල පරිපථය.
2-variable K-map: rows A=0,1; columns B=0,1. Cells are minterms m0..m3. 3-variable K-map: usually rows A, columns BC in Gray code order 00, 01, 11, 10 so that neighbours still differ by one bit. Edges wrap around.විචල්ය 2 K-map: පේළි A=0,1; තීරු B=0,1. කොටු m0..m3. විචල්ය 3 K-map: සාමාන්යයෙන් පේළි A, තීරු BC Gray කේත අනුපිළිවෙල 00, 01, 11, 10 ලෙස තබයි එවිට අසල්වැසියන් තවමත් බිටු එකකින් වෙනස් වේ. දාර වටා එකතු වේ.
Cells m1,m2,m3 are 1. Group m1+m3 (B=1, A varies) → B. Group m2+m3 (A=1, B varies) → A. Result: A + B.කොටු m1,m2,m3 = 1. m1+m3 කාණ්ඩය (B=1) → B. m2+m3 කාණ්ඩය (A=1) → A. ප්රතිඵලය: A + B.
The four cells with A=0 (m0–m3) form a group of 4 → A′. Cell m6 (ABC=110) groups with m2 (010) → B · C′. Result: A′ + B·C′.A=0 සහිත කොටු හතර (m0–m3) → A′. m6 සහ m2 → B · C′. ප්රතිඵලය: A′ + B·C′.
Key Wordsප්රධාන පද
Sample Q&Aආදර්ශ ප්රශ්න සහ පිළිතුරු
1State De Morgan’s two laws.De Morgan ගේ නියම දෙක ප්රකාශ කරන්න.
2What is SOP form?SOP ආකාරය යනු කුමක්ද?
3Why do we simplify Boolean expressions?බූලියානු ප්රකාශන සරල කරන්නේ ඇයි?
4Simplify A · B + A · B′.A · B + A · B′ සරල කරන්න.
5What size groups are allowed on a K-map?K-map එකක අනුමත කාණ්ඩ ප්රමාණ මොනවාද?
6How do you get a POS expression from a truth table?සත්යතා වගුවකින් POS ප්රකාශනයක් ලබා ගන්නේ කෙසේද?
MCQබහුවරණ ප්රශ්න
Choose the correct answer for each question.සෑම ප්රශ්නයකටම නිවැරදි පිළිතුර තෝරන්න.
1De Morgan: (A · B)′ equalsDe Morgan: (A · B)′ සමාන වන්නේ
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
Break the bar, change · to +.තීරුව කඩා · න් + ට වෙනස් කරන්න.
2SOP meansSOP යනු
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
OR of AND terms.AND පදවල OR.
3POS meansPOS යනු
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
AND of OR terms.OR පදවල AND.
4A · 1 equalsA · 1 සමාන වන්නේ
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
Identity law.අනන්යතා නියමය.
5A + A′ equalsA + A′ සමාන වන්නේ
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
Complement law.අනුපූරක නියමය.
6Simplify A · B + A · B′A · B + A · B′ සරල කරන්න
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D
A(B+B′)=A.A(B+B′)=A.
7A K-map group may contain how many 1s?K-map කාණ්ඩයක 1 කීයක් තිබිය හැකිද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
Powers of two only.දෙකේ බල පමණි.
8Adjacent K-map cells differ byඅසල්වැසි K-map කොටු වෙනස් වන්නේ
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E
Gray-code adjacency.Gray කේත අසල්වාසිත්වය.
9A + A · B simplifies toA + A · B සරල වන්නේ
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
Redundancy law.අතිරික්ත නියමය.
10F = Σm(1,2,3) for two variables simplifies toවිචල්ය දෙකක් සඳහා F = Σm(1,2,3) සරල වන්නේ
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
K-map groups give A + B.K-map කාණ්ඩ A + B දෙයි.
11(A + B)′ equals(A + B)′ සමාන වන්නේ
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D
De Morgan for OR.OR සඳහා De Morgan.
12A minterm for three variables has how many literals?විචල්ය තුනක් සඳහා මිනිටරමක ලිතරල් කීයක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E
One literal per variable.විචල්යයකට එක් ලිතරලයක්.
13Which term means: “Algebra of the values 0 and 1 with AND, OR and NOT”?“AND, OR සහ NOT සමඟ 0 සහ 1 අගයන්ගේ වීජ ගණිතය” යන්නෙන් අදහස් වන පදය කුමක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E
Boolean algebra – Algebra of the values 0 and 1 with AND, OR and NOT.බූලියානු වීජ ගණිතය – AND, OR සහ NOT සමඟ 0 සහ 1 අගයන්ගේ වීජ ගණිතය.
14Which term means: “Order does not matter: A·B = B·A and A+B = B+A”?“අනුපිළිවෙල වැදගත් නැත: A·B = B·A සහ A+B = B+A” යන්නෙන් අදහස් වන පදය කුමක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
Commutative law – Order does not matter: A·B = B·A and A+B = B+A.විනිමය නියමය – අනුපිළිවෙල වැදගත් නැත: A·B = B·A සහ A+B = B+A.
15Which term means: “Grouping does not matter for AND or for OR”?“AND හෝ OR සඳහා කාණ්ඩ කිරීම වැදගත් නැත” යන්නෙන් අදහස් වන පදය කුමක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D
Associative law – Grouping does not matter for AND or for OR.සහායක නියමය – AND හෝ OR සඳහා කාණ්ඩ කිරීම වැදගත් නැත.
16Which term means: “A·(B+C) = A·B+A·C and A+(B·C) = (A+B)·(A+C)”?“A·(B+C) = A·B+A·C සහ A+(B·C) = (A+B)·(A+C)” යන්නෙන් අදහස් වන පදය කුමක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
Distributive law – A·(B+C) = A·B+A·C and A+(B·C) = (A+B)·(A+C).ව්යාප්ත නියමය – A·(B+C) = A·B+A·C සහ A+(B·C) = (A+B)·(A+C).
17Which term means: “(A·B)′ = A′+B′ and (A+B)′ = A′·B′”?“(A·B)′ = A′+B′ සහ (A+B)′ = A′·B′” යන්නෙන් අදහස් වන පදය කුමක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D
De Morgan’s laws – (A·B)′ = A′+B′ and (A+B)′ = A′·B′.De Morgan නියම – (A·B)′ = A′+B′ සහ (A+B)′ = A′·B′.
18Which term means: “Sum of Products – an OR of AND terms”?“ගුණිතවල එකතුව – AND පදවල OR එකකි” යන්නෙන් අදහස් වන පදය කුමක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
SOP – Sum of Products – an OR of AND terms.SOP – ගුණිතවල එකතුව – AND පදවල OR එකකි.
19Which term means: “Product of Sums – an AND of OR terms”?“එකතුවල ගුණිතය – OR පදවල AND එකකි” යන්නෙන් අදහස් වන පදය කුමක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
POS – Product of Sums – an AND of OR terms.POS – එකතුවල ගුණිතය – OR පදවල AND එකකි.
20Which term means: “A product term that includes every variable once (true or complemented)”?“සෑම විචල්යයක්ම එක් වරක් (සත්ය හෝ අනුපූරක) ඇතුළත් ගුණිත පදයකි” යන්නෙන් අදහස් වන පදය කුමක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E
Minterm – A product term that includes every variable once (true or complemented).මිනිටරම් – සෑම විචල්යයක්ම එක් වරක් (සත්ය හෝ අනුපූරක) ඇතුළත් ගුණිත පදයකි.
MCQ answer keyMCQ පිළිතුරු
- A – Break the bar, change · to +.තීරුව කඩා · න් + ට වෙනස් කරන්න.
- B – OR of AND terms.AND පදවල OR.
- A – AND of OR terms.OR පදවල AND.
- C – Identity law.අනන්යතා නියමය.
- B – Complement law.අනුපූරක නියමය.
- D – A(B+B′)=A.A(B+B′)=A.
- A – Powers of two only.දෙකේ බල පමණි.
- E – Gray-code adjacency.Gray කේත අසල්වාසිත්වය.
- A – Redundancy law.අතිරික්ත නියමය.
- B – K-map groups give A + B.K-map කාණ්ඩ A + B දෙයි.
- D – De Morgan for OR.OR සඳහා De Morgan.
- E – One literal per variable.විචල්යයකට එක් ලිතරලයක්.
- E – Boolean algebra – Algebra of the values 0 and 1 with AND, OR and NOT.බූලියානු වීජ ගණිතය – AND, OR සහ NOT සමඟ 0 සහ 1 අගයන්ගේ වීජ ගණිතය.
- B – Commutative law – Order does not matter: A·B = B·A and A+B = B+A.විනිමය නියමය – අනුපිළිවෙල වැදගත් නැත: A·B = B·A සහ A+B = B+A.
- D – Associative law – Grouping does not matter for AND or for OR.සහායක නියමය – AND හෝ OR සඳහා කාණ්ඩ කිරීම වැදගත් නැත.
- C – Distributive law – A·(B+C) = A·B+A·C and A+(B·C) = (A+B)·(A+C).ව්යාප්ත නියමය – A·(B+C) = A·B+A·C සහ A+(B·C) = (A+B)·(A+C).
- D – De Morgan’s laws – (A·B)′ = A′+B′ and (A+B)′ = A′·B′.De Morgan නියම – (A·B)′ = A′+B′ සහ (A+B)′ = A′·B′.
- C – SOP – Sum of Products – an OR of AND terms.SOP – ගුණිතවල එකතුව – AND පදවල OR එකකි.
- C – POS – Product of Sums – an AND of OR terms.POS – එකතුවල ගුණිතය – OR පදවල AND එකකි.
- E – Minterm – A product term that includes every variable once (true or complemented).මිනිටරම් – සෑම විචල්යයක්ම එක් වරක් (සත්ය හෝ අනුපූරක) ඇතුළත් ගුණිත පදයකි.
Structured Questionsව්යුහගත ප්රශ්න
1State the commutative, associative and distributive laws for AND and OR.AND සහ OR සඳහා විනිමය, සහායක සහ ව්යාප්ත නියම ප්රකාශ කරන්න. (3 marksලකුණු 3)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
2Explain SOP and POS and how each is obtained from a truth table.SOP සහ POS පැහැදිලි කර සත්යතා වගුවකින් එකක් ලබා ගන්නා ආකාරය කියන්න. (3 marksලකුණු 3)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
3Simplify F = A + A′ · B using Boolean laws. Show the steps.බූලියානු නියම මගින් F = A + A′ · B සරල කරන්න. පියවර පෙන්වන්න. (2 marksලකුණු 2)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
4Using a 2-variable K-map, simplify F = Σm(1,2,3).විචල්ය 2 K-map භාවිතයෙන් F = Σm(1,2,3) සරල කරන්න. (3 marksලකුණු 3)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
5Apply De Morgan to simplify (A · B′)′.De Morgan යොදා (A · B′)′ සරල කරන්න. (2 marksලකුණු 2)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
🎮 Game🎮 ක්රීඩා
Summary & Downloadsසාරාංශය සහ බාගත කිරීම්
Key pointsප්රධාන කරුණු
- Boolean laws (commutative, associative, distributive, De Morgan, identity, redundancy) let you rewrite expressions.බූලියානු නියම (විනිමය, සහායක, ව්යාප්ත, De Morgan, අනන්යතා, අතිරික්ත) ප්රකාශන නැවත ලිවීමට ඉඩ දෙයි.
- SOP is an OR of products; POS is an AND of sums – both come from the truth table.SOP යනු ගුණිතවල OR; POS යනු එකතුවල AND – දෙකම සත්යතා වගුවෙන් පැමිණේ.
- Simplifying cuts the number of gates, so circuits are cheaper and faster.සරල කිරීම ද්වාර ගණන අඩු කරයි, එබැවින් පරිපථ ලාභදායක සහ වේගවත් වේ.
- A K-map groups adjacent 1s in sizes 1, 2, 4, 8 to read a minimal SOP.K-map අසල්වැසි 1 කාණ්ඩ 1, 2, 4, 8 ප්රමාණයෙන් කාණ්ඩ කර අවම SOP කියවයි.
- De Morgan: break the bar and change the operator.De Morgan: තීරුව කඩා මෙහෙයුම්කරු වෙනස් කරන්න.
