Expand description
k-combinations of {0, ..., n-1} in lexicographic order, with rank/unrank.
A combination is a strictly ascending list of k indices. Rank and unrank
agree with the iterator’s lexicographic order.
Structs§
- Combination
Iter - Iterator over
k-combinations of{0, ..., n-1}in lexicographic order.
Functions§
- combination_
rank - The lexicographic rank of
comboamong thek-combinations ofn. - combination_
unrank - The
k-combination ofnat lexicographic ordinalrank. - combinations
- Construct a combination iterator.
kmust not exceedn.