28# include <gsl/gsl_rng.h>
46 cout <<
"Testing for " <<
typeid(
Tree).name() <<
endl
52 for (
size_t i = 0; i < n; ++i)
56 auto p = tree.
insert(node);
62 typename Tree::Iterator it = tree;
67 for (
typename Tree::Iterator it(tree); it.has_curr(); it.next())
68 cout << it.get_curr()->get_key() <<
" " <<
endl;
76 cout <<
"test-tree-itor [n] [seed]" <<
endl
84 unsigned long seed = 0;
QuadTree - Hierarchical spatial index for 2D points.
Point * insert(Node *&r, const Point &p)
Recursive insert helper.
void destroyRec(Node *&root) noexcept
Free recursively all the memory occupied by the tree root
void exit(const char *file, int line, const char *format,...)
Print a message and exit the program.
Divide_Conquer_DP_Result< Cost > divide_and_conquer_partition_dp(const size_t groups, const size_t n, Transition_Cost_Fn transition_cost, const Cost inf=dp_optimization_detail::default_inf< Cost >())
Optimize partition DP using divide-and-conquer optimization.
@ Tree
Basic arc (in spanning tree).
void operator()(gsl_rng *r) const
std::unique_ptr< gsl_rng, GslRngDeleter > GslRngHandle
Dynamic binary heap with node-based storage.
Dynamic set implementations based on balanced binary search trees.