AIToolbox
A library that offers tools for AI problem solving.
|
#include <vector>
#include <numeric>
#include <cassert>
Go to the source code of this file.
Classes | |
class | AIToolbox::SubsetEnumerator< Index > |
This class enumerates all possible vectors of finite subsets over N elements. More... | |
Namespaces | |
AIToolbox | |
Functions | |
unsigned | AIToolbox::nChooseK (unsigned n, unsigned k) |
Returns (n k); i.e. n choose k. More... | |
unsigned | AIToolbox::starsBars (unsigned stars, unsigned bars) |
Returns the number of stars/bars combinations. More... | |
unsigned | AIToolbox::ballsBins (unsigned balls, unsigned bins) |
Returns the number of balls/bins combinations. More... | |
unsigned | AIToolbox::nonZeroStarsBars (unsigned stars, unsigned bars) |
Returns the number of stars/bars combinations. More... | |
unsigned | AIToolbox::nonZeroBallsBins (unsigned balls, unsigned bins) |
Returns the number of balls/bins combinations. More... | |