|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Random tree generation using GSL random number generator. More...
#include <gsl/gsl_rng.h>#include <memory>#include <tpl_tree_node.H>#include <tpl_binNodeUtils.H>#include <ah-errors.H>Go to the source code of this file.
Classes | |
| class | RandTree< T > |
| Generator for uniformly random trees. More... | |
Random tree generation using GSL random number generator.
This file provides the RandTree class for generating uniformly random trees with n nodes. Uses the recursive bijection between binary trees and general trees for generation.
The algorithm generates random binary trees by:
This produces uniformly distributed random trees.
Definition in file random_tree.H.