35# include <gsl/gsl_rng.h>
85 if (p == Node::NullPtr)
112 int t = std::time(
NULL);
117 cout <<
"testLuka " << n <<
" " << t <<
endl;
123 string s =
luka(tree_root);
124 cout <<
"luka(tree_root) = " << s <<
endl;
Exception handling system with formatted messages for Aleph-w.
#define ah_bad_alloc()
Throws std::bad_alloc unconditionally (no message stream)
WeightedDigraph::Node Node
Node for binary search tree.
__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)
size_t blossom_maximum_cardinality_matching(const GT &g, DynDlist< typename GT::Arc * > &matching, SA sa=SA())
Alias of compute_maximum_cardinality_general_matching().
void destroyRec(Node *&root) noexcept
Free recursively all the memory occupied by the tree root
bool areSimilar(Node *t1, Node *t2) noexcept
Return true if both trees are similar.
void init_random(int seed)
size_t get_rand(const size_t &n)
Node * random_tree(const size_t &n)
Node * luka_to_tree(char *&cod)
Utility functions for binary tree operations.
Basic binary tree node definitions.