MATH 170 · Images become vectors · Grid Digits to Binary Vectors

Two pictures, fifteen tiny questions L1 distance

You are the AI. All you can store of a picture is a list of 0s and 1s — no rows, no columns, no shape. Can you still tell which digits look alike? The scary distance formula from class turns out to be nothing but count the cells where two pictures disagree, one cell at a time.

u — digit 1
v — digit 3
press Step ▸ to compare cell 1 of 15
disagreements so far
black cell = 1 · white cell = 0 · reading order: left→right, top→bottom — the same order everywhere on this page
click cells to flip pixels, or load a digit below
cell – / 15
Try: Step through 1 vs 3 and predict each cell before you press.