Skip to main content
Log in

An algorithm for Gray codes

Ein Algorithmus für Gray-Codes

  • Short Communication
  • Published:
Save article
View saved research
Computing Aims and scope Submit manuscript

Abstract

The algorithm generates a list of distinct binaryn-tuples such that eachn-tuple differs from the one preceding it in just one coordinate [1]. The binary Gray code is often used to generate all subsets of a given set [2]. The whole theory can easily be generalized to generatingr-ary codes,r>2, [3].

Zusammenfassung

Der Algorithmus erzeugt eine Liste von verschiedenen binärenn-Tupeln, so daß jedesn-Tupel sich vom vorhergehenden in genau einer Koordinate unterscheidet [1]. Der binäre Gray-Code wird oft zur Erzeugung aller Teilmengen einer gegebenen Menge verwendet [2]. Die gesamte Theorie kann leicht auf die Erzeugungr-närer Codes,r>2, verallgemeinert werden [3].

This is a preview of subscription content, log in via an institution to check access.

Access this article

Subscribe and save

Springer+
from $39.99 /Month
  • Starting from 10 chapters or articles per month
  • Access and download chapters and articles from more than 300k books and 2,500 journals
  • Cancel anytime
View plans

Buy Now

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

References

  1. Gilbert, E. N.: Gray codes and paths on then-cube. Bell System Tech. J.1958, 815.

  2. Wells, M. B.: Elements of combinatorial computing. Pergamon Press 1971.

  3. Kantz, W. H.: A readily implemented single-error-correcting unit-distance counting code. IEEE Trans. on Computers (Oct. 1970).

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Mossige, S. An algorithm for Gray codes. Computing 18, 89–92 (1977). https://doi.org/10.1007/BF02248780

Download citation

  • Received:

  • Issue date:

  • DOI: https://doi.org/10.1007/BF02248780

Keywords