Monday, March 18, 2024

Coding corrugated baskets

Corrugated baskets present two different coding problems: how one might mark assembly information directly on a custom-punched tape, and how one might write down (on a piece of paper) assembly information for a tape pre-marked with a standard consecutive numbering. The latter is the topic here.

In the standard consecutive numbering, orienting the tape from the smaller to the larger numbers, each segment of the tape (i.e., a segment between crossings) should be marked near its terminal end as shown above, so that the number naturally becomes a sub-address for the nearest crossing.

All the crossings in a corrugated basket look the same. Rotated so that the converging quadrant is at the bottom, as shown above, they all look like the diagram. The crossing has a binomial address (represented here generically by 0,1): an even sub-address on the left and an odd sub-address on the right. (Those positions might just as well be reversed, but, to make things easier for the basket maker, we will always choose a basepoint for the counting that makes the above diagram correct.)

The oriented geodesic path is always a boundary between white and a tinted region. At each crossing, white switches sides; “black” also switches sides but its tint changes as well. For example, in the diagram, the 0 strand, before this crossing, has white on the right, and the dark tint on the left. After this crossing, white is on the left and the light tint is on the right. Also, the sub-address will have incremented by one and so changed parity.

If we are going to be walking along the path a lot in the oriented direction, it might be good to have the right leg shorter than the left because there is always going to be either a dale on the left or a hill on the right.

0 and 1 in the diagram merely symbolize even and odd sub-addresses, their relative magnitude is unknown: either could be the bigger sub-address and thus the later strand. If, say, the even sub-address is bigger, then we are colliding with the left side of the earlier strand and are potentially closing a dale region, conversely, if the odd address is bigger, then we are colliding with the right side of the earlier strand, and are potentially closing a hill region.

If we always write the full address in "even-odd" order, it is easy to remember on which side of the smaller sub-address the bigger sub-address is approaching.

No comments: