BGC Tools
|
Static Public Member Functions | |
static void | TreeOfAllCombinations (int[] indexes, int outputSize, out Node< int > root) |
Build a tree of all combinations. More... | |
static List< List< int > > | ListOfAllCombinations (Node< int > root) |
Given a list of indexes, generate a list of all valid combinations. More... | |
static IEnumerator< List< int > > | AllCombinationsGenerator (int[] indexes, int outputSize) |
Generate a list of indexes one at a time, generate a list of all valid combinations. More... | |
Static Private Member Functions | |
static List< List< int > > | ListOfAllCombinationsRecursive (Node< int > node) |
Definition at line 7 of file Combinatorics.cs.
|
inlinestatic |
Generate a list of indexes one at a time, generate a list of all valid combinations.
For example: ([0,1], 2) will return [[0, 0], [0, 1], [1, 0], [1, 1]]
Where the second number in the input defines the size of the inner. Additionally, the ordering of these will be randomized.
Definition at line 92 of file Combinatorics.cs.
|
inlinestatic |
Given a list of indexes, generate a list of all valid combinations.
For example: ([0,1], 2) will return [[0, 0], [0, 1], [1, 0], [1, 1]]
Where the second number in the input defines the size of the inner. Additionally, the ordering of these will be randomized. arrays.
Definition at line 59 of file Combinatorics.cs.
References BGC.DataStructures.Generic.Node< T >.Children.
|
inlinestaticprivate |
Definition at line 104 of file Combinatorics.cs.
References BGC.DataStructures.Generic.Node< T >.Children, and BGC.DataStructures.Generic.Node< T >.Value.
|
inlinestatic |
Build a tree of all combinations.
For example: ([0, 1], 2) would generate a tree of structure -1 |-0 | |-0 | |-1 | |-1 |-0 |-1
Except for the fact that the ordering will be randomized.
Definition at line 24 of file Combinatorics.cs.