Top "Combinations" questions

A combination is a selection of objects from a larger collection in no particular order.

PHP: How to get all possible combinations of 1D array?

Possible Duplicate: algorithm that will take numbers or words and find all possible combinations Combinations, Dispositions and Permutations in PHP …

php combinations
finding substrings of a string

For a string of length n, the formula to compute all the substrings are: n(n+1)/2 Can someone help me …

algorithm math combinations
Python itertools.combinations' results

I don't get the number of results I should obtain from that function in the Title, so I'm hoping in …

python combinations itertools
What's time complexity of this algorithm for finding all combinations?

Combinations Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. For example, If …

c++ algorithm recursion big-o combinations
Using recursion and backtracking to generate all possible combinations

I'm trying to implement a class that will generate all possible unordered n-tuples or combinations given a number of elements …

c++ recursion combinations backtracking
How can I create every combination possible for the contents of two arrays?

I have two arrays: var array1 = ["A", "B", "C"]; var array2 = ["1", "2", "3"]; How can I set another array to contain every …

javascript arrays function combinations
Generate a matrix containing all combinations of elements taken from n vectors

This question pops up quite often in one form or another (see for example here or here). So I thought …

arrays matlab matrix combinations cartesian-product
How to generate a permutations or combinations of n rows in m columns?

Does anyone know how to create a table with m columns from table of n rows where the values in …

sql combinations
How to generate permutations or combinations of object in R?

How to generate sequences of r objects from n objects? I'm looking for a way to do either permutations or …

r combinations permutation multiset r-faq
Generate all combinations for a list of strings

I want to generate a list of all possible combinations of a list of strings (it's actually a list of …

c# math combinations