4 ms·
Indeed, this is wrong. However, 3^3 is 27, which is less than 32, so you can easily encode each row in 5 bits. The encoding into those 5 bits is precisely the
by thequux 3y ago
Indeed, this is wrong. However, 3^3 is 27, which is less than 32, so you can easily encode each row in 5 bits.
The encoding into those 5 bits is precisely the base-3 encoding from the article, so I'll leave it as an exercise for the reader.
- antirez 3y agoGood observation! Always useful to see things from a different angle, that was indeed what I was trying to say in the original post (even if it was wrong).