Complete reference for Computer Science, Digital Logic, and Discrete Mathematics
Remember: Break the line, change the sign
Same variable AND/OR itself equals itself
Output is 1 only if ALL inputs are 1
Truth Table:| A | B | A ∧ B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Output is 1 if ANY input is 1
Truth Table:| A | B | A ∨ B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
Output is the opposite (complement)
Truth Table:| A | ¬A |
|---|---|
| 0 | 1 |
| 1 | 0 |
AND followed by NOT
Truth Table:| A | B | ¬(A ∧ B) |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
OR followed by NOT
Truth Table:| A | B | ¬(A ∨ B) |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 0 |
Output is 1 if inputs are DIFFERENT
Truth Table:| A | B | A ⊕ B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
Original: ¬(P ∧ Q) ∨ ¬(¬R)
Step 1: Apply De Morgan's: (¬P ∨ ¬Q) ∨ R
Step 2: Remove double negation: (¬P ∨ ¬Q) ∨ R
Step 3: Simplify (Associative): ¬P ∨ ¬Q ∨ R
Simplified: ¬P ∨ ¬Q ∨ R
Circuit: (A ∧ B) ∨ (A ∧ ¬B) ∨ (¬A ∧ B)
Step 1: Factor A: A ∧ (B ∨ ¬B) ∨ (¬A ∧ B)
Step 2: B ∨ ¬B = 1: A ∧ 1 ∨ (¬A ∧ B)
Step 3: A ∧ 1 = A: A ∨ (¬A ∧ B)
Step 4: Apply Absorption: A ∨ B
Simplified Circuit: A ∨ B (Just an OR gate!)