Top "Permutation" questions

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

Smart way to generate permutation and combination of String

String database[] = {'a', 'b', 'c'}; I would like to generate the following strings sequence, based on given database. a b …

java algorithm combinations permutation
C++ error: Undefined symbols for architecture x86_64

I'm trying to learn C++ and was trying to solve a problem where given a number of steps and the …

c++ c++11 vector permutation
Permutations - all possible sets of numbers

I have numbers, from 0 to 8. I would like in result, all possible sets of those numbers, each set should use …

php permutation combinatorics
Generating permutations of a set (most efficiently)

I would like to generate all permutations of a set (a collection), like so: Collection: 1, 2, 3 Permutations: {1, 2, 3} {1, 3, 2} {2, 1, 3} {2, 3, 1} {3, 1, 2} {3, 2, 1} This isn't a question …

c# performance algorithm optimization permutation
shuffle vs permute numpy

What is the difference between numpy.random.shuffle(x) and numpy.random.permutation(x)? I have read the doc pages …

python numpy scipy permutation shuffle
Generate all binary strings of length n with k bits set

What's the best algorithm to find all binary strings of length n that contain k bits set? For example, if …

algorithm binary permutation combinations bits
Print all the permutations of a string in C

I am learning backtracking and recursion and I am stuck at an algorithm for printing all the permutations of a …

c string algorithm permutation
Print out all permutations of an Array

I am working on a program, and I have a function that swaps the positions in an Array of length …

java arrays algorithm permutation factorial
Permutation algorithm without recursion? Java

I would like to get all combination of a number without any repetition. Like 0.1.2, 0.2.1, 1.2.0, 1.0.2, 2.0.1, 2.1.0. I tried to find an easy …

java recursion sequence permutation
Find all subsets of length k in an array

Given a set {1,2,3,4,5...n} of n elements, we need to find all subsets of length k . For example, if n = 4 …

arrays algorithm set permutation