Structural Reasoning and Challenge Clinic
Retrieval Prompts
- State the skeleton of a proof by contradiction.
- What must you verify for every legal move when using an invariant argument?
- List the three properties an algorithmic construction must have.
- What structural observation justifies choosing DP over divide-and-conquer?
- What is the difference between a constructive and a non-constructive existence proof?
Contradiction Drill
Prove each by contradiction. Write the assumption, the derived impossibility, and the conclusion explicitly:
log_2 3is irrational- there are infinitely many prime numbers
- for any
n, the numbersn! + 2, n! + 3, ..., n! + nare all composite - no triangle has two right angles
Invariant Drill
Find an invariant (or monovariant) and use it to decide each question. If the goal is unreachable, state why. If reachable, give a construction:
- starting from
(0, 0)with moves(+2, +3)or(+3, +2), can you reach(13, 17)? - on a
4 x 4grid of lights all off, a move flips any row or any column. Can you end with exactly one light on? - 25 coins are arranged in a row. A move flips any three consecutive coins. Starting from all heads, can you reach all tails?
- in a room of 15 people, each person shakes hands with some subset of the others. Prove that two people shook the same number of hands
Construction Drill
Produce a constructive proof for each. State the building step, the progress measure, the termination, and the correctness:
- every simple connected graph has a spanning tree
- every positive integer greater than 1 has a prime factorization
- given a sorted array and a target, construct a binary search that returns the index or reports absence
- given two strings, construct a sequence of single-character insertions, deletions, and substitutions that transforms one into the other (argue termination)
Divide-and-Conquer and DP Drill
For each problem, classify the strategy and write the recurrence:
- mergesort an array of length
n - compute the
k-th smallest element of an unsorted array in expectedO(n)(hint: partition-based selection) - count the number of distinct binary search trees on
nnodes - find the edit distance between two strings
- compute the convex hull of
npoints in the plane - find the longest increasing subsequence of a sequence of
nnumbers
Contest-Flavored Challenge Set
Solve at least three of these with full Polya discipline (understand, plan, execute, look back):
- given an
n x ngrid, how many shortest paths are there from(0,0)to(n,n)? - prove that for any
n, then-th Fermat numberF_n = 2^{2^n} + 1is coprime with every other Fermat number - a graph on 10 vertices has 28 edges. Prove it contains a triangle
- given a sequence of
ndistinct integers, prove it contains an increasing or decreasing subsequence of length at leastceil(sqrt(n))(Erdős-Szekeres) - show that in any
2n + 1consecutive integers, at least one is coprime with all the others
Evidence Check
This page is complete only if you can identify, for a fresh problem, whether contradiction, invariant, construction, divide-and-conquer, or DP is the right structural move, and write the opening of the proof accordingly.