liba 0.1.15
An algorithm library based on C/C++
|
instance structure for AVL binary search tree node More...
#include <avl.h>
Data Fields | |
struct a_avl_node * | left |
struct a_avl_node * | right |
uintptr_t | parent_ |
instance structure for AVL binary search tree node
struct a_avl_node* a_avl_node::left |
pointer to left child or null
uintptr_t a_avl_node::parent_ |
pointer to parent combined with the balance factor Low 2 bits: One greater than the balance factor of this subtree, which is equal to height(right) - height(left). The mapping is: 00 => -1 01 => 0 10 => +1 11 => undefined The rest of the bits are the pointer to the parent node. It must be 4-byte aligned, and it will be null if this is the root node and therefore has no parent.
struct a_avl_node* a_avl_node::right |
pointer to right child or null