l = greeneKleitmanPartition P
l = greeneKleitmanPartition(P, Strategy => "chains")
l = greeneKleitmanPartition(P, Strategy => "antichains")
The Greene-Kleitman partition $l$ of $P$ is the partition such that the sum of the first $k$ parts of $l$ is the maximum number of elements in a union of $k$ chains in $P$.
|
|
The conjugate of $l$ has the same property, but with chains replaced by antichains. Because of this, it is often better to count via antichains instead of chains. This can be done by passing "antichains" as the Strategy.
|
|
|
The Greene-Kleitman partition of the $n$ chain is the partition of $n$ with $1$ part.
|
The object greeneKleitmanPartition is a method function with options.