SIAM Journal on Discrete Mathematics · 1996 · 26 citations · 25 references
Natural SciencesComputer ScienceMathematicsAlgorithmsCombinatoricsDiscrete MathematicsCoding TheoryString Algorithms
A necklace is an equivalence class of binary strings under rotation. In this paper, we present a Gray code listing of all n-bit necklaces with d ones so that (i) each necklace is listed exactly once by a representative from its equivalence class and (ii) successive representatives, including the last and the first in the list, differ only by the transposition of two bits. The total time required is ${\text{O}}(nN(n,d))$, where $N(n,d)$ denotes the number of n-bit binary necklaces with d ones. This is the first algorithm for generating necklaces of fixed density which is known to achieve this time bound.
25
Jarmo Alanen · Proceedings of the IEEE · 1977 · 258 citations
Generation of permutations by adjacent transposition
Selmer Martin Johnson · Mathematics of Computation · 1963 · 208 citations
H. F. Trotter · Communications of the ACM · 1962 · 129 citations · Full text
Computing, Information Systems, Computational Linguistics +4
Generating Linear Extensions Fast
Gara Pruesse, Frank Ruskey · SIAM Journal on Computing · 1994 · 125 citations