Truth Tables & Logic Operations

Shared by a Flashcards.gg user · generated with AI · Report this set

This set covers truth tables and basic logic operations, designed for students studying logic and computer science.

50 cards English Level: University Logic & reasoning Published
Tap the card to flip it

Cards · 50

NOT Gate (Inverter)
Inverts the single input. Output is 1 (True) if input is 0 (False), and 0 (False) if input is 1 (True).
AND Gate
Performs logical conjunction. Output is 1 (True) only when both inputs are 1 (True); otherwise 0.
OR Gate
Performs logical disjunction. Output is 1 (True) if at least one input is 1 (True); 0 only when both are 0.
NAND Gate
Performs negated AND. Output is 0 (False) only when both inputs are 1 (True); otherwise 1 (True).
NOR Gate
Performs negated OR. Output is 1 (True) only when both inputs are 0 (False); otherwise 0 (False).
XOR Gate (Exclusive OR)
Outputs 1 (True) when inputs differ; outputs 0 (False) when both inputs are identical.
XNOR Gate (Exclusive NOR)
Outputs 1 (True) when both inputs are identical; outputs 0 (False) when inputs differ.
BUFFER Gate
Passes the input directly through without alteration. Output equals the input value.
Material Implication (P -> Q)
Conditional statement. False only when premise P is True and conclusion Q is False; True in all other cases.
Material Equivalence (P <-> Q)
Biconditional statement. True when both P and Q share the same truth value; False otherwise.
Converse Implication (P <- Q)
Conditional where Q implies P. False only when Q is True and P is False; otherwise True.
Non-implication (P ↛ Q)
Negation of material implication. True only when P is True and Q is False; otherwise False.
Converse Non-implication (P ↚ Q)
Negation of converse implication. True only when Q is True and P is False; otherwise False.
Tautology (Always True)
A compound proposition whose output is always 1 (True), regardless of the inputs' truth values.
Contradiction (Always False)
A compound proposition whose output is always 0 (False), regardless of the inputs' truth values.
Contingency
A compound proposition that is neither a tautology nor a contradiction, containing both 1s and 0s.
Truth Table
A mathematical table setting out functional values of logical expressions on each combination of inputs.
Truth Table Row Count Formula
A table with n distinct binary inputs requires 2^n rows to represent all possible input combinations.
NOT 0
Evaluates to 1 (True).
NOT 1
Evaluates to 0 (False).
0 AND 0
Evaluates to 0 (False).
0 AND 1
Evaluates to 0 (False).
1 AND 0
Evaluates to 0 (False).
1 AND 1
Evaluates to 1 (True).
0 OR 0
Evaluates to 0 (False).
0 OR 1
Evaluates to 1 (True).
1 OR 0
Evaluates to 1 (True).
1 OR 1
Evaluates to 1 (True).
0 NAND 0
Evaluates to 1 (True).
0 NAND 1
Evaluates to 1 (True).
1 NAND 0
Evaluates to 1 (True).
1 NAND 1
Evaluates to 0 (False).
0 NOR 0
Evaluates to 1 (True).
0 NOR 1
Evaluates to 0 (False).
1 NOR 0
Evaluates to 0 (False).
1 NOR 1
Evaluates to 0 (False).
0 XOR 0
Evaluates to 0 (False).
0 XOR 1
Evaluates to 1 (True).
1 XOR 0
Evaluates to 1 (True).
1 XOR 1
Evaluates to 0 (False).
0 XNOR 0
Evaluates to 1 (True).
0 XNOR 1
Evaluates to 0 (False).
1 XNOR 0
Evaluates to 0 (False).
1 XNOR 1
Evaluates to 1 (True).
Universal Gate: NAND
A gate capable of implementing any Boolean function without using any other gate type.
Universal Gate: NOR
A gate capable of implementing any Boolean function without using any other gate type.
De Morgan's First Law
NOT (A AND B) equals (NOT A) OR (NOT B). NAND equates to an OR gate with inverted inputs.
De Morgan's Second Law
NOT (A OR B) equals (NOT A) AND (NOT B). NOR equates to an AND gate with inverted inputs.
Identity Law (Boolean)
A AND 1 = A, and A OR 0 = A. Operating with identity elements preserves the input value.
Complement Law (Boolean)
A AND (NOT A) = 0, and A OR (NOT A) = 1. A variable combined with its complement.