A Gray code for set partitions (Q1239129)
From MaRDI portal
scientific article
Language | Label | Description | Also known as |
---|---|---|---|
English | A Gray code for set partitions |
scientific article |
Statements
A Gray code for set partitions (English)
0 references
1976
0 references
A Gray code for the set of partitions of \(\{1,\ldots,n\}\) is an ordered list of the partitions with the property that any partition is obtained from its predecessor by moving one letter. The author gives two constructions for such a Gray code, one recursive, the other direct. An algorithm for the second construction is given; it has the property that the average work per partition is bounded independent of \(n\).
0 references