Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

Karnaugh Maps (K-Maps): SOP, POS and Don't Care Conditions

Lesson 4 of 17 in the free Computer Organization and Architecture notes on Siksha Sarovar, written by Rohit Jangra.

K-Map Simplification Process

---

K-Map Grid Layouts

2-Variable K-Map (4 cells):

AB01
0m₀m₁
1m₂m₃

3-Variable K-Map (8 cells) — Gray Code column order (00,01,11,10):

A BC00011110
0m₀m₁m₃m₂
1m₄m₅m₇m₆

4-Variable K-Map (16 cells) — Gray Code for both axes:

AB CD00011110
00m₀m₁m₃m₂
01m₄m₅m₇m₆
11m₁₂m₁₃m₁₅m₁₄
10m₈m₉m₁₁m₁₀
Why Gray Code? Adjacent cells differ by exactly 1 bit, ensuring logically adjacent minterms are physically adjacent in the K-map.

---

7 Rules for K-Map Grouping

  1. Only powers of 2: Groups must contain 1, 2, 4, 8, or 16 cells
  2. Only 1s and X (don't cares): Never group 0s
  3. Rectangular or square: Groups must be rectangular/square (wrapping allowed)
  4. Largest groups first: Maximize group size to maximize simplification
  5. Overlapping allowed: A cell can belong to multiple groups
  6. Wrap-around: Top row wraps to bottom; left column wraps to right
  7. Use don't cares to enlarge groups: X cells may be treated as 1

---

Worked SOP Example: F(A,B,C,D) = Σ(0,1,2,5,8,9,10)

Fill K-map with 1s at minterms 0,1,2,5,8,9,10:

AB CD00011110
001101
010100
110000
101101

Group 1 (orange): m₀,m₁,m₈,m₉ — A'C'+A'C (wraps top↔bottom, CD=00,01) → B'D' ... actually: cells (00,00),(00,01),(10,00),(10,01) = B=0 across both A values, D varies but C=0 → B'C'

Group 2 (green): m₀,m₂,m₈,m₁₀ — cells at CD=00,10 in rows AB=00,10 → B'D'

Group 3 (blue): m₁,m₅ — A=0,C=0,D=1 → A'CD' ... wait, m₁=(0000+1)=A'B'C'D, m₅=A'BC'D → A'C'D

Simplified result: F = B'C' + B'D' + A'C'D

---

Don't Care Conditions

A don't care (X) occurs when:

  • The input combination is physically impossible (e.g., BCD code: 1010–1111 never occur)
  • The output for that input is irrelevant (circuit never uses it)

Strategy: Use X cells as 1s if they help form larger groups; use as 0s otherwise. Goal: maximize group sizes.

---

Study Deep: Prime Implicants and Essential Prime Implicants

A Prime Implicant (PI) is the largest possible group that cannot be further enlarged.

An Essential Prime Implicant (EPI) is a PI that is the only PI covering some minterm. EPIs must be included in the minimal expression.

Petrick's method finds all minimum SOP covers when EPIs alone do not cover all minterms.

📝 Exam Tips: - Always use the largest possible groups - Groups wrap around K-map edges (top↔bottom, left↔right) - 4-variable K-map also wraps corner-to-corner (diagonal corners are adjacent) - Don't cares can be grouped but need not be covered