English

Gray bit walk

Order all three-bit cards using one-bit changes.

Adult planning suggestion: about 9–12 · Logic & rule checking

Players
2–3 per group
Time
15–25 minutes
Materials
Eight cards 000–111 and a change log.

Prepare

Make one card for each three-bit string, keeping leading zeroes. Start at 000 and use every card exactly once. Each next card must differ in exactly one of the three positions. Record which position changed, numbered left to right 1,2,3.

Follow the rule

Choose an unused neighbour by comparing all three positions. A numerical increase is not required. In particular 011→100 changes three bits and is illegal here even though the ordinary binary values are consecutive. Do not insert an already used card to repair a dead end.

Check each step

A complete walk is 000,001,011,010,110,111,101,100. Its change positions are 3,2,3,1,3,2,3. Audit the number of cards and the changed positions separately; eight valid transitions using a repeated card would not visit all eight states.

Worked example

After the path is checked, test whether the final card could return to the first in one bit. In the supplied walk 100→000 changes position 1, giving a cycle. This extra closing move is not a ninth new card.

Finish and adapt

For thirty learners form ten trios: arranger, bit checker and recorder. First use two bits if the cards are hard to track, stating that there are then four cards. Stop after a verified path, not a speed contest. The reference discusses algorithms and applications, not measured gains for children.

Purpose, observation and provenance

Within this activity: Order all three-bit cards using one-bit changes.

Ask for the differing position before accepting a neighbouring card.

Our rules, examples and printable diagrams are separately prepared. The earliest inventor of the broader mechanism is not established here.

CP Algorithms — Gray code — One-bit adjacency is the reference mechanism; the paper walk does not teach ordinary binary counting order.

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.

Gray bit walk · Player materials

Before you start

Make one card for each three-bit string, keeping leading zeroes. Start at 000 and use every card exactly once. Each next card must differ in exactly one of the three positions. Record which position changed, numbered left to right 1,2,3.

Choose an unused neighbour by comparing all three positions. A numerical increase is not required. In particular 011→100 changes three bits and is illegal here even though the ordinary binary values are consecutive. Do not insert an already used card to repair a dead end.

000
001
010
011
100
101
110
111
OrderCardChanged bit
1000—
2
3
4
5
6
7
8

Gray bit walk · Host key — keep separate

000→001→011→010→110→111→101→100; closing 100→000 is legal.

Run and audit

Make one card for each three-bit string, keeping leading zeroes. Start at 000 and use every card exactly once. Each next card must differ in exactly one of the three positions. Record which position changed, numbered left to right 1,2,3.

Choose an unused neighbour by comparing all three positions. A numerical increase is not required. In particular 011→100 changes three bits and is illegal here even though the ordinary binary values are consecutive. Do not insert an already used card to repair a dead end.

A complete walk is 000,001,011,010,110,111,101,100. Its change positions are 3,2,3,1,3,2,3. Audit the number of cards and the changed positions separately; eight valid transitions using a repeated card would not visit all eight states.

After the path is checked, test whether the final card could return to the first in one bit. In the supplied walk 100→000 changes position 1, giving a cycle. This extra closing move is not a ninth new card.

For thirty learners form ten trios: arranger, bit checker and recorder. First use two bits if the cards are hard to track, stating that there are then four cards. Stop after a verified path, not a speed contest. The reference discusses algorithms and applications, not measured gains for children.

Observe and support

Ask for the differing position before accepting a neighbouring card.

Use large paper marks or a scribe when needed. A valid example is not a uniqueness or long-term learning claim.

Related activities

Activity library · Three-bit message strips