62#ifndef __ADS_Generation
63 #define __ADS_Generation
86using Tuple = std::vector< int >;
379#include "ADS/combinatorial/impl/Generation.tpp"
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
long combinationsLex(int n, int t, F &&visit)
the -combinations of as increasing tuples, in lexicographic order
long heapPermutations(int n, F &&visit)
the permutations of by Heap's method, one swap each
long mixedRadix(const std::vector< int > &m, F &&visit)
the tuples with , in lexicographic order, amortized per tuple after
long integerPartitions(int n, F &&visit)
the partitions of , their parts nonincreasing, in reverse lexicographic order, amortized per partiti...
long grayTuples(const std::vector< int > &m, F &&visit)
the tuples with in the reflected Gray order, loopless
long plainChanges(int n, F &&visit)
the permutations of by swaps of adjacent items, amortized per permutation, the same vector visited ...
long setPartitions(int n, F &&visit)
the restricted growth strings of the partitions of a set of items, in lexicographic order,...
long revolvingDoor(int n, int t, F &&visit)
the -combinations of in the revolving-door order
long nestedParentheses(int n, F &&visit)
the strings of pairs of balanced parentheses, in lexicographic order
long permutationsLex(Tuple a, F &&visit)
the permutations of the multiset , in lexicographic order from sorted
std::vector< int > Tuple
a tuple, a permutation, a string
Definition Generation.h:86