4 ms·
This is cool (especially the encryption), but certain sequences of bits can’t be encoded. If you have n items left in the sequence then you cannot encode a run
by dcow 3y ago
This is cool (especially the encryption), but certain sequences of bits can’t be encoded. If you have n items left in the sequence then you cannot encode a run of n zeros. So it’s not a general encoding scheme.
- rerdavies 3y agoStart with the deck in standard order. Before each step, number the remaining cards from 0 to N. Each card encodes a digit in a mixed radix number: a0 + 52(a1 + 51(a2+ 50*(a3 + ...)))