|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
#include <ctime>#include <cstdlib>#include <cassert>#include <ah-random.H>#include <cstring>#include <iostream>#include <ah-errors.H>#include <tpl_binNode.H>#include <tpl_binNodeUtils.H>Go to the source code of this file.
Functions | |
| void | init_random (int seed) |
| size_t | get_rand (const size_t &n) |
| template<class Node > | |
| Node * | random_tree (const size_t &n) |
| template<class Node > | |
| string | luka (Node *p) |
| template<class Node > | |
| Node * | luka_to_tree (char *&cod) |
| int | main (int argc, char *argv[]) |
Variables | |
| Gsl_Compatible_Rng | r |
| size_t get_rand | ( | const size_t & | n | ) |
Definition at line 53 of file testLuka.C.
References r, and Aleph::Gsl_Compatible_Rng::uniform_int().
Referenced by random_tree().
| void init_random | ( | int | seed | ) |
Definition at line 47 of file testLuka.C.
References Aleph::Gsl_Compatible_Rng::max(), r, Aleph::Gsl_Compatible_Rng::seed(), and seed.
Referenced by main().
Definition at line 87 of file testLuka.C.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 103 of file testLuka.C.
References Aleph::areSimilar(), Aleph::destroyRec(), init_random(), and luka().
Definition at line 60 of file testLuka.C.
References get_rand(), LLINK, RLINK, and root().
Definition at line 44 of file testLuka.C.
Referenced by get_rand(), and init_random().