16 #ifndef COMBINATORICS_H_
17 #define COMBINATORICS_H_
44 bool get_next_combo(std::vector<unsigned> &combo,
unsigned k,
unsigned n,
bool first_combo =
false);
100 unsigned pos = vec.size() - 1;
104 int index = r % (pos + 1);
107 vec[index] = vec[pos];
uint64_t get64BitnUpperk(unsigned n, unsigned k)
Definition: combinatorics.cpp:113
bool get_next_combo(std::vector< unsigned > &combo, unsigned k, unsigned n, bool first_combo=false)
void get_rand_permutation(std::vector< unsigned > &perm, unsigned size)
uint64_t get_64_bit_factorial(unsigned n)
Definition: combinatorics.cpp:106
void randomly_reorder(std::vector< T > &vec)
Definition: combinatorics.h:98
bool read_in_permutations(std::string file_name, std::vector< std::vector< unsigned > > &perms)