Binary Gray Code

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram CDF Player or other Wolfram Language products.

Requires a Wolfram Notebook System

Edit on desktop, mobile and cloud with any Wolfram Language product.

Consecutive numbers may differ by many bits in an ordinary binary representation of integers; however, they differ by only one bit in the binary Gray code representation. The plots show ranges of numbers starting at 0 whose bits are given in columns counting from the left; the bit differences can be indicated automatically by color.

Contributed by: Michael Schreiber (March 2011)
Open content licensed under CC BY-NC-SA




Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.