C Everything
This is a C repository containing a curated set of generic data structures and algorithm.
|
tree struct defn More...
#include <tree.h>
Data Fields | |
char * | name |
Tree instance name. More... | |
e_treetype | type |
Tree Type. More... | |
int | count |
Tree node count. More... | |
t_gen | root |
Root node of the tree. More... | |
f_ins | insert |
routine to insert element in tree More... | |
f_del | del |
routine to delete element in tree More... | |
f_find | find |
routine to find element in tree More... | |
f_gen2 | pred |
routine to get predecessor to given node More... | |
f_gen2 | succ |
routine to get successor to given node More... | |
f_gen | min |
routine to get minm element in tree More... | |
f_gen | max |
routine to get maxm element in tree More... | |
f_len | height |
routine to get height of tree More... | |
f_len | node_count |
routine to get total nodes in tree More... | |
f_print | inorder |
routine to print inorder traversal of tree More... | |
f_print | preorder |
routine to print preorder traversal of tree More... | |
f_print | postorder |
routine to print postorder traversal of tree More... | |
f_print | |
routine to print tree level by level More... | |
f_destroy | destroy |
routine to destroy the tree instance More... | |
f_cmpr | cmpr |
f_swap | swap |
f_free | free |
f_print | print_data |
f_print postorder |
e_treetype type |