Top "Permutation" questions

A permutation is an arrangement of objects into a particular order.

permutations with unique values

itertools.permutations generates where its elements are treated as unique based on their position, not on their value. So basically …

python permutation itertools
Recursively print all permutations of a string (Javascript)

I've seen versions of this question for other languages, but not for JS. Is it possible to do this recursively …

javascript string algorithm recursion permutation
Fast permutation -> number -> permutation mapping algorithms

I have n elements. For the sake of an example, let's say, 7 elements, 1234567. I know there are 7! = 5040 permutations possible of …

algorithm math permutation combinatorics
counting combinations and permutations efficiently

I have some code to count permutations and combinations, and I'm trying to make it work better for large numbers. …

python algorithm math combinations permutation
Generating all possible permutations of a list recursively

I'm trying to recursively generate all items in a list recursively. I've seen a few solutions to similar questions to …

java algorithm permutation
Are there any better methods to do permutation of string?

void permute(string elems, int mid, int end) { static int count; if (mid == end) { cout << ++count << " : " &…

c++ algorithm string permutation
Generating permutations using bash

is it possible to write a bash script that can read in each line from a file and generate permutations (…

bash shell permutation
how to generate permutations of array in python?

i have an array of 27 elements,and i don't want to generate all permutations of array (27!) i need 5000 randomly choosed …

python permutation
Generate permutations of JavaScript array

I have an array of n different elements in javascript, I know there are n! possible ways to order these …

javascript arrays recursion permutation
Get all permutations of a PHP array?

Given a PHP array of strings, e.g.: ['peter', 'paul', 'mary'] How to generate all possible permutations of elements of …

php permutation combinatorics