Efficient Generation of the Binary Reflected Gray Code and Its Applications

James R. Bitner, Gideon Ehrlich, Edward M. Reingold

Research output: Contribution to journalArticlepeer-review

215 Scopus citations

Abstract

Algorithms are presented to generate the n-bit binary reflected Gray code and codewords of fixed weight in that code. Both algorithms are efficient in that the time required to generate the next element from the current one is constant. Applications to the generation of the combinations of n things taken k at a time, the compositions of integers, and the permutations of a multiset are discussed.

Original languageEnglish
Pages (from-to)517-521
Number of pages5
JournalCommunications of the ACM
Volume19
Issue number9
DOIs
StatePublished - 1 Sep 1976

Keywords

  • Gray code
  • combinations
  • combinatorial computing
  • compositions
  • subsets

Fingerprint

Dive into the research topics of 'Efficient Generation of the Binary Reflected Gray Code and Its Applications'. Together they form a unique fingerprint.

Cite this