All Permutations

Generate all permuttaions of the characters/elements in a string/array.

Parameters

  • nn: number of elements

Related Problems


Filters

Computational Model

Randomization

Approximation

Algorithms Table

Displaying 8 of 8 algorithms

See more
Zaks' prefix reversal algorithm1984O(nn!)O(n \cdot n!)O(n) auxiliary (see NEXT algorithm in same paper)
Ives' algorithm c1976O(n!)O(n!)O(n) auxiliary
Langdon1967O(n!)O(n!)O(1) auxiliary
Ord-Smith1967O(n!)O(n!)O(n) auxiliary
Steinhaus–Johnson–Trotter algorithm1963O(nn!)O(n \cdot n!)O(1)O(1)
Heap's algorithm1963O(nn!)O(n \cdot n!)O(n)O(n)
Wells1961O(n!)O(n!)O(n) auxiliary
Tompkins–Paige algorithm1956O(nn!)O(n \cdot n!)O(n)O(n)

Reductions Table

Insuffient Data to display table

Other relevant algorithms

Insuffient Data to display table