next up previous
Next: 28.5.4 SINGLE RULE Up: 28.5 File encoding Previous: 28.5.2 N'HOOD MIX

28.5.3 WIRING ONLY, RULE SCHEME ONLY, WIRING-RULE SCHEME

The encoding for all three file types above starts with 5 bytes as follows:

byte 0 = neighbourhood size, k.

byte 1,2 = network size, n.

byte 3,4 = i, j for 2d networks (for 1d these byres are set to null)

The encoding continues as follows, for each successive cell index from 0-(n-1), where k = the maximum neighbourhood:

A. Pseudo-neighbourhood wiring, indexed 0-k, if n<=256, k bytes, if n>256, 2 k bytes

B. Rule: 2k bytes (minimum 1 byte)

Combined wiring-rule scheme: A followed by B.