Abstract
The topic of Gray codes for the set of compositions with non-negative integer parts has been studied by several authors. Klingsberg gave a non-recursive description of a Gray code for this set after the recursive version of Knuth. Recently, Walsh modified Klingsberg's algorithm to find a Gray code which generates the set of all bounded compositions with non-negative integer parts. In this paper, we present two loopless Gray code algorithms for the set of compositions with positive integer parts.
| Original language | English |
|---|---|
| Pages (from-to) | 343-356 |
| Number of pages | 14 |
| Journal | Journal of Mathematical Modelling and Algorithms |
| Volume | 9 |
| Issue number | 4 |
| DOIs | |
| State | Published - Dec 2010 |
Keywords
- Compositions
- Gray codes
- Loopless algorithms
ASJC Scopus subject areas
- Modeling and Simulation
- Applied Mathematics