Quarry School

Reassemble pieces arriving out of order — quick review

In plain words

Printed pages that say Page 2 of 11 can be put back in order however the pile was dropped.

Rule

The receiver places each usable card in the slot of its piece number when that slot is empty, whatever the order of arrival, and reads the data of slots 1 to N in order once all N slots are filled; an empty slot means no usable card for that piece has arrived yet.

Step

  1. Check each arriving card against the protocol. Read the total on the first usable data card and lay out that many empty slots.

  2. Put each usable card into the slot of its piece number if that slot is empty; put a card that fails the check aside.

  3. After each card, list the slots still empty.

  4. When no slot is empty, read the data of the slots from 1 to N.

  5. If a slot stays empty, the message is not complete; do not guess its data.

Trap

Joining pieces in the order they arrive gives NOONMEET-AT- for the arrivals 3, 1, 2. Place by number.

Reading the message while a slot is empty gives a message with a hole in it. Wait for every slot; the next lesson shows how the sender sends a missing piece again.