Narrow an Interval to Encode a Message
Encode a known-length message through nested fractional intervals.
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 symbols A,B with fixed model A:[0,1/2), B:[1/2,1). Message length 3 is shared with the decoder. Start sequence interval [low,high)=[0,1). Use exact fractions, not rounded decimal endpoints.
Follow the rule
For each symbol keep the lower or upper half of the current interval according to A or B. Compute both new endpoints from the old low and width before replacing either one.
Check each step
Encode ABA. Choose any rational code inside the final half-open interval. At each decoding step find which half contains the code, keep that half and repeat exactly three times.
Worked example
A code equal to a dividing boundary belongs to the upper half, because lower endpoints are included and upper endpoints excluded. Without the known length, the same code could describe several message lengths.
Finish and adapt
Finish when encoding and decoding agree. This is an arithmetic-coding interval model, not a secure cipher or a complete bitstream format; sharing a rational number and length is not a compression-size guarantee.
Purpose, observation and provenance
Within this activity: Encode a known-length message through nested fractional intervals.
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 · Arithmetic Coding — 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.
Narrow an Interval to Encode a Message · Player materials
Use symbols A,B with fixed model A:[0,1/2), B:[1/2,1). Message length 3 is shared with the decoder. Start sequence interval [low,high)=[0,1). Use exact fractions, not rounded decimal endpoints.
For each symbol keep the lower or upper half of the current interval according to A or B. Compute both new endpoints from the old low and width before replacing either one.
Encode ABA. Choose any rational code inside the final half-open interval. At each decoding step find which half contains the code, keep that half and repeat exactly three times.
| Step / 步 | Symbol / 符 | low | high excluded / 不含高端 |
|---|---|---|---|
| 0 | — | 0 | 1 |
| 1 | A | ||
| 2 | B | ||
| 3 | A |
| Step / cell | Decision / value | Rule checked |
|---|---|---|
| ________ | ________ | ________ |
| ________ | ________ | ________ |
| ________ | ________ | ________ |
| ________ | ________ | ________ |
Narrow an Interval to Encode a Message · Host key — keep separate
Intervals [0,1/2),[1/4,1/2),[1/4,3/8). Code5/16 is inside final interval and decodes ABA with known length3.
Lead and check
Use symbols A,B with fixed model A:[0,1/2), B:[1/2,1). Message length 3 is shared with the decoder. Start sequence interval [low,high)=[0,1). Use exact fractions, not rounded decimal endpoints.
For each symbol keep the lower or upper half of the current interval according to A or B. Compute both new endpoints from the old low and width before replacing either one.
Encode ABA. Choose any rational code inside the final half-open interval. At each decoding step find which half contains the code, keep that half and repeat exactly three times.
A code equal to a dividing boundary belongs to the upper half, because lower endpoints are included and upper endpoints excluded. Without the known length, the same code could describe several message lengths.
Finish when encoding and decoding agree. This is an arithmetic-coding interval model, not a secure cipher or a complete bitstream format; sharing a rational number and length is not a compression-size guarantee.
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.