Study Card · The Fake Coin

Introduction

Why This Matters

Big problems are slow to solve one piece at a time. A faster approach: split the problem in half, deal with one part, and repeat on what's left.

Keep that idea in mind as you work through the case study next.

A treasury, a scale, and one fake coin

Among a pile of identical gold coins, exactly one is fake — a little lighter. A balance scale only tells you which side is heavier, or if both sides match. Find the fake coin in as few weighings as possible.

🪙 20 – 1,024 coins, your choice ⚖️ scale shows: left heavier / right heavier / balanced 🎯 goal: fewest weighings

Pick a coin count and weigh. The coins split into two equal pans (an odd count sets one coin aside). Whichever side sinks is heavier — all real coins — so eliminate it and keep the lighter side. If the pans balance, the fake is the coin set aside. Repeat until one coin remains.

Weigh, then choose what to eliminate

Pick a coin count, weigh the pans, then decide which half to eliminate. Eliminate the half that actually holds the fake and it's gone for good.

–coins in play
0weighings used
– PILE A – PILE B
–
No coin set aside
(even split)

Choose a coin count above to begin.

Think it through

There's no single "correct" wording — think through your reasoning based on what you just saw in the game.

1

Breaking it down: How did working on smaller parts make the original problem easier to handle?

2

Choosing the split: How did you decide where to divide the problem, and why was that division useful?

3

Solving smaller parts: What made each smaller problem easier to solve than the original one?

4

Repeating the process: What happened to the size and difficulty of the problems each time you divided them again?

5

Comparing approaches: If you solved the whole problem at once instead, what would become harder or more time-consuming? Why?

Divide and Conquer

Instead of solving a big problem all at once, break it into smaller versions of the same problem, deal with those, and repeat — until what's left is small enough to solve instantly. That's exactly what you did in the game: a big pile became a tiny one, one weighing at a time.

T(n) = T(n/2) + O(1)  →  O(log₂ n)

Cutting a problem in half each step shrinks it exponentially — that's why 1,024 coins only ever took about 10 weighings, not 1,024.

Apply what you've learned

These are open-ended — think through your reasoning, even if there's no single "right" answer.

1

New problem: You have 64 boxes, and one contains a hidden item. You can repeatedly split the boxes into smaller groups. How could you organize the search to avoid checking every box?

2

Recognize the pattern: A problem can be broken into smaller problems that can each be solved independently. What features would make this a good candidate for Divide and Conquer?

3

Choose an approach: You need to find the maximum value in a small list. Would splitting the list necessarily make the solution better? Explain your choice.

4

Spot the misconception: Someone says, "The more pieces we divide a problem into, the more efficient the algorithm becomes." What is wrong with this reasoning?

5

Change the constraints: Your original problem could be split evenly, but now one part is much larger than the others. How might this affect your approach?

6

Compare efficiency: Two algorithms solve the same problem. One repeatedly handles the entire input, while the other works on smaller portions. What would you examine to determine which will scale better?

7

Unfamiliar application: A company wants to find a faulty component in a large network without testing every component. How could the idea of repeatedly narrowing the problem help, and what would determine whether it is efficient?

You've reached the end of this study card.

Go to Home Page