Skip to main content
Log in

An algorithm for Gray codes

Ein Algorithmus für Gray-Codes

  • Short Communication
  • Published:
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+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

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

Instant access to the full article PDF.

Explore related subjects

Discover the latest articles, news and stories from top researchers in related subjects.

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

Navigation