Post

Appendix C: Summary Tables and Reference

One-page comparison tables for search, logic, and inference.

Appendix C: Summary Tables and Reference

Summary Tables

This appendix collects key comparison and reference tables for the major topics covered in this book. Each table consolidates definitions, properties, and complexity results for quick revision.

Uninformed Search Comparison

AlgorithmComplete?Optimal?Time ComplexitySpace ComplexityData Structure
BFSYesYes$^\dagger$$O(b^d)$$O(b^d)$FIFO Queue
UCSYesYes$O(b^{1+\lfloor C^*/\epsilon\rfloor})$$O(b^{1+\lfloor C^*/\epsilon\rfloor})$Priority Queue
DFSNoNo$O(b^m)$$O(bm)$LIFO Stack
DLSNo$^\ddagger$No$O(b^\ell)$$O(b\ell)$LIFO Stack
IDSYesYes$^\dagger$$O(b^d)$$O(bd)$LIFO Stack
BidirectionalYesYes$^\dagger$$O(b^{d/2})$$O(b^{d/2})$Two Queues
$^\dagger$ Only if all step costs are equal.     
$^\ddagger$ Yes if $\ell \geq d$, but $\ell$ is typically not known in advance.     
Note: All entries assume graph search (with explored set). Tree search may have different properties.     

Comparison of uninformed (blind) search strategies. $b$ is the branching factor, $d$ is the solution depth, $m$ is the maximum search depth, $\ell$ is the depth limit for DLS, $C^*$ is the optimal cost, and $\epsilon$ is the minimum step cost.

Informed Search Comparison

AlgorithmHeuristic UseComplete?Optimal?Time ComplexitySpace Complexity
Greedy Best-First$f(n) = h(n)$NoNo$O(b^m)$$O(b^m)$
A*$f(n) = g(n) + h(n)$YesYes$^\dagger$$O(b^{\Delta})$$O(b^{\Delta})$
IDA*$f$-cost cutoffYesYes$^\dagger$$O(b^d)$$O(bd)$
RBFS$f(n) = g(n) + h(n)$YesYes$^\dagger$$O(n^2)$ worst$O(bd)$
$^\dagger$ With an admissible (never-overestimating) heuristic.     
A* requires consistency (monotonicity) for optimality in graph search.     

Comparison of informed (heuristic) search strategies. $b$ is the branching factor, $d$ is the solution depth, $m$ is the maximum search depth, and $\Delta$ is the relative error of the heuristic.

Logical Equivalence Laws

LawNameFormula
Commutativity of $\land$Commutative (and)$(\alpha \land \beta) \equiv (\beta \land \alpha)$
Commutativity of $\lor$Commutative (or)$(\alpha \lor \beta) \equiv (\beta \lor \alpha)$
Associativity of $\land$Associative (and)$((\alpha \land \beta) \land \gamma) \equiv (\alpha \land (\beta \land \gamma))$
Associativity of $\lor$Associative (or)$((\alpha \lor \beta) \lor \gamma) \equiv (\alpha \lor (\beta \lor \gamma))$
Double negationDouble Negation$\neg(\neg\alpha) \equiv \alpha$
Implication eliminationImplication Def.$(\alpha \Rightarrow \beta) \equiv (\neg\alpha \lor \beta)$
Biconditional eliminationBiconditional Def.$(\alpha \Leftrightarrow \beta) \equiv ((\alpha \Rightarrow \beta) \land (\beta \Rightarrow \alpha))$
ContrapositionContrapositive$(\alpha \Rightarrow \beta) \equiv (\neg\beta \Rightarrow \neg\alpha)$
De Morgan (conjunction)De Morgan’s Law$\neg(\alpha \land \beta) \equiv (\neg\alpha \lor \neg\beta)$
De Morgan (disjunction)De Morgan’s Law$\neg(\alpha \lor \beta) \equiv (\neg\alpha \land \neg\beta)$
Distributivity ($\land$ over $\lor$)Distributive$(\alpha \land (\beta \lor \gamma)) \equiv ((\alpha \land \beta) \lor (\alpha \land \gamma))$
Distributivity ($\lor$ over $\land$)Distributive$(\alpha \lor (\beta \land \gamma)) \equiv ((\alpha \lor \beta) \land (\alpha \lor \gamma))$
Idempotence of $\land$Idempotent (and)$(\alpha \land \alpha) \equiv \alpha$
Idempotence of $\lor$Idempotent (or)$(\alpha \lor \alpha) \equiv \alpha$
Absorption ($\land$)Absorption$(\alpha \land (\alpha \lor \beta)) \equiv \alpha$
Absorption ($\lor$)Absorption$(\alpha \lor (\alpha \land \beta)) \equiv \alpha$
Negation of $\top/\bot$Negation$\neg\top \equiv \bot,\quad \neg\bot \equiv \top$
Excluded middleTautology$\alpha \lor \neg\alpha \equiv \top$
ContradictionUnsatisfiable$\alpha \land \neg\alpha \equiv \bot$

