mathlesstraveled.com
The Steinhaus-Johnson-Trotter algorithm
In a previous post I posed the question: is there a way to list the $latex 4! = 24$ permutations of $latex 1,2,3,4$ in such a way that any two adjacent permutations are related by just a single swa…