Click or drag to resize

Combinatorial Class

Combinatorial algorithms, including generating tuples, combinations, permutations and partitions. Except for PowerSet, all methods are implemented after Knuth, described in The Art of Computer Programming Volume 4.
Inheritance Hierarchy
SystemObject
  Gamelogic.Extensions.AlgorithmsCombinatorial

Namespace:  Gamelogic.Extensions.Algorithms
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
[VersionAttribute(1, 4, 0)]
public static class Combinatorial

The Combinatorial type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCombinationsT(IEnumerableT, Int32)
Generates all combinations of m elements selected from the list.
Public methodStatic memberCombinationsT(Int32, Int32, FuncInt32, T)
Public methodStatic memberMultiRadixTuples(Int32)
Generates all tuples with mixed radixes.
Public methodStatic memberMultiRadixTuplesT(IEnumerableIEnumerableT)
Public methodStatic memberPartitionsT
Returns a list of all the partitions of a list.
Public methodStatic memberPermutations(Int32)
Generates all permutations of the numbers 0 to n - 1.
Public methodStatic memberPermutationsT(IEnumerableT)
Generates all permutations of the list of elements.
Public methodStatic memberPowerSetT
Returns the power set of the input, that is, the set of all subsets of the input.
Public methodStatic memberTuples(Int32)
Generate all possible tuples of length n with digits 0 to n-1.
Public methodStatic memberTuplesT(IEnumerableT)
Public methodStatic memberTuplesT(Int32, FuncInt32, T)
Generates n-tuples of integers 0 to n-1 and applies the selector to them.
Top
See Also