Study smarter with Fiveable
Get study guides, practice questions, and cheatsheets for all your subjects. Join 500,000+ students with a 96% pass rate.
Logic gates are the atomic units of digital computation—every processor, memory chip, and circuit you'll encounter is built from combinations of these seven fundamental operations. In Discrete Mathematics, you're being tested on your ability to translate between Boolean expressions, truth tables, and gate diagrams, and to recognize how complex logical statements decompose into simpler operations. Understanding gates also connects directly to proof techniques, set operations, and propositional logic.
Don't just memorize what each gate does—know why certain gates are called universal, how compound gates relate to their primitive components, and when to apply each gate in Boolean simplification problems. The exam will ask you to evaluate expressions, construct equivalent circuits, and identify which gate produces a specific truth table pattern.
These three gates form the foundation of Boolean algebra. Every other gate can be constructed from combinations of AND, OR, and NOT. Master these first, and the compound gates become intuitive.
Compare: AND vs. OR—both are binary operations, but AND requires all conditions (outputs mostly 0s) while OR requires any condition (outputs mostly 1s). If an FRQ gives you a truth table with three 1s, it's OR; one 1 means AND.
NAND and NOR are called universal gates because either one alone can construct AND, OR, NOT, and therefore any Boolean function. This property makes them crucial for circuit minimization and hardware design.
Compare: NAND vs. NOR—both are universal and both invert a basic gate, but NAND defaults to outputting 1s (permissive) while NOR defaults to outputting 0s (restrictive). When asked to implement NOT using one gate type, connect both inputs together.
XOR and XNOR detect whether inputs match or differ. These gates are essential for arithmetic circuits, error detection, and comparison operations in digital systems.
Compare: XOR vs. XNOR—perfect complements. XOR detects difference (odd parity), XNOR detects sameness (even parity). For multi-bit equality checking, XNOR each pair and AND the results.
| Concept | Best Examples |
|---|---|
| Basic operations | AND, OR, NOT |
| Universal gates | NAND, NOR |
| Compound gates (inverted basic) | NAND, NOR, XNOR |
| Parity detection | XOR (odd), XNOR (even) |
| Most restrictive output | AND (one 1), NOR (one 1) |
| Most permissive output | OR (one 0), NAND (one 0) |
| Equality checking | XNOR |
| Arithmetic operations | XOR (addition), AND (carry) |
Which two gates are universal, and what does "universal" mean in this context?
Given a truth table with outputs (1, 1, 1, 0) for inputs (0,0), (0,1), (1,0), (1,1), which gate does this represent?
Compare and contrast XOR and OR: when do they produce the same output, and when do they differ?
How would you construct a NOT gate using only NAND gates? What about using only NOR gates?
If an FRQ asks you to design a circuit that outputs 1 only when two input bits are equal, which single gate accomplishes this, and what Boolean expression represents it?