combinat[setpartition] - partition a set into subsets
|
Calling Sequence
|
|
setpartition(S, m)
|
|
Parameters
|
|
S
|
-
|
list or set of objects
|
m
|
-
|
integer
|
|
|
|
|
Description
|
|
•
|
The setpartition command partitions a finite set of objects into subsets. Each subset is of size m where m must divide the cardinality of the set.
|
•
|
If S is a Maple set, the output is a set of partitions where each partition is a set of sets of cardinality m.
|
|
If S is a Maple list, the output is a list of partitions where each partition is a list of lists of size m.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
|
|
Download Help Document
Was this information helpful?