Standard logical equivalences in propositional logic. $\alpha$, $\beta$, and $\gamma$ are arbitrary propositional sentences. $\top$ denotes true, $\bot$ denotes false.

Inference Rules Summary

Rule NamePremisesConclusion
Modus Ponens$\alpha \Rightarrow \beta$, $\alpha$$\beta$
Modus Tollens$\alpha \Rightarrow \beta$, $\neg\beta$$\neg\alpha$
And-Elimination$\alpha \land \beta$$\alpha$ (or $\beta$)
And-Introduction$\alpha$, $\beta$$\alpha \land \beta$
Or-Introduction$\alpha$$\alpha \lor \beta$
Unit Resolution$\ell_1 \lor \cdots \lor \ell_k$, $\neg\ell_i$$\ell_1 \lor \cdots \lor \ell_{i-1} \lor \ell_{i+1} \lor \cdots \lor \ell_k$
Full Resolution$\ell_1 \lor \cdots \lor \ell_k$, $m_1 \lor \cdots \lor m_n$$\ell_1 \lor \cdots \lor \ell_{i-1} \lor \ell_{i+1} \lor \cdots \lor \ell_k \lor m_1 \lor \cdots \lor m_{j-1} \lor m_{j+1} \lor \cdots \lor m_n$
(where $\ell_i$ and $m_j$ are complementary literals)(the resolvent) 
Chain Rule$\alpha \Rightarrow \beta$, $\beta \Rightarrow \gamma$$\alpha \Rightarrow \gamma$
Reductio ad Absurdum$\alpha \Rightarrow \bot$$\neg\alpha$
Biconditional Elimination$\alpha \Leftrightarrow \beta$$(\alpha \Rightarrow \beta) \land (\beta \Rightarrow \alpha)$

Key inference rules for propositional logic. The horizontal bar notation $\frac{\text{Premises}}{\text{Conclusion}}$ means: if the premises are true, the conclusion follows.

FOL vs. Propositional Logic Comparison

FeaturePropositional LogicFirst-Order Logic
SyntaxAtomic sentences (proposition symbols $P, Q, \dots$) and logical connectives ($\neg, \land, \lor, \Rightarrow, \Leftrightarrow$)Terms (constants, variables, functions), atomic sentences (predicates with terms), connectives, and quantifiers ($\forall$, $\exists$)
SemanticsTruth assignment to proposition symbols; $2^n$ possible models for $n$ symbolsDomain (nonempty set of objects) with interpretation mapping constants $\to$ objects, predicates $\to$ relations, functions $\to$ functions
Ontological CommitmentFacts (truth values)Facts, objects, relations, and functions
Epistemological CommitmentTrue, false, or unknownTrue, false, or unknown
ExpressivenessCannot represent objects, relations, or general statements; each fact requires a separate symbolCan represent objects, relations, properties, and quantified statements concisely
QuantifiersNoneUniversal ($\forall$) and existential ($\exists$) quantifiers over objects
VariablesNo variablesVariables with binding by quantifiers; substitutions for inference
CompositionalityYes (truth-functional)Yes
DecidabilityDecidable: entailment can always be determined (truth tables or theorem proving)Semidecidable: if a sentence is entailed, a proof will eventually be found; if not, the algorithm may never terminate
InferenceTruth tables, resolution, DPLL, WalkSAT; complete decision procedures existGeneralized Modus Ponens, resolution with unification, forward/backward chaining; refutation-complete for Horn clauses
ComplexitySAT is NP-complete; Horn clause entailment is $O(n)$Entailment is undecidable in the general case; Datalog (function-free Horn) is decidable
Frame ProblemRequires explicit frame axioms or successor-state axioms for each fluentSame, but quantified axioms are more concise; e.g., $\forall a, s \; \neg(\text{adjacent}(a, \text{pit}))$
Typical UseSimple reasoning tasks, SAT-based planning, Wumpus world, circuit verificationComplex domains, knowledge representation, mathematical reasoning, natural language semantics, database queries
Example Statement$B_{1,1} \Leftrightarrow (P_{1,2} \lor P_{2,1})$$\forall s \; \text{Breezy}(s) \Leftrightarrow \exists r \; \text{Adjacent}(r, s) \land \text{Pit}(r)$

Comparison of Propositional Logic and First-Order Logic across key dimensions.

This post is licensed under CC BY 4.0 by the author.