A Filter That Can Say Maybe
Distinguish a definite absence from an approximate membership match.
Adult planning suggestion: about 9–12 · Logic & rule checking
- Players
- 2–4; cooperate, then exchange the checker role
- Time
- 15–25 minutes
- Materials
- Paper, pencil and the supplied player sheet; keep the host sheet separate.
Prepare
Use eight bit slots numbered 0–7, initially 0, and the fixed two-address table. The addresses are a deliberately small teaching model, not a recommended production hash function.
Follow the rule
To insert a key set BOTH addressed bits to 1, leaving all other bits unchanged. For a query, any addressed 0 means definitely absent; two 1s mean only possibly present.
Check each step
Insert A then B and query A,B,C,D. Keep a separate exact insertion list to compare results. A bit collision does not store the identity of the item that set it.
Worked example
C was not inserted but may share both addresses with inserted items. Explain why treating a positive query as a certainty would create a false positive.
Finish and adapt
Finish with all four query verdicts checked against the exact list. Do not clear bits to delete one key: another inserted key may share them and become falsely absent. This no-deletion model makes no false-positive-rate claim.
Purpose, observation and provenance
Within this activity: Distinguish a definite absence from an approximate membership match.
Ask the checker to name a particular rule and show the recorded evidence. Speed alone is not the goal.
Our rules, examples and printable diagrams are separately prepared. The earliest inventor of the broader mechanism is not established here.
CMU · Bloom Filters — Mechanism background only. Our small paper instance and role rotation are separate; no endorsement or unique-solution claim.
Secondary practice: Cooperation and explaining a check.
For a class of 30, use ten groups of three. Prepare one player-material set per group and keep the host key with the adult. Rotate operator, recorder and checker after each worked example; a reader or scribe may help without choosing answers. Avoid public ranking or diagnostic labels.
Age bands are planning suggestions. Background references may address older learners and do not validate suitability for this age band. Goals describe observable actions, not measured long-term gains or institutional endorsement.
Free alternative: Copy the supplied grids, labels and cards onto reused paper. No specialist product is needed. Adults may prepare pieces or act as a scribe.
Printable materials
Preview at 100% scale, with browser headers and footers off. Cut with suitable help. Keep host keys separate. This is a manual tabletop kit, not an online opponent, automatic judge or solver.
A Filter That Can Say Maybe · Player materials
Use eight bit slots numbered 0–7, initially 0, and the fixed two-address table. The addresses are a deliberately small teaching model, not a recommended production hash function.
To insert a key set BOTH addressed bits to 1, leaving all other bits unchanged. For a query, any addressed 0 means definitely absent; two 1s mean only possibly present.
Insert A then B and query A,B,C,D. Keep a separate exact insertion list to compare results. A bit collision does not store the identity of the item that set it.
| Key / 键 | Address1 / 址1 | Address2 / 址2 |
|---|---|---|
| A | 1 | 4 |
| B | 4 | 6 |
| C | 1 | 6 |
| D | 2 | 7 |
| Step / cell | Decision / value | Rule checked |
|---|---|---|
| ________ | ________ | ________ |
| ________ | ________ | ________ |
| ________ | ________ | ________ |
| ________ | ________ | ________ |
A Filter That Can Say Maybe · Host key — keep separate
Bits1,4,6 are1. A/B possibly present and truly inserted; C possibly present but absent (false positive); D definitely absent. Clearing4 would break queries for A and B.
Lead and check
Use eight bit slots numbered 0–7, initially 0, and the fixed two-address table. The addresses are a deliberately small teaching model, not a recommended production hash function.
To insert a key set BOTH addressed bits to 1, leaving all other bits unchanged. For a query, any addressed 0 means definitely absent; two 1s mean only possibly present.
Insert A then B and query A,B,C,D. Keep a separate exact insertion list to compare results. A bit collision does not store the identity of the item that set it.
C was not inserted but may share both addresses with inserted items. Explain why treating a positive query as a certainty would create a false positive.
Finish with all four query verdicts checked against the exact list. Do not clear bits to delete one key: another inserted key may share them and become falsely absent. This no-deletion model makes no false-positive-rate claim.
Classroom: ten trios for 30 learners; one kit per trio. Rotate operator, recorder and checker. Age guidance is a planning suggestion; prerequisite support may be necessary.
Check saturation without guessing membership · Player audit
Independent four-bit table. Insert A→(0,1) then B→(2,3). Query a never-inserted C→(0,3). State what the filter can and cannot conclude.
| Input / step | Result | Reason |
|---|---|---|
| ________ | ________ | ________ |
| ________ | ________ | ________ |
| ________ | ________ | ________ |
| ________ | ________ | ________ |
| ________ | ________ | ________ |
| ________ | ________ | ________ |
Check saturation without guessing membership · Host audit
The table is 1111. C passes both bit tests even though absent. Every query pair now passes, so this tiny saturated table cannot reject any key.
Related activities
Check saturation without guessing membership
Independent four-bit table. Insert A→(0,1) then B→(2,3). Query a never-inserted C→(0,3). State what the filter can and cannot conclude.