Expand description
Subsets of {0, ..., n-1} in bitmask order, with rank/unrank.
A subset is represented as its sorted member indices. Ordinal r is the
bitmask whose bit i indicates membership of element i.
Structs§
- Subset
Iter - Iterator over all
2^nsubsets of{0, ..., n-1}in bitmask order.
Functions§
- subset_
rank - The bitmask ordinal of
subset(a list of distinct indices< n). - subset_
unrank - The subset (sorted member indices) for bitmask ordinal
rankovern. - subsets
- Construct a subset iterator, rejecting
ntoo large for theu128cursor.