Brainteasers & Logic
Classic Probability Brainteasers
Overview
These puzzles each contain a single elegant insight that makes a seemingly hard problem easy. The ants puzzle: 'pass through' trick makes interacting particles independent. The broken stick: translate probability into geometry. The secretary problem: the optimal threshold 1/e appears because the derivative of the success probability equals zero there. Finding the insight is the skill โ once you have it, the math is straightforward.
How to Recognize
- โAnts walking on a stick โ 'when do they all fall off?'
- โRandom points on a line, circle, or square
- โOptimal stopping: 'when should you stop searching?'
- โ'Two random chords / two random points' geometric probability
Step-by-Step Approach
- 1.Ants: use the pass-through trick โ treat collisions as pass-throughs, compute independently
- 2.Geometric probability: P(event) = favorable area (or length) / total area (or length)
- 3.Secretary problem: skip first 1/e โ 37% of options, take next that beats all seen
- 4.Random chord: must specify the probability model โ the question is often ambiguous
Key Formulas
Worked Examples
Problem
100 ants are placed on a 1-meter stick, each moving at 1 m/min left or right. When two ants collide, they reverse directions. When an ant reaches an end, it falls off. What is the maximum time until all ants have fallen off?
Solution
Key trick: two ants colliding and reversing is IDENTICAL to two ants passing through each other (from outside the system, the 'swarms' move identically).
So pretend all ants pass through each other. Now each ant is independent โ it just walks until it reaches its end.
The time for one ant to fall off = distance to the nearer end (in the direction it's walking).
Maximum time: the ant with the largest distance to its end in its walking direction. This is at most 1 meter (the full stick length), achieved by an ant at one end walking toward the other end.
Therefore: ALL ants fall off in at most 1 minute, regardless of positions and directions.
Answer
Maximum 1 minute. The trick: collisions look like pass-throughs from outside โ each ant independently reaches its end โค 1 min away.
Common Mistakes
- !
Ants: trying to track which ant is which after collisions. The trick makes this unnecessary โ positions of collisions are the same as if ants pass through.
- !
Broken stick: checking only two triangle inequalities instead of all three (each piece < 1/2 is a sufficient combined condition).
- !
Meeting problem: forgetting both directions (X meets Y if X arrives while Y is there OR Y arrives while X is there) โ the |XโY| โค 15 condition captures both.
Practice Problems
Click "Show Answer" to revealA point is chosen uniformly inside a unit circle. What is P(it is closer to the center than to the boundary)?
Two numbers are chosen independently and uniformly from [0,1]. What is the probability that their sum is less than 1 and their product is less than 2/9?
A secretary problem with 10 candidates: optimal strategy? What is the exact probability of success?