Steinhaus–Johnson–Trotter implementation in Java
Generally it’s frustrating to read that somebody implemented the Steinhaus–Johnson–Trotter algorithm to generate permutations but doesn’t supply the source code due to the fear that the code could be “copied elsewhere” on the internet. Since I was really interested in permutations for another project I implemented the said algorithm, added a LGPL license to it …
Steinhaus–Johnson–Trotter implementation in Java Read More »