Heap's algorithm (All Permutations All Permutations)
Jump to navigation
Jump to search
Time Complexity
$O(n)$ per permutation
Space Complexity
$O(n)$ words
($O(n)$-sized stack or array necessary)
Description
Approximate?
Exact
Randomized?
No, deterministic
Model of Computation
Word RAM
Year
1963