Exception handling system with formatted messages for Aleph-w.
The random number generators of Aleph: the one that gives the numbers of the gsl_rng_mt19937 of GSL,...
Node for binary search tree.
BinNode *& getL() noexcept
A Gsl_Compatible_Rng in dynamic memory, so that what holds it grows only by a pointer,...
A random number generator with the sequences of GSL's gsl_rng_mt19937.
unsigned long uniform_int(const unsigned long n)
An integer in [0, n), each with the same probability, as gsl_rng_uniform_int(r, n).
Forward declaration used by CRTP helpers before the full node definition.
Generator for uniformly random trees.
Tree_Node< T > * operator()(size_t n)
Generate a random tree with n nodes.
RandTree()
Construct generator with time-based seed.
Gsl_Compatible_Rng_Owner r
The generator, in dynamic memory.
RandTree & operator=(const RandTree &)=delete
Not assignable, as it is not copyable.
RandTree(unsigned long seed)
Construct generator with specified seed.
BinNode< T > * random(unsigned long n)
Recursively generate random binary tree.
RandTree(const RandTree &)=delete
Not copyable: a copy compiled, and both freed the same generator.
__gmp_expr< typename __gmp_resolve_expr< T, V >::value_type, __gmp_binary_expr< __gmp_expr< T, U >, __gmp_expr< V, W >, __gmp_max_function > > max(const __gmp_expr< T, U > &expr1, const __gmp_expr< V, W > &expr2)
__gmp_expr< T, __gmp_binary_expr< __gmp_expr< T, U >, unsigned long int, __gmp_root_function > > root(const __gmp_expr< T, U > &expr, unsigned long int l)
void destroyRec(Node *&root) noexcept
Free all the memory occupied by the tree root
Main namespace for Aleph-w library functions.
static void bin_to_tree(BNode *broot, TNode *troot)
Utility functions for binary tree operations.
General tree (n-ary tree) node.