3Blue1Brown
June 10, 2026
TL;DR
A puzzle about efficiently encoding robot movement instructions using binary reveals the optimal encoding strategy and introduces the concept of Shannon entropy.
“If you can answer this question, it's the first step towards reinventing the idea of Shannon entropy.”
1. The Robot Movement Problem
A thought experiment about sending instructions to a robot on a distant moon that can move in four directions (up, down, left, right) with different probability distributions.
2. Movement Probabilities
The robot follows a biased random walk where up movements occur 50% of the time, down 25%, and left/right each 12.5% of the time.
3. Binary Encoding Challenge
Find the most efficient way to encode these movement instructions into binary, minimizing bits per instruction.
4. Proving Optimality
The challenge mode requires proving that the found encoding is truly optimal and no other encoding method could perform better.
5. Connection to Shannon Entropy
Solving this puzzle is the first step toward understanding Shannon entropy and the theoretical limits of data compression.