| ISSUE 421/456 · COMPUTER SCIENCE |
~4 MIN |
FOUNDATION / COMPUTER SCIENCE · READING DATE 2027-11-26 · NOVEMBER 2027 — MATTER AND COMPUTATION LIMITS
A random question can compare two long records
START HERE
Two offices want to check whether their long records match without sending every stored digit. A randomized fingerprint is a short summary chosen using randomness so unequal inputs are unlikely to produce the same summary. Matching summaries provide evidence with a known chance of missing differences, while different summaries prove that the inputs differ.
|
/ WHY NOW
The key change from an exact comparison is the contract: allow a small, quantified chance of accepting unequal records. That can greatly reduce the information exchanged in a carefully defined comparison model.
|
/ THE IDEA
A bit is a stored 0 or 1. Assume both offices already share the same random mask: a list of independently chosen 0s and 1s, as long as the record. A mask bit of 1 selects the corresponding record bit. Each office reports whether its selected group contains an even or odd number of 1s; this result is called parity. Identical records always give the same parity answer. For any fixed pair of unequal records, at least one position differs. The random choice at such a position makes the two parity answers differ with probability one half. Repeating with independently chosen masks makes repeatedly missing the difference increasingly unlikely.
THE FORMAL IDEA
P(false match after k tests) = 2⁻ᵏ
| k = number of independent random-mask parity tests. | | P is a dimensionless probability for a fixed unequal pair chosen before the masks. Each summary has one bit per test; the formula assumes shared, independent, unbiased randomness. |
|
RUN THE TINY EXAMPLE
Change one thing. Predict what happens.
Compare records 1010 and 1000. Mask 1111 selects every position: parities are even and odd, exposing the mismatch. Change the mask to 1100: both selected groups contain one 1, so this test misses it. With k = 4 independent tests, false-match probability is 1/16; change k to 10 and it is 1/1,024.
|
A failed test is decisive, but a passed test is not a proof. The probability comes from the random masks, not from assuming the records themselves are randomly generated. Even a deliberately awkward fixed unequal pair has the same one-half miss probability per fresh mask.
/ SO WHAT?
Sending the masks themselves would cost many bits, so the shared-randomness assumption is part of the communication model rather than a free real-world service. Other fingerprint constructions arrange different randomness and message costs. The important lesson is that a controlled error probability can buy a large resource saving, provided the accounting includes how the random choices become available.
ONE CAVEAT |
| This is not authentication or an adversarially secure file hash. An attacker who sees masks before choosing records can exploit them, and correlated or reused tests may not have the claimed independent error bound. |
KEEP THIS
When exact equality is costly, ask whether independent random checks give an acceptable false-match budget and whether the randomness assumptions hold.
|
NEXT: Why fast-moving air molecules do not fly straight far
|