mtree_subtree_data_min3
Return minmax data nodes
Usage
#include <librecast/mtree.h>
size_t mtree_subtree_data_min(size_t base, size_t root); size_t mtree_subtree_data_max(size_t base, size_t root);
Compile and link with -llibrecast.
Library
Librecast library (liblibrecast, -llibrecast)
Overview
The mtree_subtree_data_min and mtree_subtree_data_max functions return the node number of the minimum and maximum data nodes respectively for the subtree with root node root for a tree with base data nodes.
Nodes are numbered from 0 = root.
Return value
These functions return the number of the min or max data node as appropriate.
Errors
None.