Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
testLuka.C File Reference
#include <ctime>
#include <cstdlib>
#include <cassert>
#include <gsl/gsl_rng.h>
#include <cstring>
#include <iostream>
#include <ah-errors.H>
#include <tpl_binNode.H>
#include <tpl_binNodeUtils.H>
Include dependency graph for testLuka.C:

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 >
Noderandom_tree (const size_t &n)
 
template<class Node >
string luka (Node *p)
 
template<class Node >
Nodeluka_to_tree (char *&cod)
 
int main (int argc, char *argv[])
 

Variables

gsl_rng * r = NULL
 

Function Documentation

◆ get_rand()

size_t get_rand ( const size_t &  n)

Definition at line 53 of file testLuka.C.

References Aleph::divide_and_conquer_partition_dp(), and r.

Referenced by random_tree().

◆ init_random()

void init_random ( int  seed)

Definition at line 42 of file testLuka.C.

References ah_bad_alloc, Aleph::divide_and_conquer_partition_dp(), r, and seed.

Referenced by main().

◆ luka()

template<class Node >
string luka ( Node p)

Definition at line 78 of file testLuka.C.

References LLINK, luka(), and RLINK.

Referenced by luka(), and main().

◆ luka_to_tree()

template<class Node >
Node * luka_to_tree ( char *&  cod)

Definition at line 87 of file testLuka.C.

References Aleph::divide_and_conquer_partition_dp(), LLINK, and RLINK.

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ random_tree()

template<class Node >
Node * random_tree ( const size_t &  n)

Definition at line 60 of file testLuka.C.

References Aleph::divide_and_conquer_partition_dp(), get_rand(), LLINK, RLINK, and root().

Variable Documentation

◆ r

gsl_rng* r = NULL

Definition at line 39 of file testLuka.C.

Referenced by get_rand(), init_random(), and main().