Home
Random
Nearby
Log in
Settings
Donate
About Wikimedia Commons
Disclaimers
Search
Template
:
Steinhaus–Johnson–Trotter
Language
Watch
Edit
Steinhaus–Johnson–Trotter algorithm
Hamiltonian path in
Cayley graph
of
S
4
Hamiltonian path
in
permutohedron
Swapped elements are always adjacent.
Inversion
vectors and inversion sets form a
Gray code
. Swapped elements correspond to the changing element of the inversion sets.