Table of Hamming-Grey Code Ranges

This table shows the ranges of a selection of Hamming-Grey codes. The horizontal axis specifies the width of the encoding in bits (the code length) and the vertical axis specifies the minimum Hamming distance between distant codes. For example, note that a sixteen bit code can be used to encode more than 100 values, where each value has a five bit resolution.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
0 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 65536
1 2 3 5 8 14 27 >=46 >=80 >=137 >=253 >=404 >=752 >=1453 >=2694 >=5172 >=9949
2 3 4 6 8 14 22 >=32 >=56 >=88 >=129 >=224 >=358 >=595 >=1005 >=1819
3 4 5 7 9 12 20 >=29 >=42 >=58 >=95 >=137 >=207 >=329 >=557
4 5 6 8 10 12 20 >=26 >=38 >=48 >=75 >=104 >=148 >=219
5 6 7 9 11 13 16 >=26 >=32 >=44 >=60 >=87 >=111
6 7 8 10 12 14 16 >=26 >=30 >=38 >=52 >=63
7 8 9 11 13 15 17 20 >=31 >=37 >=46
8 9 10 12 14 16 18 >=20 >=32 >=36
9 10 11 13 15 17 19 21 >=24
10 11 12 14 16 18 20 >=22
11 12 13 15 17 19 21
12 13 14 16 18 20
13 14 15 17 19
14 15 16 18
15 16 17
16 17
roger@metaphorics.com