Two bits per trit

You will learn

What it costs to store a trit in binary the simple way.

Binary memory stores a trit in two bits: -1 as 00, 0 as 01, +1 as 10, the packing this repository's hardware specs use. The code 11 means nothing. A trit carries log2(3) = 1.585 bits of information, so two bits are 79.25% used: a fifth of the memory carries nothing.

Open the interactive lesson →