Steinhaus–Johnson–Trotter algorithm (All Permutations All Permutations)
Revision as of 11:15, 15 February 2023 by Admin (talk | contribs) (Created page with "== Time Complexity == $O(n)$ on specific permutations == Space Complexity == $O({1})$ auxiliary words (Determining $x_i$ and $y_i$ each iteration can be done in constant space) == Description == == Approximate? == Exact == Randomized? == No, deterministic == Model of Computation == Word RAM == Year == 1963 == Reference == https://www.ams.org/journals/mcom/1963-17-083/S0025-5718-1963-0159764-2/home.html")
Time Complexity
$O(n)$ on specific permutations
Space Complexity
$O({1})$ auxiliary words
(Determining $x_i$ and $y_i$ each iteration can be done in constant space)
Description
Approximate?
Exact
Randomized?
No, deterministic
Model of Computation
Word RAM
Year
1963
Reference
https://www.ams.org/journals/mcom/1963-17-083/S0025-5718-1963-0159764-2/home.html