📚 Advanced Study Notes – Reasoning Ability
Topic: Puzzles
(Designed for a university‑level (MIT) course. Emphasis on first‑principles reasoning, rigorous proofs, edge cases, and a challenging exercise.)
1. Introduction
Puzzles in reasoning tests are designed to probe deductive, inductive, and abductive thinking.
They typically involve:
| Puzzle Category | Typical Goal | Common Techniques |
|---|---|---|
| Logical sequences | Find the next element | Pattern recognition, algebraic representation |
| Word/number analogies | Identify relationship | Mapping, bijection, functional analysis |
| Spatial/visual puzzles | Determine orientation | Symmetry, topological invariants |
| Paradoxes / self‑referential puzzles | Resolve contradiction | Formal logic, set theory |
| Strategic/optimization puzzles | Minimize/maximize | Game theory, linear programming |
2. Foundations of Puzzle Solving
2.1 Formalizing a Puzzle
Let (P) be a puzzle instance.
- State space (S): all admissible configurations.
- Rule set (R): transformations (T: S \to S).
- Objective (O \subseteq S): desired target state(s).
The solver’s task is to find a sequence (\langle T_1, T_2, \dots, T_k \rangle) such that
[
T_k \circ \dots \circ T_2 \circ T_1 (s_0) \in O .
]
2.2 Complexity Considerations
-
Puzzles as decision problems:
- NP‑complete: e.g., Sudoku, N‑queens.
- PSPACE‑complete: e.g., generalized Rubik’s Cube.
-
Branch‑and‑bound: pruning search tree using admissible heuristics.
-
Backtracking with forward checking: especially useful in constraint satisfaction puzzles.
3. Advanced Reasoning Techniques
3.1 Logical Deduction
-
Horn Clauses
- Represent rules as implications (A \land B \to C).
- Use unit propagation to iteratively deduce facts.
-
Resolution Principle
- Resolve two clauses with complementary literals.
- Fundamental for automated theorem proving.
-
Proof by Contradiction
- Assume the opposite of the desired conclusion.
- Show that this leads to a logical impossibility.
3.2 Inductive Pattern Recognition
-
Parametric Modeling
- Fit a function (f(n)) to known terms.
- Test on unseen terms to validate.
-
Recursive Relations
- Identify recurrence (a_{n+1} = g(a_n, a_{n-1}, \dots)).
- Solve closed‑form via characteristic equations.
3.3 Abductive Reasoning
- Inference to the best explanation
- Given evidence (E) and hypothesis set (H), choose (h \in H) maximizing (P(h|E)).
- Useful in puzzles involving incomplete information.
3.4 Graph‑Based Methods
- Adjacency matrices for spatial puzzles.
- Graph isomorphism to detect symmetry.
- Shortest path algorithms (BFS, Dijkstra) for move minimization.
3.5 Algebraic Structures
- Modular arithmetic in cyclic puzzles.
- Group theory for permutation puzzles (e.g., Rubik’s Cube).
- Ring theory for puzzles involving polynomial operations.
4. Edge Cases & Pitfalls
| Edge Case | How It Arises | Mitigation |
|---|---|---|
| Infinite loops in backtracking | No pruning → revisits same state | Maintain visited hash table |
| Over‑fitting pattern | Mistaking noise for rule | Verify with additional data points |
| Non‑deterministic rules | Randomized elements in puzzle | Model as probabilistic state machine |
| Hidden constraints | Not explicitly stated | Use constraint propagation to reveal |
| Non‑uniqueness | Multiple valid solutions | Clarify objective (e.g., “any” vs “unique”) |
5. Deep Dive: The 15‑Puzzle Paradox
5.1 Problem Statement
Arrange the tiles numbered 1–15 in a 4×4 grid with the empty slot at the bottom right. Only adjacent tiles may slide into the empty slot. Show that exactly half of the total permutations are solvable.
5.2 Formal Model
- State space (S = { \sigma \in S_{15} \times {0}}).
- Define parity of a permutation (\sigma) by (\text{sgn}(\sigma) = \pm 1).
- Define taxicab distance of the empty slot (d(\sigma)) to the goal position.
5.3 Invariant Proof
Invariant: (\text{sgn}(\sigma) \times (-1)^{d(\sigma)}) is preserved under any legal move.
- A slide exchanges the empty slot with a tile, effectively transposing two elements → sign flips.
- The empty slot moves one step → (d(\sigma)) changes by ±1 → ((-1)^{d(\sigma)}) flips.
- Product remains unchanged.
Thus, only states with invariant value matching the goal (which is +1) are reachable. Exactly half of the permutations satisfy this, proving the claim.
5.4 Edge Cases
- Parity changes when the board size is odd (e.g., 3×3).
- Non‑rectangular grids require alternate invariants (e.g., parity of cycle decomposition).
6. Challenging Problem
Problem
Consider a 5×5 grid puzzle where the empty cell starts at the center. A move consists of rotating any 3×3 sub‑grid (clockwise or counter‑clockwise) by 90°.
- Prove that the puzzle's state graph is connected (any configuration can be reached).
- Determine the minimum number of moves required to return the puzzle from a configuration where the empty cell is at a corner to its original position.
- Design an algorithm that, given any solvable state, outputs a shortest solution sequence.
Hints
- Model the puzzle as a group generated by the 3×3 rotations.
- Use the Cayley graph of this group.
- For part 2, compute the word metric in the