Click or drag to resize
Accord.NET (logo)

Combinatorics Class

Static class for combinatorics functions.
Inheritance Hierarchy
SystemObject
  Accord.MathCombinatorics

Namespace:  Accord.Math
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public static class Combinatorics
Request Example View Source

The Combinatorics type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCode exampleCombinationsT(T, Boolean)
Enumerates all possible value combinations for a given array.
Public methodStatic memberCode exampleCombinationsT(T, Int32, Boolean)
Enumerates all possible value combinations for a given array.
Public methodStatic memberCode examplePermutationsT
Enumerates all possible value permutations for a given array.
Public methodStatic memberCode exampleSequences(Int32, Boolean)
Provides a way to enumerate all possible ordered permutations with repetitions allowed (i.e. a truth table), without using many memory allocations.
Public methodStatic memberCode exampleSequences(Int32, Boolean)
Provides a way to enumerate all possible ordered permutations with repetitions allowed (i.e. a truth table), without using many memory allocations.
Public methodStatic memberCode exampleSequences(Int32, Int32, Boolean)
Provides a way to enumerate all possible ordered permutations with repetitions allowed (i.e. a truth table), without using many memory allocations.
Public methodStatic memberCode exampleSubsetsT(ISetT, Boolean)
Generates all possibles subsets of the given set.
Public methodStatic memberCode exampleSubsetsT(ISetT, Int32, Boolean)
Generates all possibles subsets of size k of the given set.
Public methodStatic memberCode exampleTruthTable(Int32)
Generates all possible two symbol ordered permutations with repetitions allowed (a truth table).
Public methodStatic memberCode exampleTruthTable(Int32)
Generates all possible ordered permutations with repetitions allowed (a truth table).
Public methodStatic memberCode exampleTruthTable(Int32, Int32)
Generates all possible ordered permutations with repetitions allowed (a truth table).
Top
See Also