Skip to main content

All Questions

Filter by
Sorted by
Tagged with
9 votes
2 answers
2k views

"Gray code" of all permutations

Informally asking, can we step through all permutations of the set $\{1,\ldots,n\}$ by just using transpositions? More formally: For any $n\in\mathbb{N}$ let $[n] = \{1,\ldots,n\}$ and let $S_n$ be ...
Dominic van der Zypen's user avatar