Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
test_bin_to_tree.C File Reference
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <random>
#include <memory>
#include <tpl_binNodeUtils.H>
#include <tpl_tree_node.H>
#include <cassert>
Include dependency graph for test_bin_to_tree.C:

Go to the source code of this file.

Functions

int random (int l, int r)
 
BinNode< int > * random_tree (int l, int r)
 
template<class Node >
static void printNode (Node *node, int, int)
 
int main (int argc, char *argv[])
 

Variables

static mt19937 engine
 

Function Documentation

◆ main()

◆ printNode()

template<class Node >
static void printNode ( Node node,
int  ,
int   
)
static

Definition at line 65 of file test_bin_to_tree.C.

Referenced by main().

◆ random()

int random ( int  l,
int  r 
)

Definition at line 42 of file test_bin_to_tree.C.

References Aleph::divide_and_conquer_partition_dp(), engine, l, and r.

Referenced by random_tree().

◆ random_tree()

BinNode< int > * random_tree ( int  l,
int  r 
)

Definition at line 50 of file test_bin_to_tree.C.

References Aleph::divide_and_conquer_partition_dp(), KEY, l, LLINK, r, random(), random_tree(), RLINK, and root().

Referenced by main(), and random_tree().

Variable Documentation

◆ engine