Reasoning Ability – Puzzles
Advanced, MIT‑style Study Notes
1. Introduction
Puzzle solving is a cornerstone of logical reasoning. It trains:
| Skill | Why it matters |
|---|---|
| Formal logic | Allows precise deduction from premises. |
| Set & relation theory | Models categories & constraints. |
| Combinatorics | Counts possibilities, identifies impossibilities. |
| Graph theory | Visualises relationships, constraints. |
| Complexity theory | Explains why some puzzles are hard. |
These notes will:
- Derive puzzle techniques from first principles.
- Introduce rigorous theory (CSP, SAT, NP‑complete).
- Show edge‑case handling.
- Provide a challenging puzzle with full solution.
2. Foundations of Puzzle Reasoning
2.1 Propositional Logic
- Atoms (p, q, r, \dots) represent simple facts.
- Connectives: (\neg,\wedge,\vee,\rightarrow,\leftrightarrow).
- Truth tables give exhaustive semantics.
- Inference rules (Modus Ponens, etc.) allow valid derivations.
Example
Premises:
- (A \rightarrow B)
- (\neg B)
Conclusion: (\neg A) (Contrapositive).
2.2 Set Theory & Relations
- Sets: (\mathcal{A}, \mathcal{B}, \dots).
- Relations: (R \subseteq \mathcal{A}\times \mathcal{B}).
- Properties: reflexive, symmetric, transitive → equivalence relations.
- Partitions: equivalence classes.
Application: In seating puzzles, “person (x) sits next to person (y)” is a relation on the set of people.
2.3 Combinatorics
- Counting: (n!) permutations, (\binom{n}{k}) combinations.
- Inclusion–Exclusion: counts with overlapping constraints.
- Pigeonhole Principle: guarantees repetition when items > containers.
2.4 Graph Theory Basics
- Graph (G=(V,E)).
- Vertices represent entities; edges encode relations.
- Degree, paths, cycles, coloring.
- Directed graphs for precedence constraints.
3. Types of Puzzles & Their Formal Models
| Puzzle Type | Formal Representation | Key Constraints |
|---|---|---|
| Logical Deduction | CSP (X_i \in D_i), constraints (C_j) | All‑different, adjacency |
| Numerical | Equations, inequalities | Sum, product, modular |
| Spatial / Geometry | Coordinates, angles | Euclidean constraints |
| Sequence / Pattern | Recurrence relations | Initial conditions |
| Word | Alphabets, anagrams | Lexicographic order |
4. Advanced Theoretical Tools
4.1 Constraint Satisfaction Problems (CSP)
- Variables (X_1,\dots,X_n).
- Domains (D_i).
- Constraints (C_j) (binary or higher‑arity).
- Goal: find assignment satisfying all (C_j).
4.1.1 Solving Methods
- Backtracking – depth‑first search.
- Arc Consistency (AC‑3) – prune impossible values.
- Forward Checking – reduce domains ahead of time.
- Heuristics: MRV, LCV, Degree heuristic.
4.2 SAT Solving
- Translate CSP to Conjunctive Normal Form (CNF).
- Use DPLL or CDCL algorithms.
- Variable ordering and clause learning drastically reduce search.
4.3 Graph‑Theoretic Complexity
| Problem | Complexity | Typical Puzzle | Illustrative Constraint |
|---|---|---|---|
| Graph Coloring | NP‑complete | Color seating chart | No two adjacent share color |
| Hamiltonian Path | NP‑complete | Travel itinerary | Visit all |