Gray Codes for Arbitrary Numeral Systems

Maximilian Spitz 📧

July 11, 2023

This is a development version of this entry. It might change over time and is not stable. Please refer to release versions for citations.


The original Gray code after Frank Gray, also known as reflected binary code (RBC), is an ordering of the binary numeral system such that two successive values differ only in one bit. We provide a theory for a non-Boolean Gray code, which is a generalisation of the idea for an arbitrary base. Contained is the necessary theoretical environment to express and reason about the respective properties.


BSD License


Related publications

  • Sankar, K. J., Pandharipande, V. M., & Moharir, P. S. (n.d.). Generalized gray codes. Proceedings of 2004 International Symposium on Intelligent Signal Processing and Communication Systems, 2004. ISPACS 2004.

Session Gray_Codes