Back to Search Start Over

Efficient Generation of the Binary Reflected Gray Code and Its Applications.

Authors :
Bitner, James R.
Ehrlich, Gideon
Reingold, Edward M.
Manacher, G.
Graham, S. L.
Source :
Communications of the ACM. Sep76, Vol. 19 Issue 9, p517-521. 5p. 2 Diagrams.
Publication Year :
1976

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. [ABSTRACT FROM AUTHOR]

Details

Language :
English
ISSN :
00010782
Volume :
19
Issue :
9
Database :
Academic Search Index
Journal :
Communications of the ACM
Publication Type :
Periodical
Accession number :
5221690
Full Text :
https://doi.org/10.1145/360336.360343