combinat::splitNK is a low level combinatorial class for math-ordered set partitions.

→ Examples

Categories

Cat::CombinatorialClass, Cat::FacadeDomain(DOM_LIST)

See Also:

combinat::chooseNK, combinat::multisetsNK, combinat::permutationsNK

Details:

count – number of fenced(k,n-k)-set partitions

combinat::splitNK::count(nonnegative integer math, nonnegative integer math)

Returns the number of math-set partitions.

generator – generator for the fenced(k,n-k)-set partitions

combinat::splitNK::generator(nonnegative integer math, nonnegative integer math)

Returns a generator for the math-set partitions in lexicographic order.

list – list of the fenced(k,n-k)-set partitions

combinat::splitNK::list(nonnegative integer math, nonnegative integer math)

Returns the list of all the math-set partitions in lexicographic order.

random – random fenced(k,n-k)-set partition

combinat::splitNK::random(nonnegative integer math, nonnegative integer math)

Returns a random math-set partition.

Example 1:

Here is the list of all the math-set partitions. This gives all the ways to split the set math into one subset of size math and one of size math:

     combinat::splitNK::list(5,2)

math

Changes in MuPAD 4.0

New Function.