l = greeneKleitmanPartition Pl = greeneKleitmanPartition(P, Strategy => "auto")l = greeneKleitmanPartition(P, Strategy => "chains")l = greeneKleitmanPartition(P, Strategy => "antichains")l = greeneKleitmanPartition(P, Strategy => "Britz-Fomin")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.
|
When the Strategy is "auto", for small posets, the strategies "chains" and "antichains" are used as a brute force search is performed. For larger posets, a max-flow computation is performed according to [BF01].
The object greeneKleitmanPartition is a method function with options.
The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/Posets.m2:5246:0.