I didn't think anyone else would be interested in these variants, until [mention]Joefish[/mention] posted this comment yesterday:
This was exactly one of the variants that I coded and later discarded. Although it didn't help me, perhaps it could be useful for someone else?
In standard Elias Gamma Code, there's a 1:1 proportion between data and control bits, as represented below:
Code: Select all
Numbers Bits Elias Gamma Code Interlaced Elias Gamma Code
1 1 1 1
2-3 3 01x 0x1
4-7 5 001xx 0x0x1
8-15 7 0001xxx 0x0x0x1
16-31 9 00001xxxx 0x0x0x0x1
32-63 11 000001xxxxx 0x0x0x0x0x1
64-127 13 0000001xxxxxx 0x0x0x0x0x0x1
128-255 15 00000001xxxxxxx 0x0x0x0x0x0x0x1
256-511 17 000000001xxxxxxxx 0x0x0x0x0x0x0x0x1
512-1023 19 0000000001xxxxxxxxx 0x0x0x0x0x0x0x0x0x1
1024-2047 21 00000000001xxxxxxxxxx 0x0x0x0x0x0x0x0x0x0x1
2048-4095 23 000000000001xxxxxxxxxxx 0x0x0x0x0x0x0x0x0x0x0x1
4096-8191 25 0000000000001xxxxxxxxxxxx 0x0x0x0x0x0x0x0x0x0x0x0x1
8192-16383 27 00000000000001xxxxxxxxxxxxx 0x0x0x0x0x0x0x0x0x0x0x0x0x1
16384-32767 29 000000000000001xxxxxxxxxxxxxx 0x0x0x0x0x0x0x0x0x0x0x0x0x0x1
32768-65535 31 0000000000000001xxxxxxxxxxxxxxx 0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x1
For instance, there's a 2:1 proportion between data and control bits in "Extended-2 Elias Gamma Code":
Code: Select all
Numbers Bits Extended-2 Elias Gamma Code Interlaced Extended-2 Elias Gamma Code
1 1 1 1
2-5 4 01xx 0xx1
6-21 7 001xxxx 0xx0xx1
22-85 10 0001xxxxxx 0xx0xx0xx1
86-341 13 00001xxxxxxxx 0xx0xx0xx0xx1
342-1365 16 000001xxxxxxxxxx 0xx0xx0xx0xx0xx1
1366-5461 19 0000001xxxxxxxxxxxx 0xx0xx0xx0xx0xx0xx1
5462-21845 22 00000001xxxxxxxxxxxxxx 0xx0xx0xx0xx0xx0xx0xx1
21846-87381 25 000000001xxxxxxxxxxxxxxxx 0xx0xx0xx0xx0xx0xx0xx0xx1
Code: Select all
Numbers Bits Extended-3 Elias Gamma Code Interlaced Extended-3 Elias Gamma Code
1 1 1 1
2-9 5 01xxx 0xxx1
10-73 9 001xxxxxx 0xxx0xxx1
74-585 13 0001xxxxxxxxx 0xxx0xxx0xxx1
586-4681 17 00001xxxxxxxxxxxx 0xxx0xxx0xxx0xxx1
4682-37449 21 000001xxxxxxxxxxxxxxx 0xxx0xxx0xxx0xxx0xxx1
37450-299593 25 0000001xxxxxxxxxxxxxxxxxx 0xxx0xxx0xxx0xxx0xxx0xxx1